Add Disc% field to Additional Discount

Hello,

Currently Additional Discount only provide amount,not percentage. I want to add disc% field, it can be easily added via custom field…But how to make it calculate automatically either user input in percent or amount?

Can anyone share some hints of needed custom script?

Thanks

Easiest would be to convert it into actual amount and recalculate.