diff --git a/src/components/StockTakeManagement/PickerReStockTake.tsx b/src/components/StockTakeManagement/PickerReStockTake.tsx index 7757c93..199b593 100644 --- a/src/components/StockTakeManagement/PickerReStockTake.tsx +++ b/src/components/StockTakeManagement/PickerReStockTake.tsx @@ -256,9 +256,11 @@ const PickerReStockTake: React.FC = ({ ...d, stockTakeRecordId: savedId ?? d.stockTakeRecordId, firstStockTakeQty: isFirstSubmit ? availableQty : d.firstStockTakeQty, - firstBadQty: isFirstSubmit ? badQty : d.firstBadQty ?? null, + firstBadQty: isFirstSubmit ? + badValidated.qty : d.firstBadQty ?? null, secondStockTakeQty: isSecondSubmit ? availableQty : d.secondStockTakeQty, - secondBadQty: isSecondSubmit ? badQty : d.secondBadQty ?? null, + secondBadQty: isSecondSubmit ? + badValidated.qty : d.secondBadQty ?? null, remarks: isSecondSubmit ? (recordInputs[detail.id]?.remark || null) : d.remarks, stockTakeRecordStatus: "pass", }