feature/IO-3255-simplified-parts-management - cleanup

This commit is contained in:
Dave
2025-08-21 15:42:06 -04:00
parent 42e072e8ff
commit 96e38d509f

View File

@@ -517,7 +517,7 @@ const computeLinesTotal = (joblines = []) => {
let parts = 0;
let labor = 0;
for (const jl of joblines) {
if (jl && jl.part_type) {
if (jl?.part_type) {
const qty = Number.isFinite(jl.part_qty) ? jl.part_qty : 1;
const price = Number.isFinite(jl.act_price) ? jl.act_price : 0;
parts += price * (qty || 1);