IO-813 Calculation updates to include adjustments
This commit is contained in:
@@ -17,9 +17,29 @@ export default function JobTotalsTableOther({ job }) {
|
||||
key: t("jobs.labels.subletstotal"),
|
||||
total: job.job_totals.parts.sublets.total,
|
||||
},
|
||||
...((job.job_totals.additional.additionalCostItems &&
|
||||
job.job_totals.additional.additionalCostItems.map((i) => {
|
||||
return {
|
||||
key: i.key,
|
||||
total: i.total,
|
||||
};
|
||||
})) ||
|
||||
[]),
|
||||
{
|
||||
key: t("jobs.labels.additionaltotal"),
|
||||
total: job.job_totals.additional,
|
||||
key: t("jobs.fields.adjustment_bottom_line"),
|
||||
total: job.job_totals.additional.adjustments,
|
||||
},
|
||||
{
|
||||
key: t("jobs.fields.towing"),
|
||||
total: job.job_totals.additional.towing,
|
||||
},
|
||||
{
|
||||
key: t("jobs.fields.storage"),
|
||||
total: job.job_totals.additional.storage,
|
||||
},
|
||||
{
|
||||
key: t("jobs.fields.pvrt"),
|
||||
total: job.job_totals.additional.pvrt,
|
||||
},
|
||||
];
|
||||
}, [job.job_totals, t]);
|
||||
@@ -67,7 +87,7 @@ export default function JobTotalsTableOther({ job }) {
|
||||
|
||||
<Table.Summary.Cell>
|
||||
<strong>
|
||||
{Dinero(job.job_totals.parts.parts.total).toFormat()}
|
||||
{Dinero(job.job_totals.additional.total).toFormat()}
|
||||
</strong>
|
||||
</Table.Summary.Cell>
|
||||
</Table.Summary.Row>
|
||||
|
||||
Reference in New Issue
Block a user