diff --git a/src/components/pages/closing/ClosingProductionDataTabContent.tsx b/src/components/pages/closing/ClosingProductionDataTabContent.tsx index ba8a12ed..bffe1707 100644 --- a/src/components/pages/closing/ClosingProductionDataTabContent.tsx +++ b/src/components/pages/closing/ClosingProductionDataTabContent.tsx @@ -33,7 +33,7 @@ const ClosingProductionDataTabContent = ({ ); } - const { purchase, sales, performance, variance } = productionData.data; + const { purchase, sales, performance } = productionData.data; // Helper for consistent row styling const DataRow = ({ @@ -58,39 +58,6 @@ const ClosingProductionDataTabContent = ({ ); - // Helper for rows with two values (e.g., Deplesi: Ekor & %) - const DoubleDataRow = ({ - label, - value1, - unit1, - value2, - unit2, - value1ClassName = 'font-bold text-gray-800', - value2ClassName = 'font-bold text-blue-500', - }: { - label: string; - value1: string | number; - unit1: string; - value2: string | number; - unit2: string; - value1ClassName?: string; - value2ClassName?: string; - }) => ( -
- {label} -
-
- {value1} - {unit1} -
-
- {value2} - {unit2} -
-
-
- ); - return (

Data Produksi

@@ -121,17 +88,17 @@ const ClosingProductionDataTabContent = ({ />
@@ -142,27 +109,61 @@ const ClosingProductionDataTabContent = ({

Penjualan

-
- - - - +
+ {/* Chicken Sales */} +
+ + + + +
+ + {/* Egg Sales (if available) */} + {sales.egg && ( + <> +
+
+ + + + +
+ + )}
@@ -178,24 +179,20 @@ const ClosingProductionDataTabContent = ({ Performance
- - -
- - - {/* Variance Section (Pushed to bottom) */} -
-

Selisih

-
- - -