From 304178cb3ee6c693419da6ac921111a5710ee783 Mon Sep 17 00:00:00 2001 From: Kilian Seizinger <56249171+pri-kise@users.noreply.github.com> Date: Thu, 12 Feb 2026 08:08:04 +0100 Subject: [PATCH] Number of Lines in Batches --- .../src/page/GSTJournalBatches.Page.al | 8 ++++++++ .../src/table/GSTJournalBatch.table.al | 8 ++++++++ .../src/TCS-Journal/page/TCSJournalBatches.page.al | 8 ++++++++ .../src/TCS-Journal/table/TCSJournalBatch.table.al | 8 ++++++++ .../src/TDS-Journal/TDSJournalBatch.table.al | 8 ++++++++ .../src/TDS-Journal/TDSJournalBatches.page.al | 8 ++++++++ .../app/src/StatisticalAccJournalBatch.Page.al | 8 ++++++++ .../app/src/StatisticalAccJournalBatch.Table.al | 8 ++++++++ .../app/src/ExciseTax/SustExciseJnlBatches.Page.al | 12 ++++++++++++ .../src/ExciseTax/SustExciseJournalBatch.Table.al | 8 ++++++++ .../app/src/Journal/SustainabilityJnlBatch.Table.al | 8 ++++++++ .../app/src/Journal/SustainabilityJnlBatches.Page.al | 12 ++++++++++++ 12 files changed, 104 insertions(+) diff --git a/Apps/IN/INGST/app/GSTReturnSettlement/src/page/GSTJournalBatches.Page.al b/Apps/IN/INGST/app/GSTReturnSettlement/src/page/GSTJournalBatches.Page.al index 2b392141ea..0062920c11 100644 --- a/Apps/IN/INGST/app/GSTReturnSettlement/src/page/GSTJournalBatches.Page.al +++ b/Apps/IN/INGST/app/GSTReturnSettlement/src/page/GSTJournalBatches.Page.al @@ -67,6 +67,14 @@ page 18327 "GST Journal Batches" ApplicationArea = Basic, Suite; ToolTip = 'Specifies the type of template as GST Adjustment Journal for update on journal line.'; } + field("No. of Lines"; Rec."No. of Lines") + { + Visible = false; + trigger OnDrillDown() + begin + GSTJnlManagement.TemplateSelectionFromGSTBatch(Rec) + end; + } } } } diff --git a/Apps/IN/INGST/app/GSTReturnSettlement/src/table/GSTJournalBatch.table.al b/Apps/IN/INGST/app/GSTReturnSettlement/src/table/GSTJournalBatch.table.al index db737b7bbe..05e3f99101 100644 --- a/Apps/IN/INGST/app/GSTReturnSettlement/src/table/GSTJournalBatch.table.al +++ b/Apps/IN/INGST/app/GSTReturnSettlement/src/table/GSTJournalBatch.table.al @@ -144,6 +144,14 @@ table 18324 "GST Journal Batch" Modify(); end; } + field(40; "No. of Lines"; Integer) + { + CalcFormula = count("GST Journal Line" where("Journal Template Name" = field("Journal Template Name"), "Journal Batch Name" = field(Name))); + Caption = 'No. of Lines'; + Editable = false; + FieldClass = FlowField; + ToolTip = 'Specifies the number of lines in this journal batch.'; + } } keys diff --git a/Apps/IN/INTCS/app/TCSReturnAndSettlement/src/TCS-Journal/page/TCSJournalBatches.page.al b/Apps/IN/INTCS/app/TCSReturnAndSettlement/src/TCS-Journal/page/TCSJournalBatches.page.al index 9388d8c48a..ca78fff3da 100644 --- a/Apps/IN/INTCS/app/TCSReturnAndSettlement/src/TCS-Journal/page/TCSJournalBatches.page.al +++ b/Apps/IN/INTCS/app/TCSReturnAndSettlement/src/TCS-Journal/page/TCSJournalBatches.page.al @@ -52,6 +52,14 @@ page 18871 "TCS Journal Batches" ApplicationArea = Basic, Suite; ToolTip = 'Specifies the code for the number series that will be used to assign document numbers to ledger entries that are posted from this journal batch.'; } + field("No. of Lines"; Rec."No. of Lines") + { + Visible = false; + trigger OnDrillDown() + begin + TCSAdjustment.TemplateSelectionFromTCSBatch(Rec); + end; + } } } } diff --git a/Apps/IN/INTCS/app/TCSReturnAndSettlement/src/TCS-Journal/table/TCSJournalBatch.table.al b/Apps/IN/INTCS/app/TCSReturnAndSettlement/src/TCS-Journal/table/TCSJournalBatch.table.al index 091af8212a..253b7f9d8c 100644 --- a/Apps/IN/INTCS/app/TCSReturnAndSettlement/src/TCS-Journal/table/TCSJournalBatch.table.al +++ b/Apps/IN/INTCS/app/TCSReturnAndSettlement/src/TCS-Journal/table/TCSJournalBatch.table.al @@ -108,6 +108,14 @@ table 18869 "TCS Journal Batch" end; end; } + field(40; "No. of Lines"; Integer) + { + CalcFormula = count("TCS Journal Line" where("Journal Template Name" = field("Journal Template Name"), "Journal Batch Name" = field(Name))); + Caption = 'No. of Lines'; + Editable = false; + FieldClass = FlowField; + ToolTip = 'Specifies the number of lines in this journal batch.'; + } } keys diff --git a/Apps/IN/INTDS/app/TDSReturnAndSettlement/src/TDS-Journal/TDSJournalBatch.table.al b/Apps/IN/INTDS/app/TDSReturnAndSettlement/src/TDS-Journal/TDSJournalBatch.table.al index 75491dd288..0fe6a893d8 100644 --- a/Apps/IN/INTDS/app/TDSReturnAndSettlement/src/TDS-Journal/TDSJournalBatch.table.al +++ b/Apps/IN/INTDS/app/TDSReturnAndSettlement/src/TDS-Journal/TDSJournalBatch.table.al @@ -126,6 +126,14 @@ table 18746 "TDS Journal Batch" end; end; } + field(40; "No. of Lines"; Integer) + { + CalcFormula = count("TDS Journal Line" where("Journal Template Name" = field("Journal Template Name"), "Journal Batch Name" = field(Name))); + Caption = 'No. of Lines'; + Editable = false; + FieldClass = FlowField; + ToolTip = 'Specifies the number of lines in this journal batch.'; + } } keys diff --git a/Apps/IN/INTDS/app/TDSReturnAndSettlement/src/TDS-Journal/TDSJournalBatches.page.al b/Apps/IN/INTDS/app/TDSReturnAndSettlement/src/TDS-Journal/TDSJournalBatches.page.al index e5180221f6..accc677a05 100644 --- a/Apps/IN/INTDS/app/TDSReturnAndSettlement/src/TDS-Journal/TDSJournalBatches.page.al +++ b/Apps/IN/INTDS/app/TDSReturnAndSettlement/src/TDS-Journal/TDSJournalBatches.page.al @@ -58,6 +58,14 @@ page 18748 "TDS Journal Batches" ApplicationArea = Basic, Suite; ToolTip = 'Specifies the reason code, a supplementary source code that enables you to trace the entry.'; } + field("No. of Lines"; Rec."No. of Lines") + { + Visible = false; + trigger OnDrillDown() + begin + TDSJnlManagement.TemplateSelectionFromTaxBatch(Rec); + end; + } } } } diff --git a/Apps/W1/StatisticalAccounts/app/src/StatisticalAccJournalBatch.Page.al b/Apps/W1/StatisticalAccounts/app/src/StatisticalAccJournalBatch.Page.al index 511a97b12f..081e4bf5ab 100644 --- a/Apps/W1/StatisticalAccounts/app/src/StatisticalAccJournalBatch.Page.al +++ b/Apps/W1/StatisticalAccounts/app/src/StatisticalAccJournalBatch.Page.al @@ -36,6 +36,14 @@ page 2630 "Statistical Acc. Journal Batch" Editable = false; ToolTip = 'Specifies the account name that the entry on the journal line will be posted to.'; } + field("No. of Lines"; Rec."No. of Lines") + { + Visible = false; + trigger OnDrillDown() + begin + OpenWorksheet(); + end; + } } } } diff --git a/Apps/W1/StatisticalAccounts/app/src/StatisticalAccJournalBatch.Table.al b/Apps/W1/StatisticalAccounts/app/src/StatisticalAccJournalBatch.Table.al index 2cc1f56934..67256989d4 100644 --- a/Apps/W1/StatisticalAccounts/app/src/StatisticalAccJournalBatch.Table.al +++ b/Apps/W1/StatisticalAccounts/app/src/StatisticalAccJournalBatch.Table.al @@ -27,6 +27,14 @@ table 2630 "Statistical Acc. Journal Batch" DataClassification = CustomerContent; TableRelation = "Statistical Account"; } + field(40; "No. of Lines"; Integer) + { + CalcFormula = count("Statistical Acc. Journal Line" where("Journal Template Name" = field("Journal Template Name"), "Journal Batch Name" = field(Name))); + Caption = 'No. of Lines'; + Editable = false; + FieldClass = FlowField; + ToolTip = 'Specifies the number of lines in this journal batch.'; + } field(50; "Statistical Account Name"; Text[100]) { FieldClass = FlowField; diff --git a/Apps/W1/Sustainability/app/src/ExciseTax/SustExciseJnlBatches.Page.al b/Apps/W1/Sustainability/app/src/ExciseTax/SustExciseJnlBatches.Page.al index d9d06c4d40..3a58409a2e 100644 --- a/Apps/W1/Sustainability/app/src/ExciseTax/SustExciseJnlBatches.Page.al +++ b/Apps/W1/Sustainability/app/src/ExciseTax/SustExciseJnlBatches.Page.al @@ -42,6 +42,18 @@ page 6286 "Sust. Excise Jnl. Batches" { ToolTip = 'Specifies the reason code for the journal batch.'; } + field("No. of Lines"; Rec."No. of Lines") + { + Visible = false; + trigger OnDrillDown() + var + SustainabilityExciseJnlTemplate: Record "Sust. Excise Journal Template"; + SustainabilityExciseJournalMgt: Codeunit "Sust. Excise Journal Mgt."; + begin + SustainabilityExciseJnlTemplate.Get(Rec."Journal Template Name"); + SustainabilityExciseJournalMgt.OpenJournalPageFromBatch(Rec, SustainabilityExciseJnlTemplate); + end; + } } } } diff --git a/Apps/W1/Sustainability/app/src/ExciseTax/SustExciseJournalBatch.Table.al b/Apps/W1/Sustainability/app/src/ExciseTax/SustExciseJournalBatch.Table.al index f689588845..fa44e6fd51 100644 --- a/Apps/W1/Sustainability/app/src/ExciseTax/SustExciseJournalBatch.Table.al +++ b/Apps/W1/Sustainability/app/src/ExciseTax/SustExciseJournalBatch.Table.al @@ -73,6 +73,14 @@ table 6239 "Sust. Excise Journal Batch" end; end; } + field(40; "No. of Lines"; Integer) + { + CalcFormula = count("Sust. Excise Jnl. Line" where("Journal Template Name" = field("Journal Template Name"), "Journal Batch Name" = field(Name))); + Caption = 'No. of Lines'; + Editable = false; + FieldClass = FlowField; + ToolTip = 'Specifies the number of lines in this journal batch.'; + } } keys { diff --git a/Apps/W1/Sustainability/app/src/Journal/SustainabilityJnlBatch.Table.al b/Apps/W1/Sustainability/app/src/Journal/SustainabilityJnlBatch.Table.al index 7e7669b3e7..29851df8b7 100644 --- a/Apps/W1/Sustainability/app/src/Journal/SustainabilityJnlBatch.Table.al +++ b/Apps/W1/Sustainability/app/src/Journal/SustainabilityJnlBatch.Table.al @@ -79,6 +79,14 @@ table 6213 "Sustainability Jnl. Batch" Editable = false; FieldClass = FlowField; } + field(40; "No. of Lines"; Integer) + { + CalcFormula = count("Sustainability Jnl. Line" where("Journal Template Name" = field("Journal Template Name"), "Journal Batch Name" = field(Name))); + Caption = 'No. of Lines'; + Editable = false; + FieldClass = FlowField; + ToolTip = 'Specifies the number of lines in this journal batch.'; + } } keys diff --git a/Apps/W1/Sustainability/app/src/Journal/SustainabilityJnlBatches.Page.al b/Apps/W1/Sustainability/app/src/Journal/SustainabilityJnlBatches.Page.al index f69e81f89b..82431c950f 100644 --- a/Apps/W1/Sustainability/app/src/Journal/SustainabilityJnlBatches.Page.al +++ b/Apps/W1/Sustainability/app/src/Journal/SustainabilityJnlBatches.Page.al @@ -38,6 +38,18 @@ page 6216 "Sustainability Jnl. Batches" { ToolTip = 'Specifies the reason code for the journal batch.'; } + field("No. of Lines"; Rec."No. of Lines") + { + Visible = false; + trigger OnDrillDown() + var + SustainabilityJnlTemplate: Record "Sustainability Jnl. Template"; + SustainabilityJournalMgt: Codeunit "Sustainability Journal Mgt."; + begin + SustainabilityJnlTemplate.Get(Rec."Journal Template Name"); + SustainabilityJournalMgt.OpenJournalPageFromBatch(Rec, SustainabilityJnlTemplate); + end; + } } } }