Friday, July 12, 2024
1 change · master
Resolved issues and error corrections
Invoice creation from bank reconciliation now includes the missing tax rounding details during tax calculations. This helps ensure invoice unit prices and tax amounts are computed consistently, reducing accounting discrepancies.
Original PR description
Invoice creation through reconciliation models was implemented in #59555, but the call to function _eval_taxes_computation_prepare_context had missing paramenters. When calculating the price unit for invoice creation, the function _get_invoice_price_unit_from_price_total prepares the context for tax calculation with _eval_taxes_computation_prepare_context. In the latter function call, the parameters rounding_method and precision_rounding were not being passed. This commit fixes that.