Skip to content

Conversation

@SubandiK
Copy link
Contributor

@SubandiK SubandiK commented Apr 9, 2025

Another of those specific use-cases I'm afraid:

We are rounding taxes on a per-line-item basis, not like Secretariat currently validates for on a per-taxrate basis.
The new :NONE option doesn't work here, because it actually changes the taxes. What we need is to just change / skip the"Base amount and summed tax base amount" validation.

By using the new :ITEM_BASED option, the validation now compares the invoice's tax_amount with the sum of the item tax amounts.

@halfbyte
Copy link
Owner

halfbyte commented Jun 3, 2025

Hmmmpfff, this feels like we need to overhaul this but maybe it is also just a function of the inherent complexity.

I'll merge this for now, but I'm not happy with amassing all of these various modes :)

@halfbyte halfbyte merged commit 4692781 into halfbyte:main Jun 3, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants