Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] l10n_es_aeat_mod303: Avoid negatives in fee to compensate
If the previous 303 report has remaining fee to compensate, and the result of the report is positive and bigger than the fee to compensate, when computing the current one, the constraint "The fee to compensate must be indicated as a positive number." will raise always. To avoid it, two changes have been done: 1. Only substract report result if it's of type C. 2. Nullify any possible result when it's less than 0. Amendment of 4bd1c02 TT55245
- Loading branch information