+
Silakan klik tombol Filter untuk mengatur filter dan menampilkan
data.
@@ -735,7 +659,7 @@ const CustomerPaymentTab = () => {
+
Tidak ada data yang dapat ditampilkan...
) : (
@@ -757,15 +681,17 @@ const CustomerPaymentTab = () => {
title={customerReport.customer.name}
subtitle={`(${customerReport.customer.address})`}
className={{
- wrapper: 'w-full rounded-2xl',
+ wrapper: 'w-full rounded-lg border-none',
body: 'p-0',
title:
- 'py-1.5 px-3 bg-primary text-white text-lg font-normal',
+ 'px-2 py-1.5 font-normal text-sm bg-primary text-white',
subtitle:
- 'px-3 pb-1 bg-primary text-white text-sm font-normal',
+ 'px-2 pb-1.5 bg-primary text-white text-xs font-normal',
+ collapsible: 'rounded-lg',
}}
variant='bordered'
collapsible={true}
+ defaultCollapsed={true}
>
{
renderFooter={customerReport.rows.length > 0}
className={{
containerClassName: 'w-full mb-0!',
- tableWrapperClassName: 'overflow-x-auto',
+ tableWrapperClassName:
+ 'overflow-x-auto rounded-tr-none rounded-tl-none',
tableClassName: 'w-full table-auto text-sm',
headerRowClassName: 'border-b border-b-gray-200 bg-gray-50',
headerColumnClassName:
@@ -799,8 +726,8 @@ const CustomerPaymentTab = () => {
if (row.index === 0) {
return (
{
);
})
)}
-
-
+
+
+ {/* Filter Modal */}
+
+ {/* Modal Header */}
+
+
+
+ Filter Data
+
+
+
+
+
+
+
+ {
+ setFilterStartDate(e.target.value);
+ }}
+ className={{ wrapper: 'w-full' }}
+ isNestedModal
+ />
+
+
+ {
+ setFilterEndDate(e.target.value);
+ }}
+ className={{ wrapper: 'w-full' }}
+ isNestedModal
+ />
+
+
+
+ {
+ setFilterCustomer(Array.isArray(val) ? val : val ? [val] : []);
+ }}
+ onInputChange={setCustomerInputValue}
+ isLoading={isLoadingCustomers}
+ isClearable
+ onMenuScrollToBottom={loadMoreCustomers}
+ className={{ wrapper: 'w-full' }}
+ />
+
+ {/* TODO: Uncomment when BE is ready */}
+ {/*
+ {
+ setFilterSales(Array.isArray(val) ? val : val ? [val] : []);
+ }}
+ onInputChange={setSalesInputValue}
+ isLoading={isLoadingSales}
+ isClearable
+ onMenuScrollToBottom={loadMoreSales}
+ className={{ wrapper: 'w-full' }}
+ />
+ */}
+
+ {/* TODO: Uncomment when BE is ready */}
+ {/*
+
+ */}
+
+ {/* Action Buttons */}
+
+
+
+
+
+
+ >
);
};
diff --git a/src/components/pages/report/finance/tab/DebtSupplierTab.tsx b/src/components/pages/report/finance/tab/DebtSupplierTab.tsx
index 811c739b..ac53a7a3 100644
--- a/src/components/pages/report/finance/tab/DebtSupplierTab.tsx
+++ b/src/components/pages/report/finance/tab/DebtSupplierTab.tsx
@@ -686,6 +686,7 @@ const DebtSupplierTab = ({ tabId }: DebtSupplierTabProps) => {
formik.touched.startDate && !!formik.errors.startDate
}
errorMessage={formik.errors.startDate}
+ isNestedModal
/>
{
className={{ wrapper: 'w-full' }}
isError={formik.touched.endDate && !!formik.errors.endDate}
errorMessage={formik.errors.endDate}
+ isNestedModal
/>
@@ -759,7 +761,7 @@ const DebtSupplierTab = ({ tabId }: DebtSupplierTabProps) => {
{/* Action Buttons */}
-
+
|