web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

New OIOUBL package has a bug in CheckSalesLines

Posted on by 4
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
Categories:

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans