New fix for NA mitchell items. RPS-46. Fixed vehicle age bug RPS-51

This commit is contained in:
Patrick Fic
2020-11-18 15:10:45 -08:00
parent b057f50579
commit 6ecdcefe92
7 changed files with 53 additions and 26 deletions

View File

@@ -20,7 +20,9 @@ export default function JobPartsGraphAtom({
}
acc[val.part_type] = acc[val.part_type].add(
Dinero({ amount: Math.round((val[price] || 0) * 100) })
Dinero({ amount: Math.round((val[price] || 0) * 100) }).multiply(
val.part_qty || 1
)
);
return acc;

View File

@@ -60,6 +60,13 @@ export default function JobLinesTableMolecule({ loading, job }) {
width: "15%",
sorter: (a, b) => alphaSort(a.oem_partno, b.oem_partno),
},
{
title: "Qty.",
dataIndex: "part_qty",
key: "part_qty",
width: "5%",
sorter: (a, b) => a.part_qty - b.part_qty,
},
{
title: "Database Price",
dataIndex: "db_price",