refactor(FE): Disable sales and filter_by until backend ready

This commit is contained in:
rstubryan
2026-01-14 14:29:40 +07:00
parent 01e94b57c1
commit 66fa65e4bb
3 changed files with 55 additions and 44 deletions
@@ -177,10 +177,12 @@ interface CustomerPaymentExportPDFParams {
data: CustomerPaymentReport[];
params?: {
customer_name?: string;
sales?: string;
// TODO: Uncomment when BE is ready
// sales?: string;
start_date?: string;
end_date?: string;
filter_by?: string;
// TODO: Uncomment when BE is ready
// filter_by?: string;
};
}
@@ -195,9 +197,10 @@ const getParameterText = (
paramsText.push('Semua Customer');
}
if (params?.sales) {
paramsText.push(`Sales: ${params.sales}`);
}
// TODO: Uncomment when BE is ready
// if (params?.sales) {
// paramsText.push(`Sales: ${params.sales}`);
// }
if (params?.start_date && params?.end_date) {
const startDate = formatDate(params.start_date, 'DD MMM YYYY');
@@ -242,9 +245,10 @@ const createPDFDocument = (params: CustomerPaymentExportPDFParams) => {
: '-'}
</Text>
</View>
<View style={pdfStyles.parameterBadge}>
{/* TODO: Uncomment when BE is ready */}
{/* <View style={pdfStyles.parameterBadge}>
<Text>Filter Tanggal: Tanggal DO</Text>
</View>
</View> */}
<View style={pdfStyles.parameterBadge}>
<Text>
Customer: {params.params?.customer_name || 'Semua Customer'}