IO-1990 Add alt_partno to bill posting screen.
This commit is contained in:
@@ -27,6 +27,10 @@ const BillLineSearchSelect = (
|
|||||||
option.oem_partno
|
option.oem_partno
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.includes(inputValue.toLowerCase())) ||
|
.includes(inputValue.toLowerCase())) ||
|
||||||
|
(option.alt_partno &&
|
||||||
|
option.alt_partno
|
||||||
|
.toLowerCase()
|
||||||
|
.includes(inputValue.toLowerCase())) ||
|
||||||
(option.act_price &&
|
(option.act_price &&
|
||||||
option.act_price.toString().startsWith(inputValue.toString()))
|
option.act_price.toString().startsWith(inputValue.toString()))
|
||||||
);
|
);
|
||||||
@@ -48,14 +52,17 @@ const BillLineSearchSelect = (
|
|||||||
line_desc={item.line_desc}
|
line_desc={item.line_desc}
|
||||||
part_qty={item.part_qty}
|
part_qty={item.part_qty}
|
||||||
oem_partno={item.oem_partno}
|
oem_partno={item.oem_partno}
|
||||||
|
alt_partno={item.alt_partno}
|
||||||
act_price={item.act_price}
|
act_price={item.act_price}
|
||||||
style={{
|
style={{
|
||||||
...(item.removed ? { textDecoration: "line-through" } : {}),
|
...(item.removed ? { textDecoration: "line-through" } : {}),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span>{`${item.removed ? `(REMOVED) ` : ""}${item.line_desc}${
|
<span>
|
||||||
item.oem_partno ? ` - ${item.oem_partno}` : ""
|
{`${item.removed ? `(REMOVED) ` : ""}${item.line_desc}${
|
||||||
}`}</span>
|
item.oem_partno ? ` - ${item.oem_partno}` : ""
|
||||||
|
}${item.alt_partno ? ` (${item.alt_partno})` : ""}`.trim()}
|
||||||
|
</span>
|
||||||
<span style={{ float: "right", paddingleft: "1rem" }}>
|
<span style={{ float: "right", paddingleft: "1rem" }}>
|
||||||
{item.act_price
|
{item.act_price
|
||||||
? `$${item.act_price && item.act_price.toFixed(2)}`
|
? `$${item.act_price && item.act_price.toFixed(2)}`
|
||||||
|
|||||||
@@ -197,6 +197,7 @@ export const GET_JOB_LINES_TO_ENTER_BILL = gql`
|
|||||||
line_desc
|
line_desc
|
||||||
part_type
|
part_type
|
||||||
oem_partno
|
oem_partno
|
||||||
|
alt_partno
|
||||||
db_price
|
db_price
|
||||||
act_price
|
act_price
|
||||||
part_qty
|
part_qty
|
||||||
@@ -206,6 +207,7 @@ export const GET_JOB_LINES_TO_ENTER_BILL = gql`
|
|||||||
lbr_op
|
lbr_op
|
||||||
lbr_amt
|
lbr_amt
|
||||||
op_code_desc
|
op_code_desc
|
||||||
|
alt_partno
|
||||||
}
|
}
|
||||||
jobs_by_pk(id: $id) {
|
jobs_by_pk(id: $id) {
|
||||||
id
|
id
|
||||||
|
|||||||
Reference in New Issue
Block a user