Skip to content

Fix PVS Case FlowFields: use Quoted Price field, rename to *Total#6

Closed
Copilot wants to merge 3 commits into
mainfrom
copilot/update-pvs-case-flowfields
Closed

Fix PVS Case FlowFields: use Quoted Price field, rename to *Total#6
Copilot wants to merge 3 commits into
mainfrom
copilot/update-pvs-case-flowfields

Conversation

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown

The previous implementation referenced a non-existent "PVS Job"."Price" field and used field names that conflicted with the intent. This replaces it with the correct "PVS Job"."Quoted Price" field and renames the aggregates to distinguish them from raw job-level fields.

Table Extension (PVSCase.TableExt.al)

Two FlowFields on "PVS Case" (tableextension 50100), both summing "PVS Job"."Quoted Price", filtered by Case ID and Status:

field(50100; "Quoted Price Total"; Decimal)
{
    FieldClass = FlowField;
    CalcFormula = sum("PVS Job"."Quoted Price" where("Case ID" = field("Case ID"),
                                                      Status = const(Quote)));
}
field(50101; "Ordered Price Total"; Decimal)
{
    FieldClass = FlowField;
    CalcFormula = sum("PVS Job"."Quoted Price" where("Case ID" = field("Case ID"),
                                                      Status = const(Order)));
}

Page Extension (PVSCaseList.PageExt.al)

  • References updated field names "Quoted Price Total" / "Ordered Price Total"
  • Captions and tooltips updated to match
Original prompt

Update the previous implementation to correct the FlowFields in the PVS Case table extension:

  • Use field "Quoted Price" from PVS Job table for both calculations instead of a non-existent Price field.
  • Add two FlowFields:
    1. Quoted Price Total: Sum of PVS Job."Quoted Price" where Status = Quote.
    2. Ordered Price Total: Sum of PVS Job."Quoted Price" where Status = Order.
  • Ensure correct filters for Case ID and Status.
  • Update PVS Case List page extension to reference the new fields and captions.

This fixes compile issues and aligns with the actual table structure.

Copilot AI changed the title [WIP] Update FlowFields in PVS Case table extension Fix PVS Case FlowFields: use Quoted Price field, rename to *Total Jun 18, 2026
Copilot AI requested a review from basprintvis June 18, 2026 14:36
@basprintvis basprintvis deleted the copilot/update-pvs-case-flowfields branch June 18, 2026 14:48
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