Skip to content

Conversation

cav-adhoc
Copy link
Contributor

Ensure that the withholding amounts are always added as positive values in the payment total calculation by updating the logic in AccountPayment._compute_payment_total. This fixes the use case where a customer payment is in send and the withholding amounts were negative.

@roboadhoc
Copy link

Pull request status dashboard

Added a condition to consider the payment_type when computing the payment_total field in account.payment,
to avoid adding the withholding amount twice when the payment is of type 'outbound'.
@cav-adhoc cav-adhoc changed the title [FIX] l10n_ar_tax: absolute value for withholdings in payment total [FIX] l10n_ar_tax: fix payment_total computation with withholding Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants