trips Package¶
models Module¶
- class trips.models.StoreAccount(*args, **kwargs)[source]¶
A Communard-visible Wrapper for an Account.
This is used to allow Communards to select an Account for purchases made on store credit.
- class trips.models.TripEntry(*args, **kwargs)[source]¶
Communard entries used as a pre-approval state for JournalEntries.
These are used to group together in-town purchases by Communards before the Entry is approved by an Accountant.
When approved, the TripEntry massages it’s data into a JournalEntry and Transactions so that the relevant Account balances are actually modified, then the TripEntry deletes itself.
- class trips.models.TripReceipt(*args, **kwargs)[source]¶
Stores Receipts for an unapproved TripEntry.
- class trips.models.TripStoreTransaction(*args, **kwargs)[source]¶
Represents a purchase at a StoreAccount for a TripEntry.
- class trips.models.TripTransaction(*args, **kwargs)[source]¶
Represents the individual charges/returns for a TripEntry.
The creation of a TripTransaction does not affect Account balances, this only occurs when the related TripEntry is approved - by removing the TripEntry and TripTransactions and creating a JournalEntry and Transactions.
admin Module¶
forms Module¶
views Module¶
- class trips.views.AddTripEntryView[source]¶
Extend the AddApprovableEntryView to apply to TripEntries.
This view adds an additional formset, the TripStoreTransactionFormSet.
- entry_class¶
alias of TripEntry
- entry_form_class¶
alias of TripEntryForm
- receipt_class¶
alias of TripReceipt