You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Modified `account_payment_pro/models/account_payment.py`: restore minimal write-off branch while making sign explicit; keep original behaviour of computing `amount_currency` by dividing `write_off_amount` by `exchange_rate` when payment and company currencies differ; preserve `currency_id` and compute `balance` in company currency.
- Extended `account_payment_pro/tests/test_account_paymet_pro_unit_test.py` with a new test `test_write_off_line_amounts_company_vs_payment_currency` that sets up a scenario with a company in ARS and a payment in USD, then creates and validates a payment with write-off, checking that the write-off line shows the correct amounts in both currencies.
Change note: Ahora, al crear y validar un pago con write-off en otra moneda, la línea de write-off muestra correctamente el importe en la moneda del pago (por ejemplo 1000/1300) y el saldo en la moneda de la compañía (por ejemplo 1000). Se añadió una prueba automática que valida este comportamiento para evitar regresiones.
closes#1017
Signed-off-by: rov-adhoc <rov@adhoc.com.ar>
0 commit comments