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
      • .

EAClearLedgerLines

This document was generated using Claude.ai

Overview

Automatically removes all ledger transaction lines and debt entries from accounting requests during the pre-processing phase. This system utility ensures clean accounting request generation by clearing any existing transaction data.

When This Action Runs

  • Trigger: Pre Send Request (automatic)
  • Target: LedgerTransReq entities
  • Purpose: Clear existing transaction lines before new generation
  • Timing: Before accounting request processing

How It Works

Automatic Clearing Process

  • Transaction Lines: Removes all entries from the lines collection
  • Debt Entries: Removes all entries from the debts collection
  • Safe Operation: Only processes valid LedgerTransReq objects
  • Memory Operation: Works on in-memory objects before database persistence

Business Use Cases

  1. Request Regeneration: Clear previous attempts before generating new accounting entries
  2. Error Recovery: Remove corrupted transaction data during error recovery
  3. Data Reset: Start fresh when recalculating accounting effects

Important Warnings

⚠️ Data Loss Risk

  • Permanent Removal: All transaction lines are permanently removed from the request
  • No Recovery: Original transaction data cannot be recovered once cleared
  • Automatic Execution: Runs without user confirmation

⚠️ Troubleshooting Missing Transactions

If accounting transactions are missing:

  1. Check system logs for entity flow execution
  2. Verify if clearing was part of normal processing
  3. Regenerate transactions if necessary

Module: accounting

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

ℹ️ Note: This action is automatic and selects its own execution events

Related Actions

  • EAReverseLedgerTrans: Reverses existing ledger transactions
  • EASortLedger: Sorts ledger transaction lines
  • EAShortenLedger: Consolidates ledger transaction lines
Edit On github
Last Updated:: 7/27/25, 5:36 PM
Prev
EAAddAccountingEffect
Next
EAGenInvestmentDocClaimingDoc