mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
Merge branch 'fix/marketing-delivery-order' into 'development'
[FIX/FE] Marketing Delivery Order See merge request mbugroup/lti-web-client!386
This commit is contained in:
@@ -199,6 +199,9 @@ const DeliveryOrderFormModal = ({}: { initialValues?: Marketing }) => {
|
|||||||
'yyyy-MM-DD'
|
'yyyy-MM-DD'
|
||||||
),
|
),
|
||||||
vehicle_number: product.vehicle_number,
|
vehicle_number: product.vehicle_number,
|
||||||
|
weight_per_convertion: parseFloat(
|
||||||
|
String(product.weight_per_convertion ?? 0)
|
||||||
|
),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -432,6 +435,9 @@ const DeliveryOrderFormModal = ({}: { initialValues?: Marketing }) => {
|
|||||||
'yyyy-MM-DD'
|
'yyyy-MM-DD'
|
||||||
),
|
),
|
||||||
vehicle_number: product.vehicle_number,
|
vehicle_number: product.vehicle_number,
|
||||||
|
weight_per_convertion: parseFloat(
|
||||||
|
String(product.weight_per_convertion ?? 0)
|
||||||
|
),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -213,7 +213,8 @@ export const DeliveryProductToFieldValues = (
|
|||||||
total_price: item.total_price,
|
total_price: item.total_price,
|
||||||
},
|
},
|
||||||
total_peti: salesOrder?.total_peti,
|
total_peti: salesOrder?.total_peti,
|
||||||
weight_per_convertion: salesOrder?.weight_per_convertion,
|
weight_per_convertion:
|
||||||
|
item?.weight_per_convertion ?? salesOrder?.weight_per_convertion ?? 0,
|
||||||
price_per_convertion: initialPricePerConvertion,
|
price_per_convertion: initialPricePerConvertion,
|
||||||
} as DeliveryOrderProductFormValues;
|
} as DeliveryOrderProductFormValues;
|
||||||
});
|
});
|
||||||
|
|||||||
+1
@@ -61,6 +61,7 @@ export type BaseDelivery = {
|
|||||||
avg_weight: number;
|
avg_weight: number;
|
||||||
total_price: number;
|
total_price: number;
|
||||||
vehicle_number: string;
|
vehicle_number: string;
|
||||||
|
weight_per_convertion: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MarketingProduct = {
|
export type MarketingProduct = {
|
||||||
|
|||||||
Reference in New Issue
Block a user