Skip to content
Draft
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/PVSCaseExt.TableExt.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
tableextension 50100 "PVS Case Ext" extends "PVS Case"
{
fields
{
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;
}
}
}
19 changes: 19 additions & 0 deletions Prototyping/PVSCaseListExt.PageExt.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pageextension 50101 "PVS Case List Ext" extends "PVS Case List"
{
layout
{
addlast(content)
{
field("Quoted Price"; Rec."Quoted Price")
{
ApplicationArea = All;
ToolTip = 'Specifies the total quoted price of all active job lines with status Quote.';
}
field("Ordered Price"; Rec."Ordered Price")
{
ApplicationArea = All;
ToolTip = 'Specifies the total ordered price of all active job lines with status Order.';
}
}
}
}
Loading