remove priority trensfer fee

This commit is contained in:
bagusajisaputroo
2025-05-19 00:17:40 +07:00
parent ffcb49d46d
commit 219e606c30
3 changed files with 2 additions and 62 deletions

View File

@ -101,7 +101,6 @@ const AddFeeDialog = () => {
period_end: '', period_end: '',
deduct_amount: 0, deduct_amount: 0,
deduct_percentage: 0, deduct_percentage: 0,
priority: '',
status: '', status: '',
status_include: '', status_include: '',
created_by: '', created_by: '',
@ -271,7 +270,6 @@ const AddFeeDialog = () => {
'transaction_type', 'transaction_type',
'status', 'status',
'status_include', 'status_include',
'priority',
'deduct_from', 'deduct_from',
'deduct_from_account', 'deduct_from_account',
'credit_to', 'credit_to',
@ -726,23 +724,7 @@ const AddFeeDialog = () => {
</SelectContent> </SelectContent>
</Select> </Select>
</div> </div>
<div className="w-full">
<label className="form-label">
Priority <span className="text-red-500">*</span>
</label>
<Select
value={formField.priority}
onValueChange={(value) => setFormField({ ...formField, priority: value })}
>
<SelectTrigger>
<SelectValue placeholder="Select Priority" />
</SelectTrigger>
<SelectContent>
<SelectItem value="Y">Yes</SelectItem>
<SelectItem value="N">No</SelectItem>
</SelectContent>
</Select>
</div>
<div className="flex justify-end pt-2.5 gap-5"> <div className="flex justify-end pt-2.5 gap-5">
<Button <Button
variant={'outline'} variant={'outline'}

View File

@ -94,7 +94,6 @@ const EditFeeDialog = () => {
period_end: '', period_end: '',
deduct_amount: 0, deduct_amount: 0,
deduct_percentage: 0, deduct_percentage: 0,
priority: '',
status: '', status: '',
status_include: '', status_include: '',
updated_by: '', updated_by: '',
@ -142,7 +141,6 @@ const EditFeeDialog = () => {
'transaction_type', 'transaction_type',
'status', 'status',
'status_include', 'status_include',
'priority',
'deduct_from', 'deduct_from',
'deduct_from_account', 'deduct_from_account',
'credit_to', 'credit_to',
@ -308,7 +306,6 @@ const EditFeeDialog = () => {
period_end: formatDate(response.data.period_end), period_end: formatDate(response.data.period_end),
deduct_amount: response.data.deduct_amount || 0, deduct_amount: response.data.deduct_amount || 0,
deduct_percentage: response.data.deduct_percentage || 0, deduct_percentage: response.data.deduct_percentage || 0,
priority: response.data.priority || '',
status: response.data.status || '', status: response.data.status || '',
status_include: response.data.status_include || '', status_include: response.data.status_include || '',
deduct_from: response.data.deduct_from || '', deduct_from: response.data.deduct_from || '',
@ -785,23 +782,7 @@ const EditFeeDialog = () => {
</Select> </Select>
</div> </div>
<div className="w-full">
<label className="form-label">
Priority <span className="text-red-500">*</span>
</label>
<Select
value={formField.priority}
onValueChange={(value) => setFormField({ ...formField, priority: value })}
>
<SelectTrigger>
<SelectValue placeholder="Select Priority" />
</SelectTrigger>
<SelectContent>
<SelectItem value="Y">Yes</SelectItem>
<SelectItem value="N">No</SelectItem>
</SelectContent>
</Select>
</div>
<div className="flex justify-end pt-2.5 gap-5"> <div className="flex justify-end pt-2.5 gap-5">
<Button variant={'outline'} type="button" onClick={resetForm}> <Button variant={'outline'} type="button" onClick={resetForm}>

View File

@ -248,30 +248,7 @@ const ManageTransferFeeContextProvider = ({
enableHiding: false, enableHiding: false,
meta: { headerClassName: 'w-[250px]' } meta: { headerClassName: 'w-[250px]' }
}, },
{
accessorFn: (row) => row.priority,
id: 'priority',
header: ({ column }) => <DataGridColumnHeader title="Priority" column={column} />,
enableSorting: true,
enableHiding: false,
cell: ({ row }) => {
const isActive = row.original.priority === 'Y';
return (
<span
className={`px-2 py-1 text-xs font-semibold rounded-full ${
isActive ? 'bg-green-100 text-green-600' : 'bg-red-100 text-red-600'
}`}
>
{isActive ? 'Yes' : 'No'}
</span>
);
},
meta: {
headerClassName: 'w-[100px]',
cellClassName: 'text-center'
}
},
{ {
accessorFn: (row) => row.status, accessorFn: (row) => row.status,
id: 'status', id: 'status',