Skip to content

Add Quoted/Ordered price aggregates to PVS Case List#5

Closed
Copilot wants to merge 2 commits into
mainfrom
copilot/add-quoted-and-ordered-price-fields
Closed

Add Quoted/Ordered price aggregates to PVS Case List#5
Copilot wants to merge 2 commits into
mainfrom
copilot/add-quoted-and-ordered-price-fields

Conversation

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown

PVS Case List now includes two calculated pricing columns per case: Quoted Price and Ordered Price. Each value is derived from active PVS Job lines for the same Case ID, filtered by Status = Quote or Status = Order.

  • FlowField model on PVS Case

    • Added table extension fields:
      • Quoted Price (Decimal FlowField)
      • Ordered Price (Decimal FlowField)
    • Both fields use SUM over PVS Job.Price with filters on:
      • Case ID = current case
      • Active = true
      • Status = Quote / Order
  • UI exposure on PVS Case List

    • Added page extension fields to show both aggregates directly on the list page.
    • Keeps calculations live against current PVS Job data via FlowField evaluation.
field(50100; "Quoted Price"; Decimal)
{
    FieldClass = FlowField;
    CalcFormula = sum("PVS Job"."Price" where("Case ID" = field("Case ID"),
                                              Active = const(true),
                                              Status = const(Quote)));
}
Original prompt

Add two fields to the PVS Case List page:

  1. Quoted Price:

    • Displays the sum of all active PVS Job entries for the corresponding Case ID where Status = 'Quote'.
  2. Ordered Price:

    • Displays the sum of all active PVS Job entries for the corresponding Case ID where Status = 'Order'.

Implementation details:

  • Extend the 'PVS Case List' page to include these two new fields.
  • Implement logic to calculate sums using FlowFields or standard AL pattern for calculated fields.
  • Ensure that these fields are updated dynamically based on current PVS Job entries linked by Case ID.
  • Verify that modifications do not affect existing behavior of the page.

Copilot AI changed the title [WIP] Add quoted price and ordered price fields to PVS Case List page Add Quoted/Ordered price aggregates to PVS Case List Jun 18, 2026
Copilot AI requested a review from basprintvis June 18, 2026 14:18
@basprintvis basprintvis deleted the copilot/add-quoted-and-ordered-price-fields 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