Add Date Custom field in deduction

Hello.

in the payment term, in the deduction loss section. I want to add the deduction and this deduction to be linked in a custom date field will not be the same as the transaction date of the payment entry. Moreover, this date need to be reflected in the ledger of the deduction section.