/
PurchaseJournalToGeneralLedgerEntries.al
61 lines (56 loc) · 1.32 KB
/
PurchaseJournalToGeneralLedgerEntries.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
codeunit 50122 EventHandler
{
[EventSubscriber(ObjectType::Table, Database::"G/L Entry", OnAfterCopyGLEntryFromGenJnlLine, '', false, false)]
local procedure OnAfterCopyGLEntryFromGenJnlLine(var GLEntry: Record "G/L Entry"; var GenJournalLine: Record "Gen. Journal Line");
begin
GLEntry."ZY Test" := GenJournalLine."ZY Test";
end;
}
tableextension 50119 GenJournalLineExt extends "Gen. Journal Line"
{
fields
{
field(50100; "ZY Test"; Text[100])
{
Caption = 'ZY Test';
DataClassification = CustomerContent;
}
}
}
pageextension 50119 PurchaseJournalExt extends "Purchase Journal"
{
layout
{
addafter("Document No.")
{
field("ZY Test"; Rec."ZY Test")
{
ApplicationArea = All;
}
}
}
}
tableextension 50121 GLEntryExt extends "G/L Entry"
{
fields
{
field(50100; "ZY Test"; Text[100])
{
Caption = 'ZY Test';
DataClassification = CustomerContent;
}
}
}
pageextension 50121 GeneralLedgerEntriesExt extends "General Ledger Entries"
{
layout
{
addafter("Document No.")
{
field("ZY Test"; Rec."ZY Test")
{
ApplicationArea = All;
}
}
}
}