mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 23:35:45 +00:00
refactor(FE): Disable sales and filter_by until backend ready
This commit is contained in:
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user