Nama ERP DocsNama ERP Docs
Home
Namasoft.com
Data Model
GitHub
Home
Namasoft.com
Data Model
GitHub
  • Home

    • Search
    • Guides

      • Entity Flows
      • الفواتير والضرائب والخصومات
      • Supply Chain
      • e-commerce integration (Magento)
      • .
    • Examples
    • Reprocessing Transactions
    • Frequently Asked Questions
    • AI Generated Entity Flows Documentation

      • Core
      • Accounting Module

        • EAAddAccountingEffect
        • EAClearLedgerLines
        • EAGenInvestmentDocClaimingDoc
        • EAGenJournalEntry
        • EAGenTreasuryBillCloseDoc
        • EARVPVControlJournal
        • EAReverseLedgerTrans
        • EAShortenLedger
        • EAShortenLedgerChangeToAccountCurrency
        • EASortLedger
        • .
      • AI Module
      • Contracting Module
      • CRM Module
      • EGTax Reader Module
      • Freight Management System Module
      • Hospital Management System Module
      • HR Module
      • e-commerce Integration Module
      • Manufacturing Module
      • POS Module
      • Real Estate Module
      • Service Center Module
      • Supply Chain Module
      • .
    • Release Notes

      • 2016
      • 2017
      • 2018
      • 2019
      • 2020
      • 2021
      • 2022
      • 2025
      • .
    • Video Tutorials

      • Supply Chain Videos
      • Report Wizard Videos
      • Human Resources Videos
      • .

EAShortenLedger

This document was generated using Claude.ai

Overview

Consolidates duplicate ledger transaction lines by combining multiple lines with identical characteristics into single lines with net debit/credit amounts.

When This Action Runs

  • Trigger: Automatic during PreSendRequest phase
  • Target: Ledger transactions with duplicate lines
  • Purpose: Optimize ledger by consolidating identical lines
  • Timing: Before ledger transaction is processed

How It Works

Grouping Criteria

Lines are consolidated if they have identical:

  • Account, Analysis Set, Branch, Department, Sector
  • Entity Dimension, Subsidiary, Reference Fields
  • Narration, Currency, Exchange Rate

Consolidation Process

  1. Groups lines by identical characteristics
  2. Calculates net amounts (total debits - total credits)
  3. Keeps first line from each group with net amount
  4. Removes duplicate lines and sorts remaining lines

Example

Before: Account 1001-Cash has 3 lines: Debit $100, Debit $50, Credit $30
After: Account 1001-Cash has 1 line: Debit $120 (net amount)

Configuration

Controlled by shortenLedger setting in:

  • Document Term Info - Applies to all documents using this term
  • Book Info - Applies to all documents in this book

Exclusions

Does not apply to:

  • Currency Difference Journals (CurrencyDiffJournal)
  • Exchange Rate Updates (ExchangeRateUpdate)

Important Warnings

⚠️ Data Impact

  • Audit Trail Loss: Individual line details are permanently lost
  • Irreversible: Original line amounts cannot be recovered
  • Automatic Execution: Cannot be manually controlled per transaction

⚠️ Reporting Impact

  • Reports expecting detailed breakdown will show consolidated amounts
  • Fewer lines improve performance but reduce detail visibility

Related Actions

  • EASortLedger - Sorts consolidated lines
  • EAClearLedgerLines - Clears lines before shortening
  • EAGenJournalEntry - Generates lines that may be shortened

Module: accounting

Full Class Name: com.namasoft.modules.accounting.domain.utils.actions.EAShortenLedger

Edit On github
Last Updated:: 7/27/25, 7:19 PM
Prev
EAReverseLedgerTrans
Next
EAShortenLedgerChangeToAccountCurrency