Friday, June 6, 2025
1 change · saas-18.2
Resolved issues and error corrections
Payments will now only try to reconcile with valid posted invoices, avoiding errors when an invoice has already been cancelled. This improves reliability of automated payment processing and reduces avoidable accounting follow-up.
Original PR description
Steps to reproduce: 1. Create an invoice. 2. Register a payment in the 'pending' state. 3. Cancel the invoice. 4. Confirm the payment (set payment state to 'done'). 5. Run the post_process cron job and check the logs. → Error occurs during reconciliation due to the cancelled invoice. Issue: cancelled invoices were being considered during the reconciliation process, leading to errors. Solution: This fix ensures that only posted invoices are considered during the reconciliation process, thereby preventing such issues.