invoicing.model
Invoicing Model module
This contains all the class definitions necessary to persist Invoice data.
| Classes: | Invoice
User
Group
InvoiceLine
Product
Client
Company
ClientGroup
VATRate
Visit
VisitIdentity
|
-
class invoicing.model.Invoice(**kwargs)
Bases: elixir.entity.Entity
Invoice object - contains all info relevant to an invoice
-
add_product(product=None, quantity=0, price=0.0)
-
client_id
- Public-facing descriptor, placed in the mapped class dictionary.
-
created
- Public-facing descriptor, placed in the mapped class dictionary.
-
created_date
-
date
- Public-facing descriptor, placed in the mapped class dictionary.
-
date_sent
- Public-facing descriptor, placed in the mapped class dictionary.
-
delete(*args, **kwargs)
-
expire(*args, **kwargs)
-
expunge(*args, **kwargs)
-
flush(*args, **kwargs)
-
from_dict(data)
- Update a mapped class with data from a JSON-style nested dict/list
structure.
-
static get(*args, **kwargs)
-
static get_by(*args, **kwargs)
-
hasNext
-
hasPrevious
-
id
- Public-facing descriptor, placed in the mapped class dictionary.
-
ident
- Public-facing descriptor, placed in the mapped class dictionary.
-
invoice_date
-
merge(*args, **kwargs)
-
net_total
-
number_of_lines
-
paid
- Public-facing descriptor, placed in the mapped class dictionary.
-
previous_invoice
- Public-facing descriptor, placed in the mapped class dictionary.
-
previous_invoice_id
- Public-facing descriptor, placed in the mapped class dictionary.
-
product_quantity
-
query()
-
refresh(*args, **kwargs)
-
save(*args, **kwargs)
-
save_or_update(*args, **kwargs)
-
set(**kwargs)
-
status
- Public-facing descriptor, placed in the mapped class dictionary.
-
terms
- Public-facing descriptor, placed in the mapped class dictionary.
-
to_dict(deep={}, exclude=[])
- Generate a JSON-style nested dict/list structure from an object.
-
total
-
update(*args, **kwargs)
-
static update_or_create(data, surrogate=True)
-
vat
-
vat_rate
- Public-facing descriptor, placed in the mapped class dictionary.
-
class invoicing.model.InvoiceLine(**kwargs)
Bases: elixir.entity.Entity
-
delete(*args, **kwargs)
-
expire(*args, **kwargs)
-
expunge(*args, **kwargs)
-
flush(*args, **kwargs)
-
from_dict(data)
- Update a mapped class with data from a JSON-style nested dict/list
structure.
-
static get(*args, **kwargs)
-
static get_by(*args, **kwargs)
-
id
- Public-facing descriptor, placed in the mapped class dictionary.
-
invoice
- Public-facing descriptor, placed in the mapped class dictionary.
-
invoice_id
- Public-facing descriptor, placed in the mapped class dictionary.
-
merge(*args, **kwargs)
-
price
- Public-facing descriptor, placed in the mapped class dictionary.
-
product_id
- Public-facing descriptor, placed in the mapped class dictionary.
-
quantity
- Public-facing descriptor, placed in the mapped class dictionary.
-
query()
-
refresh(*args, **kwargs)
-
save(*args, **kwargs)
-
save_or_update(*args, **kwargs)
-
set(**kwargs)
-
to_dict(deep={}, exclude=[])
- Generate a JSON-style nested dict/list structure from an object.
-
total
- Public-facing descriptor, placed in the mapped class dictionary.
-
update(*args, **kwargs)
-
static update_or_create(data, surrogate=True)
-
vat
-
class invoicing.model.Product(**kwargs)
Bases: elixir.entity.Entity
-
children
- Public-facing descriptor, placed in the mapped class dictionary.
-
delete(*args, **kwargs)
-
details
- Public-facing descriptor, placed in the mapped class dictionary.
-
expire(*args, **kwargs)
-
expunge(*args, **kwargs)
-
flush(*args, **kwargs)
-
from_dict(data)
- Update a mapped class with data from a JSON-style nested dict/list
structure.
-
static get(*args, **kwargs)
-
static get_by(*args, **kwargs)
-
id
- Public-facing descriptor, placed in the mapped class dictionary.
-
invoice_lines
- Public-facing descriptor, placed in the mapped class dictionary.
-
merge(*args, **kwargs)
-
name
- Public-facing descriptor, placed in the mapped class dictionary.
-
parent_id
- Public-facing descriptor, placed in the mapped class dictionary.
-
price
- Public-facing descriptor, placed in the mapped class dictionary.
-
query()
-
refresh(*args, **kwargs)
-
save(*args, **kwargs)
-
save_or_update(*args, **kwargs)
-
set(**kwargs)
-
to_dict(deep={}, exclude=[])
- Generate a JSON-style nested dict/list structure from an object.
-
update(*args, **kwargs)
-
static update_or_create(data, surrogate=True)
-
class invoicing.model.Client(**kwargs)
Bases: elixir.entity.Entity
-
abbreveated
- Public-facing descriptor, placed in the mapped class dictionary.
-
address
- Public-facing descriptor, placed in the mapped class dictionary.
-
billing_person
- Public-facing descriptor, placed in the mapped class dictionary.
-
country
- Public-facing descriptor, placed in the mapped class dictionary.
-
delete(*args, **kwargs)
-
email_address
- Public-facing descriptor, placed in the mapped class dictionary.
-
expire(*args, **kwargs)
-
expunge(*args, **kwargs)
-
flush(*args, **kwargs)
-
from_dict(data)
- Update a mapped class with data from a JSON-style nested dict/list
structure.
-
full_address
- Public-facing descriptor, placed in the mapped class dictionary.
-
static get(*args, **kwargs)
-
static get_by(*args, **kwargs)
-
group_id
- Public-facing descriptor, placed in the mapped class dictionary.
-
id
- Public-facing descriptor, placed in the mapped class dictionary.
-
invoices
- Public-facing descriptor, placed in the mapped class dictionary.
-
invoices_this_year
-
merge(*args, **kwargs)
-
name
- Public-facing descriptor, placed in the mapped class dictionary.
-
next_invoice_ident
-
phone_number
- Public-facing descriptor, placed in the mapped class dictionary.
-
query()
-
refresh(*args, **kwargs)
-
save(*args, **kwargs)
-
save_or_update(*args, **kwargs)
-
set(**kwargs)
-
to_dict(deep={}, exclude=[])
- Generate a JSON-style nested dict/list structure from an object.
-
update(*args, **kwargs)
-
static update_or_create(data, surrogate=True)
-
vat_number
- Public-facing descriptor, placed in the mapped class dictionary.
-
class invoicing.model.Company(**kwargs)
Bases: elixir.entity.Entity
-
address
- Public-facing descriptor, placed in the mapped class dictionary.
-
delete(*args, **kwargs)
-
email_address
- Public-facing descriptor, placed in the mapped class dictionary.
-
expire(*args, **kwargs)
-
expunge(*args, **kwargs)
-
flush(*args, **kwargs)
-
from_dict(data)
- Update a mapped class with data from a JSON-style nested dict/list
structure.
-
static get(*args, **kwargs)
-
static get_by(*args, **kwargs)
-
id
- Public-facing descriptor, placed in the mapped class dictionary.
-
logo
- Public-facing descriptor, placed in the mapped class dictionary.
-
merge(*args, **kwargs)
-
name
- Public-facing descriptor, placed in the mapped class dictionary.
-
phone_number
- Public-facing descriptor, placed in the mapped class dictionary.
-
query()
-
refresh(*args, **kwargs)
-
save(*args, **kwargs)
-
save_or_update(*args, **kwargs)
-
set(**kwargs)
-
to_dict(deep={}, exclude=[])
- Generate a JSON-style nested dict/list structure from an object.
-
update(*args, **kwargs)
-
static update_or_create(data, surrogate=True)
-
url
- Public-facing descriptor, placed in the mapped class dictionary.
-
vat_number
- Public-facing descriptor, placed in the mapped class dictionary.
-
class invoicing.model.User(**kwargs)
Bases: elixir.entity.Entity
Reasonably basic User definition.
Probably would want additional attributes.
-
company
- Public-facing descriptor, placed in the mapped class dictionary.
-
company_id
- Public-facing descriptor, placed in the mapped class dictionary.
-
created
- Public-facing descriptor, placed in the mapped class dictionary.
-
delete(*args, **kwargs)
-
display_name
- Public-facing descriptor, placed in the mapped class dictionary.
-
email_address
- Public-facing descriptor, placed in the mapped class dictionary.
-
expire(*args, **kwargs)
-
expunge(*args, **kwargs)
-
flush(*args, **kwargs)
-
from_dict(data)
- Update a mapped class with data from a JSON-style nested dict/list
structure.
-
static get(*args, **kwargs)
-
static get_by(*args, **kwargs)
-
groups
- Public-facing descriptor, placed in the mapped class dictionary.
-
merge(*args, **kwargs)
-
password
- Public-facing descriptor, placed in the mapped class dictionary.
-
permissions
-
query()
-
refresh(*args, **kwargs)
-
save(*args, **kwargs)
-
save_or_update(*args, **kwargs)
-
set(**kwargs)
-
to_dict(deep={}, exclude=[])
- Generate a JSON-style nested dict/list structure from an object.
-
update(*args, **kwargs)
-
static update_or_create(data, surrogate=True)
-
user_id
- Public-facing descriptor, placed in the mapped class dictionary.
-
user_name
- Public-facing descriptor, placed in the mapped class dictionary.
-
class invoicing.model.Group(**kwargs)
Bases: elixir.entity.Entity
An ultra-simple group definition.
-
created
- Public-facing descriptor, placed in the mapped class dictionary.
-
delete(*args, **kwargs)
-
display_name
- Public-facing descriptor, placed in the mapped class dictionary.
-
expire(*args, **kwargs)
-
expunge(*args, **kwargs)
-
flush(*args, **kwargs)
-
from_dict(data)
- Update a mapped class with data from a JSON-style nested dict/list
structure.
-
static get(*args, **kwargs)
-
static get_by(*args, **kwargs)
-
group_id
- Public-facing descriptor, placed in the mapped class dictionary.
-
group_name
- Public-facing descriptor, placed in the mapped class dictionary.
-
merge(*args, **kwargs)
-
query()
-
refresh(*args, **kwargs)
-
save(*args, **kwargs)
-
save_or_update(*args, **kwargs)
-
set(**kwargs)
-
to_dict(deep={}, exclude=[])
- Generate a JSON-style nested dict/list structure from an object.
-
update(*args, **kwargs)
-
static update_or_create(data, surrogate=True)
-
class invoicing.model.ClientGroup(**kwargs)
Bases: elixir.entity.Entity
-
static all_client_groups()
-
clients
- Public-facing descriptor, placed in the mapped class dictionary.
-
company
- Public-facing descriptor, placed in the mapped class dictionary.
-
company_id
- Public-facing descriptor, placed in the mapped class dictionary.
-
delete(*args, **kwargs)
-
expire(*args, **kwargs)
-
expunge(*args, **kwargs)
-
flush(*args, **kwargs)
-
from_dict(data)
- Update a mapped class with data from a JSON-style nested dict/list
structure.
-
static get(*args, **kwargs)
-
getClientGroups()
-
static get_by(*args, **kwargs)
-
id
- Public-facing descriptor, placed in the mapped class dictionary.
-
merge(*args, **kwargs)
-
name
- Public-facing descriptor, placed in the mapped class dictionary.
-
query()
-
refresh(*args, **kwargs)
-
save(*args, **kwargs)
-
save_or_update(*args, **kwargs)
-
set(**kwargs)
-
to_dict(deep={}, exclude=[])
- Generate a JSON-style nested dict/list structure from an object.
-
update(*args, **kwargs)
-
static update_or_create(data, surrogate=True)