Resolved allocation bug introduced by moving totals calculation to server side. BOD-267
This commit is contained in:
@@ -40,7 +40,8 @@ export default function JobCloseLabMatAllocation({
|
||||
Dinero({
|
||||
amount: labmatAllocations[alloc].allocations.reduce(
|
||||
(acc, val) => {
|
||||
return acc + Dinero(val.amount).getAmount();
|
||||
console.log("val :>> ", val);
|
||||
return acc + val.amount.getAmount();
|
||||
},
|
||||
0
|
||||
),
|
||||
@@ -57,7 +58,7 @@ export default function JobCloseLabMatAllocation({
|
||||
Dinero({
|
||||
amount: labmatAllocations[alloc].allocations.reduce(
|
||||
(acc, val) => {
|
||||
return acc + Dinero(val.amount).getAmount();
|
||||
return acc + val.amount.getAmount();
|
||||
},
|
||||
0
|
||||
),
|
||||
|
||||
@@ -40,7 +40,7 @@ export default function JobsClosePartsAllocation({
|
||||
Dinero({
|
||||
amount: partsAllocations[alloc].allocations.reduce(
|
||||
(acc, val) => {
|
||||
return acc + Dinero(val.amount).getAmount();
|
||||
return acc + val.amount.getAmount();
|
||||
},
|
||||
0
|
||||
),
|
||||
@@ -57,7 +57,7 @@ export default function JobsClosePartsAllocation({
|
||||
Dinero({
|
||||
amount: partsAllocations[alloc].allocations.reduce(
|
||||
(acc, val) => {
|
||||
return acc + Dinero(val.amount).getAmount();
|
||||
return acc + val.amount.getAmount();
|
||||
},
|
||||
0
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user