Update credit memo totals [ci ignore]
This commit is contained in:
@@ -74,7 +74,8 @@ export default function JobBillsTotalComponent({
|
|||||||
const discrepWithLbrAdj = discrepancy.add(lbrAdjustments);
|
const discrepWithLbrAdj = discrepancy.add(lbrAdjustments);
|
||||||
|
|
||||||
const discrepWithCms = discrepWithLbrAdj.add(billCms);
|
const discrepWithCms = discrepWithLbrAdj.add(billCms);
|
||||||
const creditsNotReceived = totalReturns.add(billCms); //billCms is tracked as a negative number.
|
const creditsNotReceived = totalReturns.subtract(billCms); //billCms is tracked as a negative number.
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Row gutter={16}>
|
<Row gutter={16}>
|
||||||
<Col span={18}>
|
<Col span={18}>
|
||||||
@@ -225,9 +226,13 @@ export default function JobBillsTotalComponent({
|
|||||||
<Statistic
|
<Statistic
|
||||||
title={t("bills.labels.creditsnotreceived")}
|
title={t("bills.labels.creditsnotreceived")}
|
||||||
valueStyle={{
|
valueStyle={{
|
||||||
color: creditsNotReceived.getAmount() === 0 ? "green" : "red",
|
color: creditsNotReceived.getAmount() <= 0 ? "green" : "red",
|
||||||
}}
|
}}
|
||||||
value={creditsNotReceived.toFormat()}
|
value={
|
||||||
|
creditsNotReceived.getAmount() >= 0
|
||||||
|
? creditsNotReceived.toFormat()
|
||||||
|
: Dinero().toFormat()
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Space>
|
</Space>
|
||||||
|
|||||||
Reference in New Issue
Block a user