transactions
Provides model validastion extensions for specific financial Transactions.
Submodules
Package Contents
Classes
Class for the Client Invoice Transaction. |
|
Class for the Cash Sale Transaction. |
|
Class for the Supplier Bill Transaction. |
|
Class for the Cash Purchase Transaction. |
|
Class for the Client Receipt Transaction. |
|
Class for the Credit Note Transaction. |
|
Class for the Supplier Payment Transaction. |
|
Class for the Debit Note Transaction. |
|
Class for the Contra Entry Transaction. |
|
Class for the Journal Entry Transaction. |
- class transactions.ClientInvoice(**kw: Any)
Bases:
python_accounting.mixins.SellingMixin,python_accounting.mixins.ClearingMixin,python_accounting.models.TransactionClass for the Client Invoice Transaction.
- __tablename__
- __mapper_args__
- class transactions.CashSale(**kw: Any)
Bases:
python_accounting.mixins.SellingMixin,python_accounting.models.TransactionClass for the Cash Sale Transaction.
- __tablename__
- __mapper_args__
- class transactions.SupplierBill(**kw: Any)
Bases:
python_accounting.mixins.BuyingMixin,python_accounting.mixins.ClearingMixin,python_accounting.models.TransactionClass for the Supplier Bill Transaction.
- __tablename__
- __mapper_args__
- class transactions.CashPurchase(**kw: Any)
Bases:
python_accounting.mixins.BuyingMixin,python_accounting.models.TransactionClass for the Cash Purchase Transaction.
- __tablename__
- __mapper_args__
- class transactions.ClientReceipt(**kw: Any)
Bases:
python_accounting.mixins.trading.TradingMixin,python_accounting.mixins.AssigningMixin,python_accounting.models.TransactionClass for the Client Receipt Transaction.
- __tablename__
- __mapper_args__
- class transactions.CreditNote(**kw: Any)
Bases:
python_accounting.mixins.SellingMixin,python_accounting.mixins.AssigningMixin,python_accounting.models.TransactionClass for the Credit Note Transaction.
- __tablename__
- __mapper_args__
- class transactions.SupplierPayment(**kw: Any)
Bases:
python_accounting.mixins.trading.TradingMixin,python_accounting.mixins.AssigningMixin,python_accounting.models.TransactionClass for the Supplier Payment Transaction.
- __tablename__
- __mapper_args__
- class transactions.DebitNote(**kw: Any)
Bases:
python_accounting.mixins.BuyingMixin,python_accounting.mixins.AssigningMixin,python_accounting.models.TransactionClass for the Debit Note Transaction.
- __tablename__
- __mapper_args__
- class transactions.ContraEntry(**kw: Any)
Bases:
python_accounting.mixins.trading.TradingMixin,python_accounting.models.TransactionClass for the Contra Entry Transaction.
- __tablename__
- __mapper_args__
- class transactions.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