---
id: change/bcapps/10901
type: change
title: "#10901 [Extensibility Request] issue 30428: add sales order line update event"
summary: 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.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit sales-post
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:06:37.215Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: f23ed2da79931c20acd43bd2a288cf902c26b3e8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10901
    title: "microsoft/BCApps#10901: [Extensibility Request] issue 30428: add sales order line update event"
    date: "2026-09-02"
    commit: f23ed2da79931c20acd43bd2a288cf902c26b3e8
    t: null
    quote: Extensions need to bypass the standard sales order line update when posting sales return orders
links:
  learn: []
  objects:
    - object/codeunit/80
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10901
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10901
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-02T13:48:47Z"
author: AleksandricMarko
author_type: User
community_contribution: false
labels:
  - SCM
  - "Team: SCM"
  - event-request
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 12
  additions: 192
  deletions: 0
  al: 12
apps:
  - Base Application
objects_touched:
  - key: codeunit/80
    page: codeunit/80
    type: codeunit
    id: 80
    name: Sales-Post
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/BE/BaseApp/Sales/Posting/SalesPost.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/FI/BaseApp/Sales/Posting/SalesPost.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/NO/BaseApp/Sales/Posting/SalesPost.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 648505
systems:
  - sales
quote: Extensions need to bypass the standard sales order line update when posting sales return orders
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #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](https://github.com/microsoft/BCApps/pull/10901) · 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"](../../objects/codeunit/80.md), 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).
