IO-852 In House Order to $0
This commit is contained in:
@@ -128,14 +128,12 @@ export function PartsOrderModalContainer({
|
|||||||
invoice_number: "ih",
|
invoice_number: "ih",
|
||||||
isinhouse: true,
|
isinhouse: true,
|
||||||
date: new moment(),
|
date: new moment(),
|
||||||
total: values.parts_order_lines.data.reduce((acc, val) => {
|
total: 0,
|
||||||
return acc + val.act_price * val.quantity;
|
|
||||||
}, 0),
|
|
||||||
billlines: values.parts_order_lines.data.map((p) => {
|
billlines: values.parts_order_lines.data.map((p) => {
|
||||||
return {
|
return {
|
||||||
joblineid: p.job_line_id,
|
joblineid: p.job_line_id,
|
||||||
actual_price: p.act_price,
|
actual_price: p.act_price,
|
||||||
actual_cost: p.act_price,
|
actual_cost: 0, //p.act_price,
|
||||||
line_desc: p.line_desc,
|
line_desc: p.line_desc,
|
||||||
line_remarks: p.line_remarks,
|
line_remarks: p.line_remarks,
|
||||||
part_type: p.part_type,
|
part_type: p.part_type,
|
||||||
|
|||||||
Reference in New Issue
Block a user