Skip to content

[Subcontracting] Fix AL0104 syntax error in SubcTransferWIPPosting + use Base Unit of Measure for WIP Ledger Entries#8598

Closed
Copilot wants to merge 5 commits into
mainfrom
copilot/fix-github-actions-job-failure
Closed

[Subcontracting] Fix AL0104 syntax error in SubcTransferWIPPosting + use Base Unit of Measure for WIP Ledger Entries#8598
Copilot wants to merge 5 commits into
mainfrom
copilot/fix-github-actions-job-failure

Conversation

Copilot AI commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

PR #8585 introduced an AL0104 compile error ('}' expected) in the Subcontracting app because SubcTransferWIPPosting.Codeunit.al was missing its closing }.

Changes

  • SubcTransferWIPPosting.Codeunit.al — Added missing closing }. Also applies the intended refactor: AssignFieldsFromTransferLine now resolves "Base Unit of Measure" via an Item record lookup instead of copying TransferLine."Unit of Measure Code":
    Item.SetLoadFields("Base Unit of Measure");
    if Item.Get(TransferLine."Item No.") then
        SubcontractorWIPLedgerEntry."Base Unit of Measure" := Item."Base Unit of Measure";
  • SubcontractorWIPLedgerEntry.Table.al — Field 8 renamed from "Unit of Measure Code" to "Base Unit of Measure".
  • SubcWIPAdjustment.Page.al, SubcWIPLedgerEntries.Page.al — Page fields updated to bind to the renamed table field.
  • SubcManagementLibrary.Codeunit.al — Test helper updated to populate "Base Unit of Measure" via Item lookup.
  • SubcWIPTransferPostTest.Codeunit.al — New test coverage verifying base unit of measure is correctly assigned on WIP transfer posting.

stevengrossGOB and others added 4 commits June 11, 2026 16:42
- Refactor fields in various codeunits and pages to replace "Unit of Measure Code" with "Base Unit of Measure".
- Implement event subscriber to set quantity per unit of measure to zero for transfer WIP items.
- Enhance test coverage for WIP transfer to ensure base unit of measure is used correctly.
Copilot AI changed the title [WIP] Fix failing GitHub Actions job for Pull Request Build [Subcontracting] Fix AL0104 syntax error in SubcTransferWIPPosting + use Base Unit of Measure for WIP Ledger Entries Jun 12, 2026
Copilot AI requested a review from alexei-dobriansky June 12, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants