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

@@ -36,8 +36,6 @@ function CalculateTaxesTotals(job, otherTotals) {
return acc;
}
}, Dinero({ amount: 0 }));
console.log("job.federal_tax_rate ", job.federal_tax_rate);
console.log(subtotal.percentage((job.federal_tax_rate || 0) * 100));
let ret = {
subtotal: subtotal,
federal_tax: subtotal.percentage((job.federal_tax_rate || 0) * 100),
@@ -242,6 +240,7 @@ function CalculatePartsTotals(jobLines) {
// case "PAP":
// case "PAR":
default:
if (value.part_type === null) return acc;
return {
...acc,
parts: {