Views
AccountingType
¶
Bases: Model
Accounting types.
Those are numbers used in accounting to classify operations
is_owned_by(user)
¶
Check if that object can be edited by the given user.
BankAccount
¶
Bases: Model
is_owned_by(user)
¶
Check if that object can be edited by the given user.
Source code in accounting/models.py
ClubAccount
¶
Company
¶
GeneralJournal
¶
Label
¶
Bases: Model
Label allow a club to sort its operations.
Operation
¶
Bases: Model
An operation is a line in the journal, a debit or a credit.
is_owned_by(user)
¶
Check if that object can be edited by the given user.
Source code in accounting/models.py
can_be_edited_by(user)
¶
Check if that object can be edited by the given user.
Source code in accounting/models.py
SimplifiedAccountingType
¶
Bases: Model
Simplified version of AccountingType
.
BankAccountListView
¶
Bases: CanViewMixin
, ListView
A list view for the admins.
SimplifiedAccountingTypeListView
¶
Bases: CanViewMixin
, ListView
A list view for the admins.
SimplifiedAccountingTypeEditView
¶
Bases: CanViewMixin
, UpdateView
An edit view for the admins.
SimplifiedAccountingTypeCreateView
¶
Bases: CanCreateMixin
, CreateView
Create an accounting type (for the admins).
AccountingTypeListView
¶
Bases: CanViewMixin
, ListView
A list view for the admins.
AccountingTypeEditView
¶
Bases: CanViewMixin
, UpdateView
An edit view for the admins.
AccountingTypeCreateView
¶
Bases: CanCreateMixin
, CreateView
Create an accounting type (for the admins).
BankAccountEditView
¶
Bases: CanViewMixin
, UpdateView
An edit view for the admins.
BankAccountDetailView
¶
Bases: CanViewMixin
, DetailView
A detail view, listing every club account.
BankAccountCreateView
¶
Bases: CanCreateMixin
, CreateView
Create a bank account (for the admins).
BankAccountDeleteView
¶
Bases: CanEditPropMixin
, DeleteView
Delete a bank account (for the admins).
ClubAccountEditView
¶
Bases: CanViewMixin
, UpdateView
An edit view for the admins.
ClubAccountDetailView
¶
Bases: CanViewMixin
, DetailView
A detail view, listing every journal.
ClubAccountCreateView
¶
Bases: CanCreateMixin
, CreateView
Create a club account (for the admins).
ClubAccountDeleteView
¶
Bases: CanEditPropMixin
, DeleteView
Delete a club account (for the admins).
JournalTabsMixin
¶
Bases: TabedViewMixin
JournalCreateView
¶
Bases: CanCreateMixin
, CreateView
Create a general journal.
JournalDetailView
¶
Bases: JournalTabsMixin
, CanViewMixin
, DetailView
A detail view, listing every operation.
JournalEditView
¶
Bases: CanEditMixin
, UpdateView
Update a general journal.
JournalDeleteView
¶
Bases: CanEditPropMixin
, DeleteView
Delete a club account (for the admins).
OperationForm(*args, **kwargs)
¶
Bases: ModelForm
Source code in accounting/views.py
OperationCreateView
¶
Bases: CanCreateMixin
, CreateView
Create an operation.
OperationEditView
¶
Bases: CanEditMixin
, UpdateView
An edit view, working as detail for the moment.
OperationPDFView
¶
Bases: CanViewMixin
, DetailView
Display the PDF of a given operation.
JournalNatureStatementView
¶
Bases: JournalTabsMixin
, CanViewMixin
, DetailView
Display a statement sorted by labels.
JournalPersonStatementView
¶
Bases: JournalTabsMixin
, CanViewMixin
, DetailView
Calculate a dictionary with operation target and sum of operations.
get_context_data(**kwargs)
¶
Add journal to the context.
Source code in accounting/views.py
JournalAccountingStatementView
¶
Bases: JournalTabsMixin
, CanViewMixin
, DetailView
Calculate a dictionary with operation type and sum of operations.
CompanyListView
¶
Bases: CanViewMixin
, ListView
CompanyCreateView
¶
Bases: CanCreateMixin
, CreateView
Create a company.
CompanyEditView
¶
Bases: CanCreateMixin
, UpdateView
Edit a company.
LabelListView
¶
Bases: CanViewMixin
, DetailView
LabelCreateView
¶
Bases: CanCreateMixin
, CreateView
LabelEditView
¶
Bases: CanEditMixin
, UpdateView
LabelDeleteView
¶
Bases: CanEditMixin
, DeleteView
CloseCustomerAccountForm
¶
Bases: Form
RefoundAccountView
¶
Bases: FormView
Create a selling with the same amount than the current user money.