mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-09 02:28:18 +00:00
fix issue
This commit is contained in:
@@ -429,6 +429,7 @@ export default function GlCreateBookingForm() {
|
||||
quantity: Number(l.quantity || 0),
|
||||
hazardousQuantity: Number(l.hazardousQuantity || 0),
|
||||
reeferQuantity: Number(l.reeferQuantity || 0),
|
||||
returnQuantity: Number(l.returnQuantity || 0),
|
||||
})),
|
||||
bulkQuantity: Number(bulk.cargoWeightTons || bulk.itemCount || 0),
|
||||
bulkHazardousQuantity: Number(bulk.hazardousQuantity || 0),
|
||||
@@ -532,6 +533,7 @@ export default function GlCreateBookingForm() {
|
||||
allowedSizes: containerSizes,
|
||||
includeHazardous: contract?.isHazardous ?? false,
|
||||
includeReefer: contract?.isReefer ?? false,
|
||||
includeReturn: contractWithReturn,
|
||||
};
|
||||
|
||||
const handleImportFile = async (file: File | null) => {
|
||||
@@ -557,8 +559,7 @@ export default function GlCreateBookingForm() {
|
||||
quantity: String(imported.length),
|
||||
hazardousQuantity: String(imported.filter((r) => r.hazardous).length),
|
||||
reeferQuantity: String(imported.filter((r) => r.reefer).length),
|
||||
returnQuantity:
|
||||
prev.find((l) => l.containerSize === size)?.returnQuantity ?? "0",
|
||||
returnQuantity: String(imported.filter((r) => r.withReturn).length),
|
||||
units: imported.map((r) => ({
|
||||
containerNumber: r.containerNumber,
|
||||
sealNumber: r.sealNumber,
|
||||
|
||||
Reference in New Issue
Block a user