Fix fulfillment page error (#2064)
This commit is contained in:
parent
993a99ff07
commit
88bfffb2b4
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ export const OrderFulfillLine: React.FC<OrderFulfillLineProps> = props => {
|
||||||
const isPreorder = !!line.variant?.preorder;
|
const isPreorder = !!line.variant?.preorder;
|
||||||
const lineFormQuantity = isPreorder
|
const lineFormQuantity = isPreorder
|
||||||
? 0
|
? 0
|
||||||
: formsetData[lineIndex].value?.[0]?.quantity;
|
: formsetData[lineIndex]?.value?.[0]?.quantity;
|
||||||
|
|
||||||
const overfulfill = lineFormQuantity > line.quantityToFulfill;
|
const overfulfill = lineFormQuantity > line.quantityToFulfill;
|
||||||
const warehouseStock = getWarehouseStock(line?.variant?.stocks, warehouseId);
|
const warehouseStock = getWarehouseStock(line?.variant?.stocks, warehouseId);
|
||||||
|
|
Loading…
Reference in a new issue