remove fee_amount on transfer fee

This commit is contained in:
bagusajisaputroo
2025-05-18 00:07:09 +07:00
parent 59205afad9
commit 665922aec5
3 changed files with 1 additions and 47 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,
fee_amount: 0,
priority: '', priority: '',
status: '', status: '',
status_include: '', status_include: '',
@ -114,7 +113,6 @@ const AddFeeDialog = () => {
credit_destination_account: '' credit_destination_account: ''
}; };
const [formField, setFormField] = useState(initialState); const [formField, setFormField] = useState(initialState);
const resetForm = () => { const resetForm = () => {
@ -554,23 +552,7 @@ const AddFeeDialog = () => {
placeholder="Enter Deduct Percentage" placeholder="Enter Deduct Percentage"
/> />
</div> </div>
<div className="w-full">
<label className="form-label">Fee Amount</label>
<NumericFormat
className="input"
value={formField.fee_amount}
thousandSeparator="."
decimalSeparator=","
allowNegative={false}
onValueChange={(values) => {
setFormField((prev) => ({
...prev,
fee_amount: values.floatValue || 0
}));
}}
placeholder="Enter Fee Amount"
/>
</div>
<div className="w-full"> <div className="w-full">
<label className="form-label"> <label className="form-label">
Deduct From <span className="text-red-500">*</span> Deduct From <span className="text-red-500">*</span>

View File

@ -94,7 +94,6 @@ const EditFeeDialog = () => {
period_end: '', period_end: '',
deduct_amount: 0, deduct_amount: 0,
deduct_percentage: 0, deduct_percentage: 0,
fee_amount: 0,
priority: '', priority: '',
status: '', status: '',
status_include: '', status_include: '',
@ -309,7 +308,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,
fee_amount: response.data.fee_amount || 0,
priority: response.data.priority || '', priority: response.data.priority || '',
status: response.data.status || '', status: response.data.status || '',
status_include: response.data.status_include || '', status_include: response.data.status_include || '',
@ -605,24 +603,6 @@ const EditFeeDialog = () => {
/> />
</div> </div>
<div className="w-full">
<label className="form-label">Fee Amount</label>
<NumericFormat
className="input"
value={formField.fee_amount}
thousandSeparator="."
decimalSeparator=","
allowNegative={false}
onValueChange={(values) => {
setFormField((prev) => ({
...prev,
fee_amount: values.floatValue || 0
}));
}}
placeholder="Enter Fee Amount"
/>
</div>
<div className="w-full"> <div className="w-full">
<label className="form-label"> <label className="form-label">
Deduct From <span className="text-red-500">*</span> Deduct From <span className="text-red-500">*</span>

View File

@ -143,14 +143,6 @@ const ManageTransferFeeContextProvider = ({
enableHiding: false, enableHiding: false,
meta: { headerClassName: 'w-[150px]' } meta: { headerClassName: 'w-[150px]' }
}, },
{
accessorFn: (row) => row.fee_amount,
id: 'fee_amount',
header: ({ column }) => <DataGridColumnHeader title="Fee Amount" column={column} />,
enableSorting: true,
enableHiding: false,
meta: { headerClassName: 'w-[150px]' }
},
{ {
accessorFn: (row) => row.deduct_amount, accessorFn: (row) => row.deduct_amount,
id: 'deduct_amount', id: 'deduct_amount',