Hola Isabel,
nosotros observamos estos tipos de errores solo en caso en cual en la misma cumulacion teniamos conceptos tanto exentos como gravados. La logica que aplica para ese tipo de caso es esta:
Lets follow this exemple:
WT | Discount | Exempt | Group
/001 1000.0 0.0 001
/002 0.0 500.0 001/003 0.0 600.0 001In this case, first the /002 WT will have its value distributed to the
/001, as the /001 Discount amount is bigger than the /002 exempt
amount, the whole value of the /002 will be transfered to the /001 and
the /002 will be removed.
WT | Discount | Exempt | Group
/001 1000.0 500.0 001/003 0.0 600.0
001
Now the system will try to do the same thing with the /003 WT. But in
this case the /003 have 100.0 more than the /002 Discount (/002
Discount - /002 Exempt). So the result will be the following:
WT | Discount | Exempt | Group
/001 1000.0 1000.0 001/003 0.0 100.0
001
The last step before the amount that you see in the XML is calculating
the actually paid amount (Discount - Exento):
WT | Discount | Exempt | Group
/001 0.0 1000.0
001
/003