Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ table 98 "General Ledger Setup"
AutoFormatType = 1;
CalcFormula = sum("Detailed Cust. Ledg. Entry"."Amount (LCY)" where("Initial Entry Global Dim. 1" = field("Global Dimension 1 Filter"),
"Initial Entry Global Dim. 2" = field("Global Dimension 2 Filter"),
"Initial Entry Due Date" = field("Date Filter")));
"Initial Entry Due Date" = field("Date Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Cust. Balances Due';
Editable = false;
FieldClass = FlowField;
Expand All @@ -220,7 +221,8 @@ table 98 "General Ledger Setup"
AutoFormatType = 1;
CalcFormula = - sum("Detailed Vendor Ledg. Entry"."Amount (LCY)" where("Initial Entry Global Dim. 1" = field("Global Dimension 1 Filter"),
"Initial Entry Global Dim. 2" = field("Global Dimension 2 Filter"),
"Initial Entry Due Date" = field("Date Filter")));
"Initial Entry Due Date" = field("Date Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Vendor Balances Due';
Editable = false;
FieldClass = FlowField;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ table 380 "Detailed Vendor Ledg. Entry"
TableRelation = "G/L Register";
ToolTip = 'Specifies the G/L register number that groups related G/L entries from the same posting.';
}
field(7000004; "Excluded from calculation"; Boolean)
{
Caption = 'Excluded from calculation';
Editable = false;
}
field(17130; "Document Date"; Date)
{
Caption = 'Document Date';
Expand All @@ -273,23 +278,23 @@ table 380 "Detailed Vendor Ledg. Entry"
{
Clustered = true;
}
key(Key2; "Vendor No.", "Currency Code")
key(Key2; "Vendor No.", "Currency Code", "Excluded from calculation")
{
SumIndexFields = Amount, "Amount (LCY)";
}
key(Key3; "Vendor Ledger Entry No.", "Entry Type", "Posting Date")
{
IncludedFields = Amount, "Amount (LCY)";
}
key(Key4; "Vendor Ledger Entry No.", "Ledger Entry Amount", "Posting Date")
key(Key4; "Vendor Ledger Entry No.", "Ledger Entry Amount", "Posting Date", "Excluded from calculation")
{
IncludedFields = "Currency Code", Amount, "Amount (LCY)", "Debit Amount", "Credit Amount", "Debit Amount (LCY)", "Credit Amount (LCY)";
}
key(Key5; "Initial Document Type", "Entry Type", "Vendor No.", "Currency Code", "Initial Entry Global Dim. 1", "Initial Entry Global Dim. 2", "Posting Date")
{
IncludedFields = Amount, "Amount (LCY)";
}
key(Key6; "Vendor No.", "Currency Code", "Initial Entry Global Dim. 1", "Initial Entry Global Dim. 2", "Initial Entry Due Date", "Posting Date")
key(Key6; "Vendor No.", "Currency Code", "Initial Entry Global Dim. 1", "Initial Entry Global Dim. 2", "Initial Entry Due Date", "Posting Date", "Excluded from calculation")
{
IncludedFields = Amount, "Amount (LCY)";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ table 25 "Vendor Ledger Entry"
AutoFormatExpression = Rec."Currency Code";
AutoFormatType = 1;
CalcFormula = sum("Detailed Vendor Ledg. Entry".Amount where("Vendor Ledger Entry No." = field("Entry No."),
"Posting Date" = field("Date Filter")));
"Posting Date" = field("Date Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Remaining Amount';
ToolTip = 'Specifies the amount that remains to be applied to before the entry is totally applied to.';
Editable = false;
Expand All @@ -125,7 +126,8 @@ table 25 "Vendor Ledger Entry"
AutoFormatType = 1;
AutoFormatExpression = '';
CalcFormula = sum("Detailed Vendor Ledg. Entry"."Amount (LCY)" where("Vendor Ledger Entry No." = field("Entry No."),
"Posting Date" = field("Date Filter")));
"Posting Date" = field("Date Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Remaining Amt. (LCY)';
Editable = false;
FieldClass = FlowField;
Expand Down
18 changes: 12 additions & 6 deletions src/Layers/APAC/BaseApp/Purchases/Vendor/Vendor.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,8 @@ table 23 Vendor
CalcFormula = - sum("Detailed Vendor Ledg. Entry".Amount where("Vendor No." = field("No."),
"Initial Entry Global Dim. 1" = field("Global Dimension 1 Filter"),
"Initial Entry Global Dim. 2" = field("Global Dimension 2 Filter"),
"Currency Code" = field("Currency Filter")));
"Currency Code" = field("Currency Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Balance';
Editable = false;
FieldClass = FlowField;
Expand All @@ -495,7 +496,8 @@ table 23 Vendor
CalcFormula = - sum("Detailed Vendor Ledg. Entry"."Amount (LCY)" where("Vendor No." = field("No."),
"Initial Entry Global Dim. 1" = field("Global Dimension 1 Filter"),
"Initial Entry Global Dim. 2" = field("Global Dimension 2 Filter"),
"Currency Code" = field("Currency Filter")));
"Currency Code" = field("Currency Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Balance (LCY)';
Editable = false;
FieldClass = FlowField;
Expand All @@ -508,7 +510,8 @@ table 23 Vendor
"Initial Entry Global Dim. 1" = field("Global Dimension 1 Filter"),
"Initial Entry Global Dim. 2" = field("Global Dimension 2 Filter"),
"Posting Date" = field("Date Filter"),
"Currency Code" = field("Currency Filter")));
"Currency Code" = field("Currency Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Net Change';
Editable = false;
FieldClass = FlowField;
Expand All @@ -521,7 +524,8 @@ table 23 Vendor
"Initial Entry Global Dim. 1" = field("Global Dimension 1 Filter"),
"Initial Entry Global Dim. 2" = field("Global Dimension 2 Filter"),
"Posting Date" = field("Date Filter"),
"Currency Code" = field("Currency Filter")));
"Currency Code" = field("Currency Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Net Change (LCY)';
Editable = false;
FieldClass = FlowField;
Expand Down Expand Up @@ -574,7 +578,8 @@ table 23 Vendor
"Initial Entry Due Date" = field(upperlimit("Date Filter")),
"Initial Entry Global Dim. 1" = field("Global Dimension 1 Filter"),
"Initial Entry Global Dim. 2" = field("Global Dimension 2 Filter"),
"Currency Code" = field("Currency Filter")));
"Currency Code" = field("Currency Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Balance Due';
Editable = false;
FieldClass = FlowField;
Expand All @@ -587,7 +592,8 @@ table 23 Vendor
"Initial Entry Due Date" = field(upperlimit("Date Filter")),
"Initial Entry Global Dim. 1" = field("Global Dimension 1 Filter"),
"Initial Entry Global Dim. 2" = field("Global Dimension 2 Filter"),
"Currency Code" = field("Currency Filter")));
"Currency Code" = field("Currency Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Balance Due (LCY)';
Editable = false;
FieldClass = FlowField;
Expand Down
18 changes: 12 additions & 6 deletions src/Layers/APAC/BaseApp/Sales/Customer/Customer.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,8 @@ table 18 Customer
CalcFormula = sum("Detailed Cust. Ledg. Entry".Amount where("Customer No." = field("No."),
"Initial Entry Global Dim. 1" = field("Global Dimension 1 Filter"),
"Initial Entry Global Dim. 2" = field("Global Dimension 2 Filter"),
"Currency Code" = field("Currency Filter")));
"Currency Code" = field("Currency Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Balance';
Editable = false;
FieldClass = FlowField;
Expand All @@ -745,7 +746,8 @@ table 18 Customer
CalcFormula = sum("Detailed Cust. Ledg. Entry"."Amount (LCY)" where("Customer No." = field("No."),
"Initial Entry Global Dim. 1" = field("Global Dimension 1 Filter"),
"Initial Entry Global Dim. 2" = field("Global Dimension 2 Filter"),
"Currency Code" = field("Currency Filter")));
"Currency Code" = field("Currency Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Balance (LCY)';
Editable = false;
FieldClass = FlowField;
Expand All @@ -762,7 +764,8 @@ table 18 Customer
"Initial Entry Global Dim. 1" = field("Global Dimension 1 Filter"),
"Initial Entry Global Dim. 2" = field("Global Dimension 2 Filter"),
"Posting Date" = field("Date Filter"),
"Currency Code" = field("Currency Filter")));
"Currency Code" = field("Currency Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Net Change';
Editable = false;
FieldClass = FlowField;
Expand All @@ -778,7 +781,8 @@ table 18 Customer
"Initial Entry Global Dim. 1" = field("Global Dimension 1 Filter"),
"Initial Entry Global Dim. 2" = field("Global Dimension 2 Filter"),
"Posting Date" = field("Date Filter"),
"Currency Code" = field("Currency Filter")));
"Currency Code" = field("Currency Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Net Change (LCY)';
Editable = false;
FieldClass = FlowField;
Expand Down Expand Up @@ -860,7 +864,8 @@ table 18 Customer
"Initial Entry Due Date" = field(upperlimit("Date Filter")),
"Initial Entry Global Dim. 1" = field("Global Dimension 1 Filter"),
"Initial Entry Global Dim. 2" = field("Global Dimension 2 Filter"),
"Currency Code" = field("Currency Filter")));
"Currency Code" = field("Currency Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Balance Due';
Editable = false;
FieldClass = FlowField;
Expand All @@ -876,7 +881,8 @@ table 18 Customer
"Initial Entry Due Date" = field(upperlimit("Date Filter")),
"Initial Entry Global Dim. 1" = field("Global Dimension 1 Filter"),
"Initial Entry Global Dim. 2" = field("Global Dimension 2 Filter"),
"Currency Code" = field("Currency Filter")));
"Currency Code" = field("Currency Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Overdue Balance (LCY)';
Editable = false;
FieldClass = FlowField;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ table 21 "Cust. Ledger Entry"
AutoFormatExpression = Rec."Currency Code";
AutoFormatType = 1;
CalcFormula = sum("Detailed Cust. Ledg. Entry".Amount where("Cust. Ledger Entry No." = field("Entry No."),
"Posting Date" = field("Date Filter")));
"Posting Date" = field("Date Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Remaining Amount';
Editable = false;
FieldClass = FlowField;
Expand Down Expand Up @@ -176,7 +177,8 @@ table 21 "Cust. Ledger Entry"
AutoFormatType = 1;
AutoFormatExpression = '';
CalcFormula = sum("Detailed Cust. Ledg. Entry"."Amount (LCY)" where("Cust. Ledger Entry No." = field("Entry No."),
"Posting Date" = field("Date Filter")));
"Posting Date" = field("Date Filter"),
"Excluded from calculation" = const(false)));
Caption = 'Remaining Amt. (LCY)';
Editable = false;
FieldClass = FlowField;
Expand Down Expand Up @@ -1203,11 +1205,6 @@ table 21 "Cust. Ledger Entry"
}
}

