Renamed ATP to ATS and updated totals calculation logic. Logic is still WIP

This commit is contained in:
Patrick Fic
2020-09-10 09:27:37 -07:00
parent ba4173c000
commit 41117ff0c2
36 changed files with 3281 additions and 126 deletions

View File

@@ -21,8 +21,6 @@ const colSpan = {
export function JobsTotalsTableComponent({ bodyshop, job }) {
const { t } = useTranslation();
console.log("job", job);
if (!!!job.job_totals) {
return (
<Result
@@ -168,15 +166,6 @@ export function JobsTotalsTableComponent({ bodyshop, job }) {
job.job_totals.rates.la4.rate
})`}</td>
</tr>
<tr>
<td>{t("jobs.fields.rate_atp")}</td>
<td className="currency">
{Dinero(job.job_totals.rates.atp.total).toFormat()}
</td>
<td>{`(${job.job_totals.rates.atp.hours.toFixed(2)} @ ${
job.job_totals.rates.atp.rate
})`}</td>
</tr>
<tr>
<td>{t("jobs.labels.rates_subtotal")}</td>