Hi folks,
after upgrading to version 7.8. from 7.0 when posting a customer invoice, i get a message Only one tax line on cash basis can be without period per move line. with having the module tax_cache installed.
There were no changes in the tax oder on_cash_basis configuration after upgrading the database.
Posting a similar invoice on the 7.0 version of the same database is possible.
Might this be a bug, since i couldn’t find any changed documentation?
@ced, I do not have a setup where two taxes are used for a line, I use the mds-trytond-account-de-skr04 package. I checked the constraint on the database with
SELECT *
FROM account_tax_line
WHERE on_cash_basis IS TRUE
AND period IS NULL;
I fixed two lines in the frontend, where I messed up the period, probably because of my other issue with the reporting with the tax_cash module. Bug in account_tax_cash - #7 by Gruenfischer Now I have ZERO lines where the exclude can hit, but still get the error. From my understanding the constraint might only be met inside the transaction where the change is applied.
Maybe I have a general misunderstanding, I am not that good at special database stuff.
My next guess is debugging with the logs, to see where the transactions is rolled back.
> Only one tax line on cash basis can be without period per move line.
The reason is, that I configured the tax cash groups in the fiscal year twice. I had a group added twice. @ced thanks for the hint with the two taxes.
Maybe the error could contain a hint where to look, like ...per move line. Check for duplicate taxes in on cash basis configuration.
Or even a domain could fix the misconfiguration?