trigger OnInsert()
begin
TestField("G/L Register No.");
end;

var
#pragma warning disable AA0074
#pragma warning disable AA0470
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,11 @@ table 379 "Detailed Cust. Ledg. Entry"
TableRelation = "G/L Register";
ToolTip = 'Specifies the G/L register number that groups related G/L entries from the same posting.';
}
field(7000004; "Excluded from calculation"; Boolean)
{
Caption = 'Excluded from calculation';
Editable = false;
}
field(17130; "Document Date"; Date)
{
Caption = 'Document Date';
Expand All @@ -392,7 +397,7 @@ table 379 "Detailed Cust. Ledg. Entry"
{
Clustered = true;
}
key(Key2; "Customer No.", "Currency Code")
key(Key2; "Customer No.", "Currency Code", "Excluded from calculation")
{
SumIndexFields = Amount, "Amount (LCY)";
}
Expand All @@ -404,7 +409,7 @@ table 379 "Detailed Cust. Ledg. Entry"
{
IncludedFields = Amount, "Amount (LCY)";
}
key(Key6; "Customer No.", "Currency Code", "Initial Entry Global Dim. 1", "Initial Entry Global Dim. 2", "Initial Entry Due Date", "Posting Date")
key(Key6; "Customer No.", "Currency Code", "Initial Entry Global Dim. 1", "Initial Entry Global Dim. 2", "Initial Entry Due Date", "Posting Date", "Excluded from calculation")
{
IncludedFields = Amount, "Amount (LCY)";
}
Expand Down Expand Up @@ -434,7 +439,7 @@ table 379 "Detailed Cust. Ledg. Entry"
}
key(Key14; "Customer No.", "Initial Entry Due Date")
{
IncludedFields = Amount, "Amount (LCY)";
IncludedFields = Amount, "Amount (LCY)", "Excluded from calculation";
}
}

Expand Down
Loading
Loading