refactor(FE): Remove CN and PPN columns and bold receivables

This commit is contained in:
rstubryan
2026-01-14 22:02:48 +07:00
parent d8e134d404
commit a72fbec5ce
3 changed files with 5 additions and 7 deletions
@@ -302,9 +302,6 @@ const createPDFDocument = (params: CustomerPaymentExportPDFParams) => {
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1.2 }]}>
<Text>Harga Awal</Text>
</View>
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1 }]}>
<Text>CN</Text>
</View>
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1.2 }]}>
<Text>Harga Akhir</Text>
</View>
@@ -88,9 +88,7 @@ export const generateCustomerPaymentExcel = (
{ wch: 12 }, // Berat
{ wch: 10 }, // AVG
{ wch: 15 }, // Harga Awal
{ wch: 10 }, // CN
{ wch: 15 }, // Harga Akhir
{ wch: 10 }, // PPN
{ wch: 15 }, // Total
{ wch: 15 }, // Pembayaran
{ wch: 15 }, // Saldo Piutang
@@ -470,7 +470,11 @@ const CustomerPaymentTab = () => {
cell: (props) => {
const value = props.row.original.accounts_receivable;
return (
<div className={`text-right ${value < 0 ? 'text-error' : ''}`}>
<div
className={`text-right font-semibold ${
value < 0 ? 'text-error' : ''
}`}
>
{formatCurrency(value)}
</div>
);
@@ -728,7 +732,6 @@ const CustomerPaymentTab = () => {
total_initial_amount: 0,
total_credit_note: 0,
total_final_amount: 0,
total_ppn: 0,
total_grand_amount: 0,
total_payment: 0,
total_accounts_receivable: 0,