Invoice enter modal now saves invoices.

This commit is contained in:
Patrick Fic
2020-03-03 10:24:00 -08:00
parent c8ba3295bf
commit cb0b5c552c
7 changed files with 103 additions and 58 deletions

View File

@@ -57,9 +57,9 @@ export default function InvoiceEnterModalLinesComponent({
? ""
: opt.value,
actual_price: opt.cost ? opt.cost : 0,
cost_center: opt.mod_lbr_ty
cost_center: opt.part_type
? responsibilityCenters.defaults[
opt.mod_lbr_ty
opt.part_type
] || null
: null
};
@@ -83,7 +83,7 @@ export default function InvoiceEnterModalLinesComponent({
key={item.id}
value={item.line_desc}
cost={item.act_price ? item.act_price : 0}
mod_lbr_ty={item.mod_lbr_ty}
part_type={item.part_type}
>
<Row justify="center" align="middle">
<Col span={12}> {item.line_desc}</Col>