IO-1089 IO-1083
This commit is contained in:
@@ -51,7 +51,9 @@ const VendorSearchSelect = (
|
||||
<div className="imex-flex-row">
|
||||
<div style={{ flex: 1 }}>{o.name}</div>
|
||||
<HeartOutlined />
|
||||
<Tag color="green">{`${o.discount * 100}%`}</Tag>
|
||||
{o.discount && o.discount !== 0 ? (
|
||||
<Tag color="green">{`${o.discount * 100}%`}</Tag>
|
||||
) : null}
|
||||
</div>
|
||||
</Option>
|
||||
))
|
||||
@@ -62,9 +64,9 @@ const VendorSearchSelect = (
|
||||
<div className="imex-flex-row" style={{ width: "100%" }}>
|
||||
<div style={{ flex: 1 }}>{o.name}</div>
|
||||
|
||||
{o.discount && (
|
||||
{o.discount && o.discount !== 0 ? (
|
||||
<Tag color="green">{`${o.discount * 100}%`}</Tag>
|
||||
)}
|
||||
) : null}
|
||||
</div>
|
||||
</Option>
|
||||
))
|
||||
|
||||
@@ -103,7 +103,9 @@ const generateBillLine = (billLine, responsibilityCenters, jobClass) => {
|
||||
},
|
||||
Amount: Dinero({
|
||||
amount: Math.round(billLine.actual_cost * 100),
|
||||
}).toFormat(DineroQbFormat),
|
||||
})
|
||||
.multiply(billLine.quantity || 1)
|
||||
.toFormat(DineroQbFormat),
|
||||
...(jobClass ? { ClassRef: { FullName: jobClass } } : {}),
|
||||
SalesTaxCodeRef: {
|
||||
FullName: findTaxCode(billLine, responsibilityCenters.sales_tax_codes),
|
||||
|
||||
Reference in New Issue
Block a user