---
id: change/bcapps/10176
type: change
title: "#10176 [Main][all-e]Prepayment Invoice and Quantity Change Issue in Business Central"
summary: Fixes an issue with prepayment invoices when the quantity is changed on purchase or sales lines. Purchase Line and Sales Line tables were updated in many localization layers, and tests were added.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table purchase line
  - table sales line
system: purchasing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:51.429Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 8f909b2fe3ecf9187bb2646f95fe5f9d4143b67d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10176
    title: "microsoft/BCApps#10176: [Main][all-e]Prepayment Invoice and Quantity Change Issue in Business Central"
    date: "2026-08-21"
    commit: 8f909b2fe3ecf9187bb2646f95fe5f9d4143b67d
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/table/39
    - object/table/37
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10176
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10176
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-21T18:37:26Z"
author: Shikhverma
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 28
  additions: 152
  deletions: 26
  al: 26
apps:
  - Base Application
objects_touched:
  - key: table/39
    page: table/39
    type: table
    id: 39
    name: Purchase Line
    app: Base Application
    status: modified
  - key: table/37
    page: table/37
    type: table
    id: 37
    name: Sales Line
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/BE/BaseApp/Sales/Document/SalesLine.Table.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646718
systems:
  - purchasing
  - sales
quote: null
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #10176 [Main][all-e]Prepayment Invoice and Quantity Change Issue in Business Central

> Fixes an issue with prepayment invoices when the quantity is changed on purchase or sales lines. Purchase Line and Sales Line tables were updated in many localization layers, and tests were added.

[Pull request](https://github.com/microsoft/BCApps/pull/10176) · merged into `main` (BC30) on 2026-08-21 by Shikhverma · 28 files (+152 -26), 26 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixes prepayment invoice handling when line quantities change
- Purchase Line updated in APAC, BE, CH, DACH, ES, FI, GB, IT, NA, NL, NO, RU, SE and W1
- Sales Line updated in the same layers except DACH and NL
- Prepayment tests added in the W1 and RU layers
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 39 "Purchase Line"](../../objects/table/39.md), Base Application: modified
- [Table 37 "Sales Line"](../../objects/table/37.md), Base Application: modified
- `src/Layers/BE/BaseApp/Sales/Document/SalesLine.Table.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#646718
- Labels: Team: SCM
- Systems: purchasing, sales

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