Futher calculations refinments and QBD testing.

This commit is contained in:
Patrick Fic
2023-01-26 17:01:12 -08:00
parent 0a60f77bfc
commit 25b89d191b
4 changed files with 104 additions and 86 deletions

View File

@@ -520,7 +520,7 @@ async function ResolveCCCLineIssues(estData, bodyshop) {
//TODO Ensure that this doesnt get violated
//This needs to be done before cleansing unq_seq since some misc prices could move over.
estData.joblines.data.forEach((line) => {
if (line.misc_amt && line.misc_amt > 0) {
if (line.misc_amt && line.misc_amt !== 0) {
line.act_price = line.misc_amt;
line.part_type = "PAS";
line.tax_part = line.misc_tax;
@@ -546,6 +546,8 @@ async function ResolveCCCLineIssues(estData, bodyshop) {
...estData.joblines.data[nonRefLineIndex + 1],
act_price: null,
db_price: null,
prt_dsmk_p: 0,
prt_dsmk_m: 0,
};
});
}