code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#10093 [Bug][SubscriptionBilling]: "Prices Including VAT" handling is incomplete — contract billing invoice treats VAT‑exclusive Subscription Line amounts as VAT‑inclusive

The Subscription Billing contract billing feature now correctly grosses up net prices to VAT-inclusive amounts when a customer or vendor uses prices including VAT, ensuring VAT calculations reconcile with the original order.

Pull request · merged into main (BC30) on 2026-08-28 by miljance (community contribution) · 2 files (+283 -6), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Added a helper function to convert net prices to VAT-inclusive prices by applying the line’s VAT factor
  • Applied the gross-up logic at all price-assignment sites for both sales (Unit Price) and purchase (Direct Unit Cost) paths
  • Zero-VAT and full-VAT lines are excluded from the conversion logic
  • Comprehensive test coverage added for VAT-inclusive and VAT-exclusive scenarios for both customer and vendor billing
  • Change is gated on the document header’s Prices Including VAT flag and does not affect other documents
  • Behaviour changes for users or extensions.

AL objects touched

Context

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).