mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 06:45:46 +00:00
fix: remove formattedUnitPrice
This commit is contained in:
@@ -207,15 +207,10 @@ const SalesOrderFormModal = ({
|
||||
marketingTypeValue = product.week ? 'AYAM_PULLET' : 'AYAM';
|
||||
}
|
||||
|
||||
const formattedUnitPrice =
|
||||
convertionUnitValue === 'QTY'
|
||||
? parseFloat(String(product.price_per_qty || 0))
|
||||
: parseFloat(String(product.unit_price || 0));
|
||||
|
||||
return {
|
||||
vehicle_number: product.vehicle_number as string,
|
||||
product_warehouse_id: product.product_warehouse_id as number,
|
||||
unit_price: formattedUnitPrice,
|
||||
unit_price: parseFloat(String(product.unit_price || 0)),
|
||||
total_weight: parseFloat(String(product.total_weight || 0)),
|
||||
qty: parseFloat(String(product.qty || 0)),
|
||||
avg_weight: parseFloat(String(product.avg_weight || 0)),
|
||||
|
||||
Reference in New Issue
Block a user