we are facing a problem, when paying invoices with discounted payment terms.
We have a discount of 2% defined when paying within 10 days. If the customer pays the invoice wihtin the 10 days, the wizard for paying the invoice just accepts the payment, without asking for the reamining value. After 10 days, we can choose how to write-off the difference or make a partial payment.
My question: How can we handle this? In the past (Tryton 3.6), we had a write-off defined and could use this in the wizard. Now ( Tryton 5.0 ) we have defined payment-methods and write-off methods.
I now see in the wizard coding, that there is the following rule for determining the asking for write-off or not ( modules/account_invoice: aeaca1267d06 invoice.py ):
if (remainder == Decimal('0.0') and amount_invoice <= invoice.amount_to_pay): return 'pay' return 'ask'
Thank you and best regards,