Added part type totals BOD-260

This commit is contained in:
Patrick Fic
2020-08-19 15:20:12 -07:00
parent 88858e6789
commit df0f98f377
2 changed files with 10 additions and 2 deletions

View File

@@ -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">