Created on 2021-01-29.00:19:47 by ced, last changed 22 months ago by ced.
Those report are based on posted customer invoice. Normally it is forbidden to cancel a posted customer invoice but this can be overruled with a company switch. The account_es module is then ignoring those invoices. But I do not think it is the correct way to do because if the cancel happens in a different period the reports are no more coherent.
Indeed I think we should add inverted amounts for each canceled invoice at the date of the canceled move. So if the cancellation happen during the same period, this has the same effect as ignoring the invoice and if it is on two different period, this correctly balance both reports.