mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Remove CN and PPN columns and bold receivables
This commit is contained in:
@@ -302,9 +302,6 @@ const createPDFDocument = (params: CustomerPaymentExportPDFParams) => {
|
|||||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1.2 }]}>
|
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1.2 }]}>
|
||||||
<Text>Harga Awal</Text>
|
<Text>Harga Awal</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1 }]}>
|
|
||||||
<Text>CN</Text>
|
|
||||||
</View>
|
|
||||||
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1.2 }]}>
|
<View style={[pdfStyles.tableCellHeaderRight, { flex: 1.2 }]}>
|
||||||
<Text>Harga Akhir</Text>
|
<Text>Harga Akhir</Text>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -88,9 +88,7 @@ export const generateCustomerPaymentExcel = (
|
|||||||
{ wch: 12 }, // Berat
|
{ wch: 12 }, // Berat
|
||||||
{ wch: 10 }, // AVG
|
{ wch: 10 }, // AVG
|
||||||
{ wch: 15 }, // Harga Awal
|
{ wch: 15 }, // Harga Awal
|
||||||
{ wch: 10 }, // CN
|
|
||||||
{ wch: 15 }, // Harga Akhir
|
{ wch: 15 }, // Harga Akhir
|
||||||
{ wch: 10 }, // PPN
|
|
||||||
{ wch: 15 }, // Total
|
{ wch: 15 }, // Total
|
||||||
{ wch: 15 }, // Pembayaran
|
{ wch: 15 }, // Pembayaran
|
||||||
{ wch: 15 }, // Saldo Piutang
|
{ wch: 15 }, // Saldo Piutang
|
||||||
|
|||||||
@@ -470,7 +470,11 @@ const CustomerPaymentTab = () => {
|
|||||||
cell: (props) => {
|
cell: (props) => {
|
||||||
const value = props.row.original.accounts_receivable;
|
const value = props.row.original.accounts_receivable;
|
||||||
return (
|
return (
|
||||||
<div className={`text-right ${value < 0 ? 'text-error' : ''}`}>
|
<div
|
||||||
|
className={`text-right font-semibold ${
|
||||||
|
value < 0 ? 'text-error' : ''
|
||||||
|
}`}
|
||||||
|
>
|
||||||
{formatCurrency(value)}
|
{formatCurrency(value)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -728,7 +732,6 @@ const CustomerPaymentTab = () => {
|
|||||||
total_initial_amount: 0,
|
total_initial_amount: 0,
|
||||||
total_credit_note: 0,
|
total_credit_note: 0,
|
||||||
total_final_amount: 0,
|
total_final_amount: 0,
|
||||||
total_ppn: 0,
|
|
||||||
total_grand_amount: 0,
|
total_grand_amount: 0,
|
||||||
total_payment: 0,
|
total_payment: 0,
|
||||||
total_accounts_receivable: 0,
|
total_accounts_receivable: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user