-
Notifications
You must be signed in to change notification settings - Fork 638
/
Copy pathJobTaskLinesSubformCZZ.PageExt.al
40 lines (38 loc) · 1.51 KB
/
JobTaskLinesSubformCZZ.PageExt.al
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
pageextension 31246 "Job Task Lines Subform CZZ" extends "Job Task Lines Subform"
{
actions
{
addlast(Documents)
{
action(CreateAdvanceLetterCZZ)
{
Caption = 'Create Advance Letter';
ApplicationArea = Basic, Suite;
ToolTip = 'The function creates the advance letter for the project task.';
Image = CreateDocument;
Ellipsis = true;
trigger OnAction()
var
CreateSalesAdvLetterCZZ: Report "Create Sales Adv. Letter CZZ";
begin
CreateSalesAdvLetterCZZ.SetJobTask(Rec);
CreateSalesAdvLetterCZZ.Run();
end;
}
action(SalesAdvanceLettersCZZ)
{
ApplicationArea = Jobs;
Caption = 'Sales Advance Letters';
Image = GetSourceDoc;
ToolTip = 'View the sales advance letters that are related to the selected project task.';
trigger OnAction()
var
TempAdvanceLetterApplicationCZZ: Record "Advance Letter Application CZZ" temporary;
begin
TempAdvanceLetterApplicationCZZ.GetAssignedAdvance(Rec."Job No.", Rec."Job Task No.", TempAdvanceLetterApplicationCZZ);
Page.RunModal(Page::"Advance Letter Application CZZ", TempAdvanceLetterApplicationCZZ)
end;
}
}
}
}