Skip to content

Remove redundant Prod. Order No. fields from Subc. Item Ledger Entry (AB#620746)#7932

Open
ChethanT wants to merge 2 commits intomainfrom
bugs/Subcontracting/620746-RemoveProdOrderNo
Open

Remove redundant Prod. Order No. fields from Subc. Item Ledger Entry (AB#620746)#7932
ChethanT wants to merge 2 commits intomainfrom
bugs/Subcontracting/620746-RemoveProdOrderNo

Conversation

@ChethanT
Copy link
Copy Markdown
Contributor

@ChethanT ChethanT commented Apr 30, 2026

Summary

  • The Subcontracting ILE table extension had two custom fields ("Prod. Order No." field 99001510 and "Prod. Order Line No." field 99001511) that were redundant with the base Item Ledger Entry fields "Order No." (field 91) and "Order Line No." (field 92) when Order Type = Production.
  • These fields were written during posting but never read back, since all existing Subcontracting queries against ILE already use the base fields.
  • Removed the two redundant fields, their Key99001500 segment, the two hidden columns from the ILE page extension, and the two assignment lines from UpdateNewItemLedgerEntry.
  • Added regression test PostingSubcontractingPurchReceiptCreatesILEWithSubcFields (codeunit 139989) verifying posting still works and the remaining custom ILE fields are accessible.

Root cause

The original Subcontracting app duplicated production-order traceability that BC's base ILE already provides via "Order Type"/"Order No."/"Order Line No.". The custom fields added unnecessary schema weight and created two sources of truth.

Test plan

  • PostingSubcontractingPurchReceiptCreatesILEWithSubcFields (new, codeunit Subc. Subcontracting Test 139989) — verifies posting creates ILE without error and remaining Subcontracting ILE fields are accessible
  • Verified no remaining references to the removed fields on Item Ledger Entry in App or Test source

Fixes AB#620746

🤖 Generated with Claude Code

…(AB#620746)

The Subcontracting app's Item Ledger Entry table extension contained two custom
fields—"Prod. Order No." (99001510) and "Prod. Order Line No." (99001511)—that
duplicated the base ILE fields "Order No." (field 91) and "Order Line No." (field 92)
when Order Type = Production. These redundant fields were written during posting but
never read back, since all existing lookups already use the base fields.

Removed the two redundant fields and their key segment from the table extension,
removed the corresponding assignments in UpdateNewItemLedgerEntry, and removed the
two hidden column fields from the ILE page extension. Added a regression test
(AB#620746) verifying that subcontracting purchase receipt posting still creates
the ILE correctly with the remaining custom Subcontracting fields accessible.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ChethanT ChethanT requested a review from a team as a code owner April 30, 2026 21:49
@github-actions github-actions Bot added the AL: Apps (W1) Add-on apps for W1 label Apr 30, 2026
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AL Documentation Audit

Documentation gaps were detected in the following apps:

  • Subcontracting-Test: 0% documentation coverage
  • Subcontracting: 0% documentation coverage

To generate documentation, run /al-docs init or /al-docs update using GitHub Copilot CLI or Claude Code.
This review is for awareness to help keep documentation in sync with code changes. It is okay to dismiss this request.

@github-actions github-actions Bot added this to the Version 29.0 milestone Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant