Added quantity to entering invoices BOD-182

This commit is contained in:
Patrick Fic
2020-06-25 16:29:12 -07:00
parent 288e5e4c02
commit ea77478b02
17 changed files with 315 additions and 186 deletions

View File

@@ -14,7 +14,7 @@ export const CalculateAllocationsTotals = (
const r = allCodes.reduce((acc, value) => {
acc.push({
opcode: value,
cost_center: responsibilitycenters.defaults[value],
cost_center: responsibilitycenters.defaults.costs[value],
total: joblines.reduce((acc2, val2) => {
return val2.mod_lbr_ty === value ? acc2 + val2.mod_lb_hrs : acc2;
}, 0),