| @@ -223,7 +223,7 @@ const QcStockInModal: React.FC<Props> = ({ | |||||
| acceptQty: d.status != StockInStatus.REJECTED ? (d.acceptedQty ?? d.receivedQty ?? d.demandQty) : 0, | acceptQty: d.status != StockInStatus.REJECTED ? (d.acceptedQty ?? d.receivedQty ?? d.demandQty) : 0, | ||||
| // escResult: (d.escResult && d.escResult?.length > 0) ? d.escResult : [], | // escResult: (d.escResult && d.escResult?.length > 0) ? d.escResult : [], | ||||
| // qcResult: (d.qcResult && d.qcResult?.length > 0) ? d.qcResult : [],//[...dummyQCData], | // qcResult: (d.qcResult && d.qcResult?.length > 0) ? d.qcResult : [],//[...dummyQCData], | ||||
| warehouseId: d.defaultWarehouseId ?? 489, | |||||
| warehouseId: d.defaultWarehouseId ?? 1141, | |||||
| putAwayLines: d.putAwayLines?.map((line) => ({...line, printQty: 1, _isNew: false, _disableDelete: true})) ?? [], | putAwayLines: d.putAwayLines?.map((line) => ({...line, printQty: 1, _isNew: false, _disableDelete: true})) ?? [], | ||||
| } as ModalFormInput | } as ModalFormInput | ||||
| ) | ) | ||||
| @@ -464,10 +464,10 @@ const QcStockInModal: React.FC<Props> = ({ | |||||
| const shouldAutoPutaway = isJobOrderBom || isFaItem; | const shouldAutoPutaway = isJobOrderBom || isFaItem; | ||||
| if (shouldAutoPutaway) { | if (shouldAutoPutaway) { | ||||
| // Auto putaway to default warehouse | // Auto putaway to default warehouse | ||||
| const defaultWarehouseId = stockInLineInfo?.defaultWarehouseId ?? 489; | |||||
| const defaultWarehouseId = stockInLineInfo?.defaultWarehouseId ?? 1141; | |||||
| // Get warehouse name from warehouse prop or use default | // Get warehouse name from warehouse prop or use default | ||||
| let defaultWarehouseName = "2F-W201-#A-01"; // Default warehouse name | |||||
| let defaultWarehouseName = "2F-W200-#A-00"; // Default warehouse name | |||||
| if (warehouse && warehouse.length > 0) { | if (warehouse && warehouse.length > 0) { | ||||
| const defaultWarehouse = warehouse.find(w => w.id === defaultWarehouseId); | const defaultWarehouse = warehouse.find(w => w.id === defaultWarehouseId); | ||||
| if (defaultWarehouse) { | if (defaultWarehouse) { | ||||