transactions.journal_entry
- This is the most powerful Transaction in the entire system, capable of
directly accessing the ledger.
Module Contents
Classes
Class for the Journal Entry Transaction. |
- class transactions.journal_entry.JournalEntry(**kw: Any)
Bases:
python_accounting.models.Transaction,python_accounting.mixins.AssigningMixin,python_accounting.mixins.ClearingMixinClass for the Journal Entry Transaction.
- __tablename__
- __mapper_args__
- _validate_subclass_line_items(line_item)
- get_compound_entries() tuple
Prepare the compound entries for the Transaction
- Returns:
A tuple of debited, credited Line Items
- Return type:
tuple
- validate(session) None
Validates the Journal Entry properties
- Parameters:
session (Session) – The accounting session to which the Journal Entry belongs.
- Raises:
UnbalancedTransactionError – If the debit amounts do not equal the credit amounts.
- Returns:
None