-
Notifications
You must be signed in to change notification settings - Fork 638
/
Copy pathAdvanceLetterApplicationCZZ.Page.al
112 lines (107 loc) · 3.96 KB
/
AdvanceLetterApplicationCZZ.Page.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace Microsoft.Finance.AdvancePayments;
page 31174 "Advance Letter Application CZZ"
{
Caption = 'Advance Letter Application';
PageType = List;
SourceTable = "Advance Letter Application CZZ";
SourceTableTemporary = true;
Editable = false;
UsageCategory = None;
layout
{
area(content)
{
repeater(General)
{
field("Advance Letter No."; Rec."Advance Letter No.")
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies advance letter no.';
}
field("Posting Date"; Rec."Posting Date")
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies posting date.';
}
field(Amount; Rec.Amount)
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies amount.';
MinValue = 0;
}
field("Job No."; Rec."Job No.")
{
ApplicationArea = Basic, Suite;
Visible = false;
}
field("Job Task No."; Rec."Job Task No.")
{
ApplicationArea = Basic, Suite;
Visible = false;
}
}
}
area(FactBoxes)
{
part(SalesAdvLetterFactBox; "Sales Adv. Letter FactBox CZZ")
{
ApplicationArea = Basic, Suite;
SubPageLink = "No." = field("Advance Letter No.");
Visible = Rec."Advance Letter Type" = Rec."Advance Letter Type"::Sales;
}
part(PurchAdvLetterFactBox; "Purch. Adv. Letter FactBox CZZ")
{
ApplicationArea = Basic, Suite;
SubPageLink = "No." = field("Advance Letter No.");
Visible = Rec."Advance Letter Type" = Rec."Advance Letter Type"::Purchase;
}
}
}
actions
{
area(Navigation)
{
action(AdvanceCard)
{
Caption = 'Advance Letter';
ToolTip = 'Show advance letter.';
ApplicationArea = Basic, Suite;
Image = "Invoicing-Document";
trigger OnAction()
var
SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ";
PurchAdvLetterHeaderCZZ: Record "Purch. Adv. Letter Header CZZ";
begin
if Rec."Advance Letter No." = '' then
exit;
case Rec."Advance Letter Type" of
Rec."Advance Letter Type"::Sales:
begin
SalesAdvLetterHeaderCZZ.Get(Rec."Advance Letter No.");
Page.Run(Page::"Sales Advance Letter CZZ", SalesAdvLetterHeaderCZZ);
end;
Rec."Advance Letter Type"::Purchase:
begin
PurchAdvLetterHeaderCZZ.Get(Rec."Advance Letter No.");
Page.Run(Page::"Purch. Advance Letter CZZ", PurchAdvLetterHeaderCZZ);
end;
end;
end;
}
}
area(Promoted)
{
group(Category_Process)
{
Caption = 'Process';
actionref(AdvanceCard_Promoted; AdvanceCard)
{
}
}
}
}
}