Skip to content

Add Minimum Reel Width field to PVS Job Item with auto-calculation#11

Draft
JH-PV with Copilot wants to merge 5 commits into
mainfrom
copilot/add-minimum-reel-width-field
Draft

Add Minimum Reel Width field to PVS Job Item with auto-calculation#11
JH-PV with Copilot wants to merge 5 commits into
mainfrom
copilot/add-minimum-reel-width-field

Conversation

Copilot AI commented Jun 23, 2026

Copy link
Copy Markdown

Adds a new editable Minimum Reel Width (Decimal, mm) field to PVS Job Item (6010316), displayed on PVS Job Items ListPart (6010340) after Imposition Type.

Field & Calculation Rules

  • Only calculates when Component Type contains INSIDE
  • Requires all three fields to be populated: Format Code, Controlling Sheet Unit (Printing Press), Imposition Type
  • Recalculates on validate of any of the above, or Front Overfold
  • Manual edit: difference (new − old) is added 1:1 to Front Overfold

Formula

Minimum Reel Width =
  (ImpositionLeavesWidth × Width) +
  ((ImpositionLeavesWidth / 2) × (Front Overfold + Milling Depth))

ImpositionLeavesWidth is "PVS Imposition Code"."Leaves Width" resolved via Imposition Type.

Files

  • PVSJobItemMinReelWidth.TableExt.al — field 50100 on PVS Job Item; OnValidate propagates diff to Front Overfold
  • PVSJobItemsListPart.PageExt.al — exposes field after Imposition Type
  • PVSJobItemMinReelWidth.Codeunit.al — event subscribers for the four trigger fields; uses [TryFunction] to guarantee guard cleanup
  • PVSMinReelWidthGuard.Codeunit.alSingleInstance reentrancy guard preventing cross-field update loops

Copilot AI changed the title Add Minimum Reel Width field to PVS Job Item Add Minimum Reel Width field to PVS Job Item with auto-calculation Jun 23, 2026
Copilot AI requested a review from JH-PV June 23, 2026 12:54
Copilot finished work on behalf of JH-PV June 23, 2026 12:54
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.

2 participants