update
This commit is contained in:
@ -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 }))
|
||||
}
|
||||
>
|
||||
<SelectTrigger className="w-full lg:w-[420px]">
|
||||
<SelectTrigger className="w-full">
|
||||
<SelectValue placeholder="Select Transfer Type" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
@ -256,4 +252,4 @@ const UploadBatchDialog = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export { UploadBatchDialog };
|
||||
export { UploadBatchDialog };
|
||||
@ -293,7 +293,7 @@ const AddDialog = () => {
|
||||
<div className="w-full">
|
||||
<div className="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label className="form-label flex items-center gap-1 max-w-56">
|
||||
Credit Limit<span className="text-red-500">*</span>
|
||||
Credit Limit per Trx<span className="text-red-500">*</span>
|
||||
</label>
|
||||
<div className="w-full">
|
||||
<NumericFormat
|
||||
|
||||
@ -302,7 +302,7 @@ const EditDialog = () => {
|
||||
<div className="w-full">
|
||||
<div className="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label className="form-label flex items-center gap-1 max-w-56">
|
||||
Credit Limit<span className="text-red-500">*</span>
|
||||
Credit Limit per Trx<span className="text-red-500">*</span>
|
||||
</label>
|
||||
<NumericFormat
|
||||
className="input"
|
||||
|
||||
@ -115,7 +115,7 @@ const ManageWalletRuleContextProvider = ({ children }: { children: React.ReactNo
|
||||
{
|
||||
accessorFn: (row) => row.credit_limit,
|
||||
id: 'credit_limit',
|
||||
header: ({ column }) => <DataGridColumnHeader title="Credit Limit" column={column} />,
|
||||
header: ({ column }) => <DataGridColumnHeader title="Credit Limit per Trx" column={column} />,
|
||||
enableSorting: true,
|
||||
enableHiding: false,
|
||||
cell: ({ row }) => currencyFormat(row.original.credit_limit),
|
||||
|
||||
Reference in New Issue
Block a user