---
id: change/bcapps/14847
type: change
title: "#14847 Subcontracting: Don't offer WIP transfer receipt lines for item charges"
summary: Item Charge Assignment in subcontracting no longer offers WIP transfer receipt lines for assignment, preventing posting failures caused by division by zero when charges are split between component and WIP lines.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit subc. itemchargeasspurchext
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-12-05T01:02:38.263Z"
  flags: []
generated:
  at: "2026-12-06T00:14:19.053Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 03a0cf5458fcac3ca0c559a6ef764811ce62f815
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14847
    title: "microsoft/BCApps#14847: Subcontracting: Don't offer WIP transfer receipt lines for item charges"
    date: "2026-12-04"
    commit: 03a0cf5458fcac3ca0c559a6ef764811ce62f815
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/20536
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/subcontract-item-charges
      title: Assign item charges to subcontracting receipts
      label: possibly related
      why: Documents assigning item charges to subcontracting receipts and WIP ledger entry handling.
      by: model
number: 14847
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14847
kind: pr
base_branch: main
major: "30"
merged_at: "2026-12-04T17:18:04Z"
author: alexei-dobriansky
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - Engineering Factory
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 338
  deletions: 0
  al: 1
apps:
  - Subcontracting
objects_touched:
  - key: codeunit/20536
    page: codeunit/20536
    type: codeunit
    id: 20536
    name: Subc. ItemChargeAssPurchExt
    app: Subcontracting
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 660064
systems:
  - manufacturing
quote: null
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #14847 Subcontracting: Don't offer WIP transfer receipt lines for item charges

> Item Charge Assignment in subcontracting no longer offers WIP transfer receipt lines for assignment, preventing posting failures caused by division by zero when charges are split between component and WIP lines.

[Pull request](https://github.com/microsoft/BCApps/pull/14847) · merged into `main` (BC30) on 2026-12-04 by alexei-dobriansky · 2 files (+338 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Filters out WIP transfer receipt lines from Get Transfer Receipt Lines dialog in item charge assignment
- Adds early error message when posting assignments to WIP lines created before this change
- Prevents "Attempted to divide by zero" error that occurred because WIP lines have zero base quantity
- Component lines from the same receipt remain available for item charge assignment
- WIP share is not dropped or reallocated to other lines
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 20536 "Subc. ItemChargeAssPurchExt"](../../objects/codeunit/20536.md), Subcontracting: modified

## Context

- Work items: AB#660064
- Labels: AL: Apps (W1), Engineering Factory, Team: SCM
- Systems: manufacturing

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Assign item charges to subcontracting receipts](https://learn.microsoft.com/dynamics365/business-central/subcontract-item-charges) — possibly related: Documents assigning item charges to subcontracting receipts and WIP ledger entry handling. (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).
