Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Prototyping/PVSCase.TableExt.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
tableextension 50100 "PVS Case Ext. Pricing" extends "PVS Case"
{
fields
{
field(50100; "Quoted Price Total"; Decimal)
{
Caption = 'Quoted Price Total';
Editable = false;
FieldClass = FlowField;
CalcFormula = sum("PVS Job"."Quoted Price" where("Case ID" = field("Case ID"),
Status = const(Quote)));
}
field(50101; "Ordered Price Total"; Decimal)
{
Caption = 'Ordered Price Total';
Editable = false;
FieldClass = FlowField;
CalcFormula = sum("PVS Job"."Quoted Price" where("Case ID" = field("Case ID"),
Status = const(Order)));
}
}
}
21 changes: 21 additions & 0 deletions Prototyping/PVSCaseList.PageExt.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pageextension 50101 "PVS Case List Ext. Pricing" extends "PVS Case List"
{
layout
{
addlast(Content)
{
field("Quoted Price Total"; Rec."Quoted Price Total")
{
ApplicationArea = All;
Caption = 'Quoted Price Total';
ToolTip = 'Specifies the sum of PVS Job quoted prices for this case where the status is Quote.';
}
field("Ordered Price Total"; Rec."Ordered Price Total")
{
ApplicationArea = All;
Caption = 'Ordered Price Total';
ToolTip = 'Specifies the sum of PVS Job ordered prices for this case where the status is Order.';
}
}
}
}