mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Rename Ayam labels to Telur in HPP reports
This commit is contained in:
@@ -226,7 +226,7 @@ const createPDFDocument = (
|
||||
<Text>Rentang BW</Text>
|
||||
</View>
|
||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1 }]}>
|
||||
<Text>Sisa Ekor</Text>
|
||||
<Text>Sisa Butir</Text>
|
||||
</View>
|
||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1 }]}>
|
||||
<Text>Sisa Kg</Text>
|
||||
@@ -253,7 +253,7 @@ const createPDFDocument = (
|
||||
<Text>Nilai Nominal Telur</Text>
|
||||
</View>
|
||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1 }]}>
|
||||
<Text>HPP Ayam</Text>
|
||||
<Text>HPP Telur</Text>
|
||||
</View>
|
||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1.2 }]}>
|
||||
<Text>HPP Telur (RP/KG)</Text>
|
||||
@@ -356,10 +356,10 @@ const createPDFDocument = (
|
||||
<Text>Rata-Rata Bobot (Kg)</Text>
|
||||
</View>
|
||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 0.8 }]}>
|
||||
<Text>Sisa Ekor</Text>
|
||||
<Text>Sisa Butir</Text>
|
||||
</View>
|
||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 0.8 }]}>
|
||||
<Text>Sisa Kg (Ayam)</Text>
|
||||
<Text>Sisa Kg (Telur)</Text>
|
||||
</View>
|
||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 0.8 }]}>
|
||||
<Text>Produksi Telur (Butir)</Text>
|
||||
@@ -380,7 +380,7 @@ const createPDFDocument = (
|
||||
<Text>Nilai Nominal Telur</Text>
|
||||
</View>
|
||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 0.8 }]}>
|
||||
<Text>HPP Ayam</Text>
|
||||
<Text>HPP Telur</Text>
|
||||
</View>
|
||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1 }]}>
|
||||
<Text>HPP Telur (RP/KG)</Text>
|
||||
|
||||
@@ -335,8 +335,8 @@ const HppPerKandangTab = () => {
|
||||
? `${formatNumber(item.weight_range.weight_min)} - ${formatNumber(item.weight_range.weight_max)}`
|
||||
: '',
|
||||
'Rata-Rata Bobot (KG)': item.avg_weight_kg || 0,
|
||||
'Sisa Ayam (Ekor)': item.remaining_chicken_birds || 0,
|
||||
'Sisa Ayam (KG)': item.remaining_chicken_weight_kg || 0,
|
||||
'Sisa Telur (Butir)': item.remaining_chicken_birds || 0,
|
||||
'Sisa Telur (KG)': item.remaining_chicken_weight_kg || 0,
|
||||
'Produksi Telur (Butir)': item.egg_production_pieces || 0,
|
||||
'Produksi Telur (KG)': item.egg_production_kg || 0,
|
||||
'Feed (Supplier)':
|
||||
@@ -349,9 +349,9 @@ const HppPerKandangTab = () => {
|
||||
.join(' | ') || '',
|
||||
'Rata-Rata Harga DOC (RP)': item.average_doc_price_rp || 0,
|
||||
'Nilai Nominal Telur (RP)': item.egg_value_rp || 0,
|
||||
'HPP Ayam (RP)': item.hpp_rp || 0,
|
||||
'HPP Telur (RP)': item.hpp_rp || 0,
|
||||
'HPP Telur (RP/KG)': item.egg_hpp_rp_per_kg || 0,
|
||||
'Nilai Nominal Sisa Ayam (RP)': item.remaining_value_rp || 0,
|
||||
'Nilai Nominal Sisa Telur (RP)': item.remaining_value_rp || 0,
|
||||
})
|
||||
);
|
||||
|
||||
@@ -360,8 +360,8 @@ const HppPerKandangTab = () => {
|
||||
Kandang: 'ALL',
|
||||
'Rentang Bobot': '-',
|
||||
'Rata-Rata Bobot (KG)': summaryTotal?.average_weight_kg || 0,
|
||||
'Sisa Ayam (Ekor)': summaryTotal?.total_remaining_chicken_birds || 0,
|
||||
'Sisa Ayam (KG)': summaryTotal?.total_remaining_chicken_weight_kg || 0,
|
||||
'Sisa Telur (Butir)': summaryTotal?.total_remaining_chicken_birds || 0,
|
||||
'Sisa Telur (KG)': summaryTotal?.total_remaining_chicken_weight_kg || 0,
|
||||
'Produksi Telur (Butir)':
|
||||
summaryTotal?.total_egg_production_pieces || 0,
|
||||
'Produksi Telur (KG)': summaryTotal?.total_egg_production_kg || 0,
|
||||
@@ -370,9 +370,9 @@ const HppPerKandangTab = () => {
|
||||
'Rata-Rata Harga DOC (RP)':
|
||||
summaryTotal?.total_average_doc_price_rp || 0,
|
||||
'Nilai Nominal Telur (RP)': summaryTotal?.total_egg_value_rp || 0,
|
||||
'HPP Ayam (RP)': summaryTotal?.total_hpp_rp || 0,
|
||||
'HPP Telur (RP)': summaryTotal?.total_hpp_rp || 0,
|
||||
'HPP Telur (RP/KG)': summaryTotal?.average_egg_hpp_rp_per_kg || 0,
|
||||
'Nilai Nominal Sisa Ayam (RP)':
|
||||
'Nilai Nominal Sisa Telur (RP)':
|
||||
summaryTotal?.total_remaining_value_rp || 0,
|
||||
});
|
||||
|
||||
@@ -383,17 +383,17 @@ const HppPerKandangTab = () => {
|
||||
{ wch: 30 }, // Kandang
|
||||
{ wch: 15 }, // Rentang Bobot
|
||||
{ wch: 18 }, // Rata-Rata Bobot (KG)
|
||||
{ wch: 15 }, // Sisa Ayam (Ekor)
|
||||
{ wch: 15 }, // Sisa Ayam (KG)
|
||||
{ wch: 15 }, // Sisa Telur (Butir)
|
||||
{ wch: 15 }, // Sisa Telur (KG)
|
||||
{ wch: 18 }, // Produksi Telur (Butir)
|
||||
{ wch: 18 }, // Produksi Telur (KG)
|
||||
{ wch: 20 }, // Feed (Supplier)
|
||||
{ wch: 20 }, // DOC (Supplier)
|
||||
{ wch: 20 }, // Rata-Rata Harga DOC (RP)
|
||||
{ wch: 20 }, // Nilai Nominal Telur (RP)
|
||||
{ wch: 15 }, // HPP Ayam (RP)
|
||||
{ wch: 15 }, // HPP Telur (RP)
|
||||
{ wch: 18 }, // HPP Telur (RP/KG)
|
||||
{ wch: 25 }, // Nilai Nominal Sisa Ayam (RP)
|
||||
{ wch: 25 }, // Nilai Nominal Sisa Telur (RP)
|
||||
];
|
||||
worksheet['!cols'] = colWidths;
|
||||
|
||||
@@ -535,7 +535,7 @@ const HppPerKandangTab = () => {
|
||||
},
|
||||
{
|
||||
id: 'remaining_chicken_birds',
|
||||
header: 'Sisa Ayam (Ekor)',
|
||||
header: 'Sisa Telur (Butir)',
|
||||
accessorKey: 'remaining_chicken_birds',
|
||||
cell: (props) => {
|
||||
const value = props.row.original.remaining_chicken_birds;
|
||||
@@ -549,7 +549,7 @@ const HppPerKandangTab = () => {
|
||||
},
|
||||
{
|
||||
id: 'remaining_chicken_weight_kg',
|
||||
header: 'Sisa Ayam (KG)',
|
||||
header: 'Sisa Telur (KG)',
|
||||
accessorKey: 'remaining_chicken_weight_kg',
|
||||
cell: (props) => {
|
||||
const value = props.row.original.remaining_chicken_weight_kg;
|
||||
@@ -655,7 +655,7 @@ const HppPerKandangTab = () => {
|
||||
},
|
||||
{
|
||||
id: 'hpp_rp',
|
||||
header: 'HPP Ayam (RP)',
|
||||
header: 'HPP Telur (RP)',
|
||||
accessorKey: 'hpp_rp',
|
||||
cell: (props) => {
|
||||
const value = props.row.original.hpp_rp;
|
||||
@@ -683,7 +683,7 @@ const HppPerKandangTab = () => {
|
||||
},
|
||||
{
|
||||
id: 'remaining_value_rp',
|
||||
header: 'Nilai Nominal Sisa Ayam (RP)',
|
||||
header: 'Nilai Nominal Sisa Telur (RP)',
|
||||
accessorKey: 'remaining_value_rp',
|
||||
cell: (props) => {
|
||||
const value = props.row.original.remaining_value_rp;
|
||||
|
||||
Reference in New Issue
Block a user