Wrong ES VAT list when invoices are cancelled
Since changeset22eabf722a91 when an invoice is refunded it is mark as cancel, which excludes it from the ES VAT LIST. As the refund is in paid state this is included on the VAT list making the real amount of the party less than the real one.
Thanks to @josesalvador for explaining me the case.