Hi! I don't know if this is the correct place to post this, but there seems to be a bug in the new OIOUBL package (specifically in Danish localization).
The CheckLines check will verify that the total line amount is positive, but it only looks at the ex-vat amounts, not the inc-vat amounts, which leaves us open to an edge-case.
My company semi-regularly end up in situations where we produce lines like these:
- Standard VAT product: 80kr (+20kr VAT) = 100kr
- Non-VAT product: -100kr (-0kr VAT) = -100kr
This can happen when using e.g. gift cards (0% VAT) or annulling a penalty fee (0% VAT), and you end up with an invoice that has total ex-vat amount -20kr, but total inc-vat amount 0kr.
This has to be posted, since some VAT has been calculated and needs to be reported to the state, but the ex-vat-amount on the SalesHeader fails CheckSalesLines, blocking posting.
Currently, I have to make an extension to skip this entire check, which is not ideal, so it would be great if it is possible to report this bug (which seems to be very recently introduced!) to somebody who cares and can fix it?
Ola