BCApps icon indicating copy to clipboard operation
BCApps copied to clipboard

[Vendor] [Subcontracting] WIP Ledger Entries remain editable after production order is Finished or Deleted

Open ChethanT opened this issue 6 months ago • 1 comments

Bug

Area: AI Business Solutions / SCM / Manufacturing

Environment

  • Business Central Wave 1 2026 (Update 28.x) / master branch
  • Localization: W1 (any)
  • Roles: Manufacturing user with permissions to create/process/finish/delete production orders and view WIP Ledger Entries
  • Manufacturing setup configured for subcontracting (work center linked to a subcontractor vendor)

Prerequisites

  • A manufacturing item with a routing that includes a subcontracting work center/operation
  • A vendor flagged as Subcontractor and linked to the subcontracting work center
  • Inventory Setup: WIP posting enabled for Manufacturing (Inventory Posting Setup has WIP Account configured for the relevant Location/Inventory Posting Group)
  • General Posting Setup has WIP Account / WIP Account (Interim) defined where applicable

Repro Steps

Path A - Production Order set to Finished

  1. Create a Released Production Order for the manufacturing item with subcontracting (Manufacturing > Released Production Orders > New).
  2. Calculate Subcontracts (Released Prod. Order > Actions > Functions > Calculate Subcontracts) to generate the subcontracting purchase order line.
  3. Create/post the subcontracting Purchase Order (receive and invoice) so subcontracting cost flows to WIP.
  4. Post output and consumption journals as needed so WIP Ledger Entries are generated for the order.
  5. Change Status of the Released Production Order to Finished (Actions > Functions > Change Status > Finished).
  6. Open the Finished Production Order card, drill into WIP Ledger Entries (or navigate via Production Order > Related > Entries > WIP Ledger Entries).
  7. In the WIP Ledger Entries page, attempt to modify any field (e.g., Description, Document No., Dimensions).
  8. Observe: fields can be edited and changes can be saved.

Path B - Production Order Deleted

  1. Repeat steps 1-4 above to create WIP Ledger Entries for a Released Production Order.
  2. Delete the Released Production Order (Released Prod. Order > Delete) - the order is removed but WIP Ledger Entries persist.
  3. Navigate to WIP Ledger Entries (search "WIP Ledger Entries" in Tell Me) and filter to the deleted order's Order No.
  4. Attempt to modify any field on the resulting entries.
  5. Observe: fields can be edited and changes can be saved.

Expected Behavior

WIP Ledger Entries should be read-only/non-editable once the source production order has reached Finished status or has been deleted, consistent with the immutability of other posted ledger entries (e.g., Item Ledger Entries, Value Entries, G/L Entries) in Business Central.

Actual Behavior

WIP Ledger Entries remain fully editable after the production order is set to Finished and after it has been deleted, allowing unintended modification of posted financial/operational data.

Notes

  • Likely root cause: the WIP Ledger Entries page (or table) is missing Editable = false at the page level, or is missing the standard "InsertAllowed/ModifyAllowed/DeleteAllowed = false" pattern used by sibling ledger-entry pages.
  • Compare to Item Ledger Entries / Value Entries pages for the canonical read-only pattern.
  • Primarily a data integrity issue.

Internal workitem: AB#636827

ChethanT avatar May 27 '26 13:05 ChethanT

:robot: AI triage completed. Product group, please validate the triage report (Microsoft internal access only, use Ctrl+Click to open in new tab).


Was this triage helpful? React with :thumbsup: or :thumbsdown: on this comment to provide feedback.

JesperSchulz avatar May 27 '26 13:05 JesperSchulz