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
24 changes: 24 additions & 0 deletions Prototyping/PVSCase.TableExt.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
tableextension 50100 "PVS Case Ext. Pricing" extends "PVS Case"
{
fields
{
field(50100; "Quoted Price"; Decimal)
{
Caption = 'Quoted Price';
Editable = false;
FieldClass = FlowField;
CalcFormula = sum("PVS Job"."Price" where("Case ID" = field("Case ID"),
Active = const(true),
Status = const(Quote)));
}
field(50101; "Ordered Price"; Decimal)
{
Caption = 'Ordered Price';
Editable = false;
FieldClass = FlowField;
CalcFormula = sum("PVS Job"."Price" where("Case ID" = field("Case ID"),
Active = const(true),
Status = const(Order)));
}
}
}
19 changes: 19 additions & 0 deletions Prototyping/PVSCaseList.PageExt.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pageextension 50101 "PVS Case List Ext. Pricing" extends "PVS Case List"
{
layout
{
addlast(Content)
{
field("Quoted Price"; Rec."Quoted Price")
{
ApplicationArea = All;
ToolTip = 'Specifies the sum of active PVS Job prices for this case where the status is Quote.';
}
field("Ordered Price"; Rec."Ordered Price")
{
ApplicationArea = All;
ToolTip = 'Specifies the sum of active PVS Job prices for this case where the status is Order.';
}
}
}
}