Friday, June 21, 2024
2 changes · saas-17.3
Resolved issues and error corrections
The accounting dashboard now calculates amounts to pay across all relevant sales and purchase journals instead of only reflecting the last one processed. This gives finance teams a more accurate view of upcoming payment obligations.
Original PR description
The variable `query_results_to_pay` was shadowed inside of the loop, leading to unexpected results as only the last sale/purchase journal was taken into account for amounts to pay.
Colombian electronic invoices now correctly identify whether they are being sent in production or test mode. This prevents valid production documents from being rejected because they were incorrectly marked as test submissions.
Original PR description
Currently when trying to send a document in production mode (`l10n_co_dian_test_environment` being False), the document is rejected with error code FAD07: "Rechazo: @schemeID no indica un valor válido para ambiente de destino del documento (1=Producción, 2=Prueba)". This is caused by `/Invoice/cbc:UUID/@schemeID` being always set to "2". This commit fixes this. task-3998395