Added part type totals BOD-260
This commit is contained in:
@@ -189,6 +189,15 @@ export function JobsTotalsTableComponent({ bodyshop, job }) {
|
||||
<div className="job-totals-half">
|
||||
<table>
|
||||
<tbody>
|
||||
{Object.keys(totals.parts.parts.list).map((key, idx) => (
|
||||
<tr key={idx}>
|
||||
<td>{t(`jobs.fields.${key.toLowerCase()}`)}</td>
|
||||
<td className="currency">
|
||||
{totals.parts.parts.list[key].total.toFormat()}
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
))}
|
||||
<tr>
|
||||
<td>{t("jobs.labels.partstotal")}</td>
|
||||
<td className="currency">
|
||||
|
||||
Reference in New Issue
Block a user