refactor(FE-327): Rename Ekor label to Kuantitas

This commit is contained in:
rstubryan
2025-12-05 17:49:59 +07:00
parent 46e072bbcf
commit f205c66509
@@ -69,7 +69,7 @@ const generateCustomHeaders = (template: {
}; };
if (group.label === 'Jumlah') { if (group.label === 'Jumlah') {
subCell.field = subLabel === 'Ekor' ? 'quantity' : 'weight'; subCell.field = subLabel === 'Kuantitas' ? 'quantity' : 'weight';
} }
subRow.push(subCell); subRow.push(subCell);
@@ -244,7 +244,7 @@ const SalesReportTable = ({
{ {
id: 'quantity', id: 'quantity',
accessorKey: 'quantity', accessorKey: 'quantity',
header: 'Ekor', header: 'Kuantitas',
cell: (props) => { cell: (props) => {
const value = props.getValue() as number; const value = props.getValue() as number;
const isSummary = props.row.id === 'summary'; const isSummary = props.row.id === 'summary';
@@ -386,7 +386,7 @@ const SalesReportTable = ({
{ {
label: 'Jumlah', label: 'Jumlah',
colSpan: 2, colSpan: 2,
subLabels: ['Ekor', 'Kg'], subLabels: ['Kuantitas', 'Kg'],
}, },
{ label: 'AVG (Kg)', field: 'average', rowSpan: 2 }, { label: 'AVG (Kg)', field: 'average', rowSpan: 2 },
{ label: 'Harga Mitra (Rp)', field: 'price_partner', rowSpan: 2 }, { label: 'Harga Mitra (Rp)', field: 'price_partner', rowSpan: 2 },