/
SalesJournalToCustomerLedgerEntries.al
61 lines (56 loc) · 1.39 KB
/
SalesJournalToCustomerLedgerEntries.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::Codeunit, Codeunit::"Gen. Jnl.-Post Line", OnAfterInitCustLedgEntry, '', false, false)]
local procedure OnAfterInitCustLedgEntry(var CustLedgerEntry: Record "Cust. Ledger Entry"; GenJournalLine: Record "Gen. Journal Line"; var GLRegister: Record "G/L Register");
begin
CustLedgerEntry."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 SalesJournalExt extends "Sales Journal"
{
layout
{
addafter("Document No.")
{
field("ZY Test"; Rec."ZY Test")
{
ApplicationArea = All;
}
}
}
}
tableextension 50121 CustLedgerEntryExt extends "Cust. Ledger Entry"
{
fields
{
field(50100; "ZY Test"; Text[100])
{
Caption = 'ZY Test';
DataClassification = CustomerContent;
}
}
}
pageextension 50121 CustomerLedgerEntriesExt extends "Customer Ledger Entries"
{
layout
{
addafter("Document No.")
{
field("ZY Test"; Rec."ZY Test")
{
ApplicationArea = All;
}
}
}
}