IO-791 Bill Edit with Labor Adjustments confirmation
This commit is contained in:
@@ -59,20 +59,20 @@ function BillEnterModalContainer({
|
||||
remainingValues.billlines &&
|
||||
remainingValues.billlines.map((i) => {
|
||||
const {
|
||||
deductfromlabor,
|
||||
deductedfromlbr,
|
||||
lbr_adjustment,
|
||||
location: lineLocation,
|
||||
...restI
|
||||
} = i;
|
||||
|
||||
if (deductfromlabor) {
|
||||
if (deductedfromlbr) {
|
||||
adjustmentsToInsert[lbr_adjustment.mod_lbr_ty] =
|
||||
(adjustmentsToInsert[lbr_adjustment.mod_lbr_ty] || 0) -
|
||||
restI.actual_price / lbr_adjustment.rate;
|
||||
}
|
||||
return {
|
||||
...restI,
|
||||
deductedfromlbr: deductfromlabor,
|
||||
deductedfromlbr: deductedfromlbr,
|
||||
joblineid: i.joblineid === "noline" ? null : i.joblineid,
|
||||
};
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user