From ec480f2cb17cc25d7292c21af88037f909d1ad8c Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 29 May 2024 14:08:49 -0700 Subject: [PATCH] Resolve Bill Posting errors on Beta. --- .../bill-line-search-select.component.jsx | 57 +++++++++---------- .../parts-order-list-table.component.jsx | 4 +- 2 files changed, 29 insertions(+), 32 deletions(-) diff --git a/client/src/components/bill-line-search-select/bill-line-search-select.component.jsx b/client/src/components/bill-line-search-select/bill-line-search-select.component.jsx index 187cf29bf..6481a6737 100644 --- a/client/src/components/bill-line-search-select/bill-line-search-select.component.jsx +++ b/client/src/components/bill-line-search-select/bill-line-search-select.component.jsx @@ -25,31 +25,27 @@ const BillLineSearchSelect = ({ options, disabled, allowRemoved, ...restProps }, ); }} notFoundContent={"Removed."} - {...restProps} - > - - {t("billlines.labels.other")} - - {options - ? options.map((item) => ( - - )) - : null} - + + ) + })) + ]} + {...restProps} + > ); }; export default forwardRef(BillLineSearchSelect); diff --git a/client/src/components/parts-order-list-table/parts-order-list-table.component.jsx b/client/src/components/parts-order-list-table/parts-order-list-table.component.jsx index a18d2b4ba..b407964ed 100644 --- a/client/src/components/parts-order-list-table/parts-order-list-table.component.jsx +++ b/client/src/components/parts-order-list-table/parts-order-list-table.component.jsx @@ -101,7 +101,7 @@ export function PartsOrderListTableComponent({ } else { const fetchData = async () => { const result = await billQuery({ - variables: { billid: returnfrombill }, + variables: { billid: returnfrombill } }); setBillData(result.data); }; @@ -203,7 +203,7 @@ export function PartsOrderListTableComponent({ is_credit_memo: record.return, billlines: record.parts_order_lines.map((pol) => { return { - joblineid: pol.job_line_id, + joblineid: pol.job_line_id || "noline", line_desc: pol.line_desc, quantity: pol.quantity,