Accounting Validator icon

Accounting Validator

Validate journal entries and generate a minimal trial balance with double-entry checks.

Validate Journal Entries

AI-generated

Summary

Validate provided journal entries against a specified chart of accounts and accounting rules, producing a detailed validation report that includes any errors or warnings, and optionally generating a trial balance if no blocking errors occur and requested.

Inputs

  • Allow Line With Both Debit And Credit — Boolean flag to allow a single journal line to contain non-zero debit and credit amounts at the same time; default is false.
  • Allow Negative Amounts — Boolean flag to accept negative debit or credit amounts as warnings rather than blocking errors; default is false.
  • Currency — Default currency code (e.g., 'EUR') used when a journal entry does not specify one; defaults to 'EUR'.
  • Expected Period Start — Optional expected start date of the accounting period in YYYY-MM-DD format; entries before this date produce warnings.
  • Expected Period End — Optional expected end date of the accounting period in YYYY-MM-DD format; entries after this date produce warnings.
  • Include Trial Balance — Boolean flag indicating whether to include a trial balance in the output when no errors are present; defaults to false.

Output shape

a single object containing validity boolean, lists of errors and warnings, audit trail of validation steps, summary statistics, and optionally a trial balance array

The output object includes: isValid (boolean); errors and warnings arrays listing validation issues; auditTrail array with step-by-step metadata; summary with counts (account count, entries with errors/warnings, etc.); trialBalance array if requested and no blocking errors. The validation checks journal entry structure, account codes, date validity, currency consistency, debit/credit correctness, double-entry balancing, and applies user-configured options.

Links

Discussion