-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCodeunit_0000000014.txt
79 lines (76 loc) · 3.34 KB
/
Codeunit_0000000014.txt
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
OBJECT Codeunit 14 Gen. Jnl.-Show Entries
{
OBJECT-PROPERTIES
{
Date=09/07/12;
Time=12:00:00 PM;
Version List=NAVW17.00;
}
PROPERTIES
{
TableNo=81;
OnRun=BEGIN
CASE "Account Type" OF
"Account Type"::"G/L Account":
BEGIN
GLEntry.SETCURRENTKEY("G/L Account No.","Posting Date");
GLEntry.SETRANGE("G/L Account No.","Account No.");
IF GLEntry.FINDLAST THEN;
PAGE.RUN(PAGE::"General Ledger Entries",GLEntry);
END;
"Account Type"::Customer:
BEGIN
CustLedgEntry.SETCURRENTKEY("Customer No.","Posting Date");
CustLedgEntry.SETRANGE("Customer No.","Account No.");
IF CustLedgEntry.FINDLAST THEN;
PAGE.RUN(PAGE::"Customer Ledger Entries",CustLedgEntry);
END;
"Account Type"::Vendor:
BEGIN
VendLedgEntry.SETCURRENTKEY("Vendor No.","Posting Date");
VendLedgEntry.SETRANGE("Vendor No.","Account No.");
IF VendLedgEntry.FINDLAST THEN;
PAGE.RUN(PAGE::"Vendor Ledger Entries",VendLedgEntry);
END;
"Account Type"::"Bank Account":
BEGIN
BankAccLedgEntry.SETCURRENTKEY("Bank Account No.","Posting Date");
BankAccLedgEntry.SETRANGE("Bank Account No.","Account No.");
IF BankAccLedgEntry.FINDLAST THEN;
PAGE.RUN(PAGE::"Bank Account Ledger Entries",BankAccLedgEntry);
END;
"Account Type"::"Fixed Asset":
IF "FA Posting Type" <> "FA Posting Type"::Maintenance THEN BEGIN
FALedgEntry.SETCURRENTKEY("FA No.","Depreciation Book Code","FA Posting Date");
FALedgEntry.SETRANGE("FA No.","Account No.");
IF "Depreciation Book Code" <> '' THEN
FALedgEntry.SETRANGE("Depreciation Book Code","Depreciation Book Code");
IF FALedgEntry.FINDLAST THEN;
PAGE.RUN(PAGE::"FA Ledger Entries",FALedgEntry);
END ELSE BEGIN
MaintenanceLedgEntry.SETCURRENTKEY("FA No.","Depreciation Book Code","FA Posting Date");
MaintenanceLedgEntry.SETRANGE("FA No.","Account No.");
IF "Depreciation Book Code" <> '' THEN
MaintenanceLedgEntry.SETRANGE("Depreciation Book Code","Depreciation Book Code");
IF MaintenanceLedgEntry.FINDLAST THEN;
PAGE.RUN(PAGE::"Maintenance Ledger Entries",MaintenanceLedgEntry);
END;
"Account Type"::"IC Partner":
ERROR(Text001);
END;
END;
}
CODE
{
VAR
GLEntry@1000 : Record 17;
CustLedgEntry@1001 : Record 21;
VendLedgEntry@1002 : Record 25;
BankAccLedgEntry@1003 : Record 271;
FALedgEntry@1004 : Record 5601;
MaintenanceLedgEntry@1005 : Record 5625;
Text001@1006 : TextConst 'ENU=Intercompany partners do not have ledger entries.;ESM=Las empresas vinculadas asociadas no tienen movimientos en el diario.;FRC=Aucune ‚criture pour les partenaires intercompagnies.;ENC=Intercompany partners do not have ledger entries.';
BEGIN
END.
}
}