Issues resolved with Bill Enter Modal IO-480
This commit is contained in:
@@ -126,6 +126,9 @@ export function PartsOrderModalContainer({
|
||||
invoice_number: "ih",
|
||||
isinhouse: true,
|
||||
date: new moment(),
|
||||
total: values.parts_order_lines.data.reduce((acc, val) => {
|
||||
return acc + val.act_price * val.quantity;
|
||||
}, 0),
|
||||
billlines: values.parts_order_lines.data.map((p) => {
|
||||
return {
|
||||
joblineid: p.job_line_id,
|
||||
@@ -137,8 +140,8 @@ export function PartsOrderModalContainer({
|
||||
quantity: p.quantity || 1,
|
||||
applicable_taxes: {
|
||||
local: false,
|
||||
state: p.tax_part,
|
||||
federal: true,
|
||||
state: false,
|
||||
federal: false,
|
||||
},
|
||||
};
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user