forked from microsoft/ALAppExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHistGenJournalLines.Page.al
166 lines (156 loc) · 5.71 KB
/
HistGenJournalLines.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
namespace Microsoft.DataMigration.GP.HistoricalData;
page 41001 "Hist. Gen. Journal Lines"
{
ApplicationArea = All;
Caption = 'Historical Gen. Journal Lines';
PageType = List;
Editable = false;
DeleteAllowed = false;
InsertAllowed = false;
LinksAllowed = false;
ModifyAllowed = false;
SourceTable = "Hist. Gen. Journal Line";
UsageCategory = History;
MultipleNewLines = false;
layout
{
area(Content)
{
repeater(Lines)
{
Editable = false;
ShowCaption = false;
field("Journal Entry No."; Rec."Journal Entry No.")
{
ToolTip = 'Specifies the value of the Journal Entry No. field.';
}
field(Year; Rec.Year)
{
ToolTip = 'Specifies the value of the Year field.';
}
field(Closed; Rec.Closed)
{
ToolTip = 'Specifies the value of the Closed field.';
}
field("Account No."; Rec."Account No.")
{
ToolTip = 'Specifies the value of the Account No. field.';
}
field("Date"; Rec."Date")
{
ToolTip = 'Specifies the value of the Date field.';
}
field("Debit Amount"; Rec."Debit Amount")
{
ToolTip = 'Specifies the value of the Debit Amount field.';
}
field("Credit Amount"; Rec."Credit Amount")
{
ToolTip = 'Specifies the value of the Credit Amount field.';
}
field("Orig. Document No."; Rec."Orig. Document No.")
{
ToolTip = 'Specifies the value of the Originating Document No. field.';
}
field("Source No."; Rec."Source No.")
{
ToolTip = 'Specifies the value of the Source No. field.';
}
field("Source Name"; Rec."Source Name")
{
ToolTip = 'Specifies the value of the Source Name field.';
}
field("Reference Desc."; Rec."Reference Desc.")
{
ToolTip = 'Specifies the value of the Refererence Desc. field.';
}
field("Description"; Rec."Description")
{
ToolTip = 'Specifies the value of the Description field.';
}
field("Document Type"; Rec."Document Type")
{
ToolTip = 'Specifies the value of the Document Type field.';
}
field("Currency Code"; Rec."Currency Code")
{
ToolTip = 'Specifies the value of the Currency Code field.';
}
field("Orig. Debit Amount"; Rec."Orig. Debit Amount")
{
ToolTip = 'Specifies the value of the Originating Debit Amount field.';
}
field("Orig. Credit Amount"; Rec."Orig. Credit Amount")
{
ToolTip = 'Specifies the value of the Originating Credit Amount field.';
}
field("Orig. Trx. Source No."; Rec."Orig. Trx. Source No.")
{
ToolTip = 'Specifies the value of the Orig. Trx. Source No. field.';
}
field("Audit Code"; Rec."Audit Code")
{
ToolTip = 'Specifies the value of the Audit Code field.';
}
field("Sequence No."; Rec."Sequence No.")
{
ApplicationArea = All;
ToolTip = 'Specifies the value of the Sequence No. field.';
}
field(Custom1; Rec.Custom1)
{
ToolTip = 'Specifies the value of the Custom 1 field.';
}
field(Custom2; Rec.Custom2)
{
ToolTip = 'Specifies the value of the Custom 2 field.';
}
field(User; Rec.User)
{
ToolTip = 'Specifies the value of the User field.';
}
}
}
}
actions
{
area(Navigation)
{
action(ViewDetails)
{
ApplicationArea = All;
Caption = 'View Details';
ToolTip = 'View more details about this transaction.';
Promoted = true;
PromotedCategory = Process;
PromotedOnly = true;
Image = Find;
ShortcutKey = Return;
trigger OnAction()
var
HistPageNavigationHandler: Codeunit "Hist. Page Navigation Handler";
begin
HistPageNavigationHandler.NavigateToTransactionDetail(Rec);
end;
}
}
}
trigger OnOpenPage()
begin
if FilterAccountNo <> '' then
Rec.SetRange("Account No.", FilterAccountNo);
if FilterOriginatingTrxSourceNo <> '' then
Rec.SetRange("Orig. Trx. Source No.", FilterOriginatingTrxSourceNo);
end;
procedure SetFilterAccountNo(AccountNo: Code[130])
begin
FilterAccountNo := AccountNo;
end;
procedure SetFilterOriginatingTrxSourceNo(OriginatingTrxSourceNo: Code[35])
begin
FilterOriginatingTrxSourceNo := OriginatingTrxSourceNo;
end;
var
FilterAccountNo: Code[130];
FilterOriginatingTrxSourceNo: Code[35];
}