fix: remove formattedUnitPrice

This commit is contained in:
ValdiANS
2026-04-07 17:22:46 +07:00
parent ef1ce2c78c
commit 444c475cb4
@@ -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)),