-
Notifications
You must be signed in to change notification settings - Fork 638
/
Copy pathJobCardCZZ.PageExt.al
65 lines (62 loc) · 2.04 KB
/
JobCardCZZ.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
pageextension 31245 "Job Card CZZ" extends "Job Card"
{
layout
{
addlast(factboxes)
{
part(AdvanceUsageFactBoxCZZ; "Advance Usage FactBox CZZ")
{
ApplicationArea = Basic, Suite;
}
}
}
actions
{
addlast("F&unctions")
{
action(CreateAdvanceLetterCZZ)
{
Caption = 'Create Advance Letter';
ApplicationArea = Basic, Suite;
ToolTip = 'The function creates the advance letter for the project.';
Image = CreateDocument;
Ellipsis = true;
trigger OnAction()
var
CreateSalesAdvLetterCZZ: Report "Create Sales Adv. Letter CZZ";
begin
CreateSalesAdvLetterCZZ.SetJob(Rec);
CreateSalesAdvLetterCZZ.Run();
end;
}
}
addafter(SalesInvoicesCreditMemos)
{
action(SalesAdvanceLettersCZZ)
{
ApplicationArea = Jobs;
Caption = 'Sales Advance Letters';
Image = GetSourceDoc;
ToolTip = 'View the sales advance letters that are related to the selected project.';
trigger OnAction()
var
TempAdvanceLetterApplicationCZZ: Record "Advance Letter Application CZZ" temporary;
begin
TempAdvanceLetterApplicationCZZ.GetAssignedAdvance(Rec."No.", TempAdvanceLetterApplicationCZZ);
Page.RunModal(Page::"Advance Letter Application CZZ", TempAdvanceLetterApplicationCZZ)
end;
}
}
addafter(SalesInvoicesCreditMemos_Promoted)
{
actionref(SalesAdvanceLetters_PromotedCZZ; SalesAdvanceLettersCZZ)
{
}
}
}
trigger OnAfterGetCurrRecord()
begin
if GuiAllowed() then
CurrPage.AdvanceUsageFactBoxCZZ.Page.SetDocument(Rec);
end;
}