IO-2070 Credit memos no longer update line status.
This commit is contained in:
@@ -229,23 +229,26 @@ function BillEnterModalContainer({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//If it's not a credit memo, update the statuses.
|
||||||
|
|
||||||
await Promise.all(
|
if (!values.is_credit_memo) {
|
||||||
remainingValues.billlines
|
await Promise.all(
|
||||||
.filter((il) => il.joblineid !== "noline")
|
remainingValues.billlines
|
||||||
.map((li) => {
|
.filter((il) => il.joblineid !== "noline")
|
||||||
return updateJobLines({
|
.map((li) => {
|
||||||
variables: {
|
return updateJobLines({
|
||||||
lineId: li.joblineid,
|
variables: {
|
||||||
line: {
|
lineId: li.joblineid,
|
||||||
location: li.location || location,
|
line: {
|
||||||
status:
|
location: li.location || location,
|
||||||
bodyshop.md_order_statuses.default_received || "Received*",
|
status:
|
||||||
|
bodyshop.md_order_statuses.default_received || "Received*",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
});
|
||||||
});
|
})
|
||||||
})
|
);
|
||||||
);
|
}
|
||||||
|
|
||||||
/////////////////////////
|
/////////////////////////
|
||||||
if (upload && upload.length > 0) {
|
if (upload && upload.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user