diff --git a/src/pages/disbursement/history-transaction/blocks/UploadBatchDialog.tsx b/src/pages/disbursement/history-transaction/blocks/UploadBatchDialog.tsx index 15bc730..688d4ac 100644 --- a/src/pages/disbursement/history-transaction/blocks/UploadBatchDialog.tsx +++ b/src/pages/disbursement/history-transaction/blocks/UploadBatchDialog.tsx @@ -135,15 +135,11 @@ const UploadBatchDialog = () => { with_deleted: false, order_field: 'id', order_direction: 'ASC', - filter: JSON.stringify({}) + filter: JSON.stringify({ type: "D" }) }); - const validTypes = ['DM', 'DA', 'DE']; const records: TransferType[] = response?.data?.list ?? []; - - const filtered = records.filter((item) => validTypes.includes(item.type)); - - setTransferTypes(filtered); + setTransferTypes(records); } catch (error) { console.error('Failed to fetch transfer types', error); } @@ -225,7 +221,7 @@ const UploadBatchDialog = () => { setFormField((prev) => ({ ...prev, id_transaction_type: val })) } > - + @@ -256,4 +252,4 @@ const UploadBatchDialog = () => { ); }; -export { UploadBatchDialog }; +export { UploadBatchDialog }; \ No newline at end of file diff --git a/src/pages/master/walletRule/blocks/AddDialog.tsx b/src/pages/master/walletRule/blocks/AddDialog.tsx index c9e4d72..92c70cb 100644 --- a/src/pages/master/walletRule/blocks/AddDialog.tsx +++ b/src/pages/master/walletRule/blocks/AddDialog.tsx @@ -293,7 +293,7 @@ const AddDialog = () => {
{
row.credit_limit, id: 'credit_limit', - header: ({ column }) => , + header: ({ column }) => , enableSorting: true, enableHiding: false, cell: ({ row }) => currencyFormat(row.original.credit_limit),