Skip to content

Add Quoted Price and Ordered Price FlowFields to PVS Case List#7

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/implement-customization-pvs-case-list
Draft

Add Quoted Price and Ordered Price FlowFields to PVS Case List#7
Copilot wants to merge 3 commits into
mainfrom
copilot/implement-customization-pvs-case-list

Conversation

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown

Extends the PVS Case List page with two calculated price fields that aggregate active PVS Job line prices per case, partitioned by job status.

Table Extension (PVSCaseExt.TableExt.al)

Two FlowFields on "PVS Case" (tableextension 50100), both filtering Active = true and joining on ID:

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

"PVS Job"."Quoted Price" is the canonical price field for all job lines regardless of status — Order-status lines store their price there too.

Page Extension (PVSCaseListExt.PageExt.al)

Adds both fields to "PVS Case List" (pageextension 50101) via addlast(content).

Original prompt

Implement a customization to extend the PVS Case List page by adding two calculated fields: Quoted Price and Ordered Price. These fields should display the sum of Quoted Price from all active PVS Job entries linked to the Case ID.

  • Quoted Price field: Sum of all Quoted Price values where PVS Job.Status = 'Quote' and Case ID matches.
  • Ordered Price field: Sum of all Quoted Price values where PVS Job.Status = 'Order' and Case ID matches.
    The calculation should only consider active PVS Job entries. Add the fields to the page layout in the appropriate section.

Copilot AI changed the title [WIP] Add calculated fields for quoted and ordered price on PVS case list Add Quoted Price and Ordered Price FlowFields to PVS Case List Jun 18, 2026
Copilot AI requested a review from basprintvis June 18, 2026 14:52
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