Skip to content
English

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

Module: accounting

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

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

  • EAReverseLedgerTrans: Reverses existing ledger transactions
  • EASortLedger: Sorts ledger transaction lines
  • EAShortenLedger: Consolidates ledger transaction lines