IO-764 Added cost to parts return.

This commit is contained in:
Patrick Fic
2021-03-18 10:19:02 -07:00
parent c01b57f7cc
commit 62738c50a9
19 changed files with 323 additions and 2 deletions

View File

@@ -98,6 +98,16 @@ export default function PartsOrderModalComponent({
>
<CurrencyInput />
</Form.Item>
{isReturn && (
<Form.Item
label={t("parts_orders.fields.cost")}
key={`${index}cost`}
name={[field.name, "cost"]}
>
<CurrencyInput />
</Form.Item>
)}
<Form.Item
label={t("parts_orders.fields.quantity")}
key={`${index}quantity`}

View File

@@ -212,6 +212,7 @@ export function PartsOrderModalContainer({
oem_partno: value.oem_partno,
db_price: value.db_price,
act_price: value.act_price,
cost: value.cost,
quantity: value.part_qty,
job_line_id: isReturn ? value.joblineid : value.id,
});