erp5_accounting: Add assert to check if the difference between total credit and total credit is not too big to balance and fix code to select correctly the line to round