#14413 [29.x][ALL-E] Posting a Sales Credit Memo with a different Unit of Measure does not convert the quantity before updating the originating Sales Order (Blanket Sales Order is updated correctly)
Posting a sales credit memo with a different unit of measure now correctly converts the quantity before updating the originating sales order, preventing incorrect deductions from shipped and invoiced quantities.
- 4files
- 3AL files
- 1objects
Pull request · merged into releases/29.x (BC29) on 2026-11-26 by sanjmaurya · 4 files (+135 -7), 3 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Credit memo quantities are converted to the sales order line’s unit of measure before updating order quantities
- Fixes incorrect quantity deductions when units differ (e.g., 8 PCS no longer incorrectly treated as 8 SET)
- Solution applies the sales order line’s conversion factor to the credited base quantity
- Regression tests added for different, fractional, and matching unit scenarios
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 1303 “Correct Posted Sales Invoice”, Base Application: modified
src/Layers/ES/BaseApp/Sales/History/CorrectPostedSalesInvoice.Codeunit.al: modified, not in the BC29 snapshot
Context
- Work items: AB#658537
- Labels: Team: SCM
- Systems: sales
- From the description: “Convert the credited base quantity using the sales order line’s Qty. per Unit of Measure before updating quantities.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Correct or cancel a posted sales invoice — possibly related: Documents correcting posted sales invoices and credit memos, covering sales order updates. (model-linked)
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).