code change · featureSales & Receivablesofficial - Microsoftreviewed - checked by Opus

#10901 [Extensibility Request] issue 30428: add sales order line update event

A new event OnBeforeUpdateSalesOrderLineIfExist allows extensions to intercept and override the default sales order line update logic during sales return order posting, enabling custom handling of prepayment amounts.

Pull request · merged into main (BC30) on 2026-09-02 by AleksandricMarko · 12 files (+192 -0), 12 AL · feature · tier official · reviewed (checked by Opus)

What changed

  • New OnBeforeUpdateSalesOrderLineIfExist event added to Sales-Post codeunit
  • Event includes an initialized IsHandled parameter for overriding standard behavior
  • Enables extensions to prevent automatic prepayment amount restoration to open orders
  • Added across all localization layers (W1, APAC, BE, CH, ES, FI, FR, GB, IT, NA, NO, RU)
  • Allows subscribers to implement custom update logic that fits their business requirements

AL objects touched

  • Codeunit 80 “Sales-Post”, Base Application: modified
  • src/Layers/BE/BaseApp/Sales/Posting/SalesPost.Codeunit.al: modified, not in the BC30 snapshot
  • src/Layers/FI/BaseApp/Sales/Posting/SalesPost.Codeunit.al: modified, not in the BC30 snapshot
  • src/Layers/NO/BaseApp/Sales/Posting/SalesPost.Codeunit.al: modified, not in the BC30 snapshot

Context

  • Work items: AB#648505
  • Labels: SCM, Team: SCM, event-request
  • Systems: sales
  • From the description: “Extensions need to bypass the standard sales order line update when posting sales return orders”

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).