diff --git a/src/components/pages/marketing/SalesOrderFormModal.tsx b/src/components/pages/marketing/SalesOrderFormModal.tsx index e06ecbf3..17a59a92 100644 --- a/src/components/pages/marketing/SalesOrderFormModal.tsx +++ b/src/components/pages/marketing/SalesOrderFormModal.tsx @@ -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)),