Try ERPNext Try Frappe Cloud Buy Support Partners Foundation

Rounded total in payment terms

Hello,

i need help using rounded total in payment terms template,

we use the payment terms to sell items and get paid on 8 years, so we get our payments in parts like 2.107% monthly of total invoice, i’m able to do that using payment terms and templates, the only problem i have is getting a number like that ( 11799.20 ) in the payment amount which is number we cannot write on cheque,

can we make rounded total to round the invoice payment amount to the closest great number like ( 11800 )
or use a script to do that ?

Any help

If you want rounded total for your entire system, there is a system-wide rounded totals setting. If you only want rounded totals for your payment terms, you can do it in the validate: of frontend javascript or before_save of python (backend). (You may also do this in server script)

Hello,

Thanks a lot for your reply,

Can you help me with that script as i am not familiar with writing scripts to erpnext ?

Thanks

Also Rounded total for entire system is rounding only the total amount of invoice , not the payment terms