transactions

Provides model validastion extensions for specific financial Transactions.

Submodules

Package Contents

Classes

ClientInvoice

Class for the Client Invoice Transaction.

CashSale

Class for the Cash Sale Transaction.

SupplierBill

Class for the Supplier Bill Transaction.

CashPurchase

Class for the Cash Purchase Transaction.

ClientReceipt

Class for the Client Receipt Transaction.

CreditNote

Class for the Credit Note Transaction.

SupplierPayment

Class for the Supplier Payment Transaction.

DebitNote

Class for the Debit Note Transaction.

ContraEntry

Class for the Contra Entry Transaction.

JournalEntry

Class for the Journal Entry Transaction.

class transactions.ClientInvoice(**kw: Any)

Bases: python_accounting.mixins.SellingMixin, python_accounting.mixins.ClearingMixin, python_accounting.models.Transaction

Class for the Client Invoice Transaction.

__tablename__
__mapper_args__
class transactions.CashSale(**kw: Any)

Bases: python_accounting.mixins.SellingMixin, python_accounting.models.Transaction

Class 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.Transaction

Class for the Supplier Bill Transaction.

__tablename__
__mapper_args__
class transactions.CashPurchase(**kw: Any)

Bases: python_accounting.mixins.BuyingMixin, python_accounting.models.Transaction

Class 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.Transaction

Class 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.Transaction

Class 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.Transaction

Class 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.Transaction

Class for the Debit Note Transaction.

__tablename__
__mapper_args__
class transactions.ContraEntry(**kw: Any)

Bases: python_accounting.mixins.trading.TradingMixin, python_accounting.models.Transaction

Class 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.ClearingMixin

Class 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