IO-1499 Reconciliation to consider quantity.

This commit is contained in:
Patrick Fic
2021-11-08 10:50:21 -08:00
parent 2ec196e664
commit 10fb7d9d96

View File

@@ -73,7 +73,7 @@ export const reconcileByPrice = (
jobLines.forEach((jl) => {
const matchingBillLineIds = billLines
.filter((bl) => bl.actual_price === jl.act_price && !jl.removed)
.filter((bl) => bl.actual_price === jl.act_price && bl.quantity === jl.part_qty && !jl.removed)
.map((bl) => bl.id);
if (matchingBillLineIds.length > 1) {