endi.models.third_party package

Subpackages

Submodules

endi.models.third_party.customer module

Customer model

class endi.models.third_party.customer.Customer(**kwargs)

Bases : BusinessMetricsMixin, ThirdParty

Customer model

additional_address
address
archived
cancelinvoices
classmethod check_project_id(customer_id, project_id)

Check if the project and the customer are linked

Paramètres:
  • customer_id (int) – The customer id

  • project_id (int) – The project id

Renvoie:

True if the customer is attached to the project

Type renvoyé:

bool

children
city
city_code
civilite
code
company
company_id
company_name
compte_cg
compte_tiers
country
country_code
created_at
email
estimations
fax
file_requirements
files
firstname
fk_filter_field = 'customer_id'
function
get_project_ids()
has_tasks()
has_tva_on_margin_business()
id
invoices
is_deletable()

Return True if this project could be deleted

label
lastname
mobile
name
parent: Any
parent_id
phone
projects
registration
source_company
source_company_id
statuses
tasks
tva_intracomm
type
type_
updated_at
urssaf_data
zip_code

endi.models.third_party.supplier module

Supplier model

class endi.models.third_party.supplier.Supplier(**kwargs)

Bases : ThirdParty

Supplier model

additional_address
address
archived
children
city
city_code
civilite
code
company
company_id
company_name
compte_cg
compte_tiers
country
country_code
created_at
email
fax
file_requirements
files
firstname
function
get_expenselines()
get_invoices()
get_orders(waiting_only=False, invoiced_only=False, pending_invoice_only=False, internal=True)
has_orders()
id
invoices
is_deletable()

Return True if this supplier could be deleted

label
lastname
mobile
name
orders
parent: Any
parent_id
phone
registration
source_company
source_company_id
statuses
tva_intracomm
type
type_
updated_at
zip_code

endi.models.third_party.third_party module

ThirdParty model

class endi.models.third_party.third_party.ThirdParty(**kwargs)

Bases : Node

Metadata pour un tiers (client, fournisseur)

additional_address
address
archived
children
city
city_code
civilite
code
company_id
company_name
compte_cg
compte_tiers
country
country_code
created_at
email
extra_statuses() Iterable[StatusLogEntry]

Can be overriden to provide additionan StatusLogEtnries

fax
file_requirements
files
firstname
classmethod from_company(source_company: Company, owner_company: Company) ThirdParty

Build up a Third party instance from a company :param obj source_company: The company we want to create a ThirdParty from :param obj owner_company: Which company the ThirdParty belongs to

Renvoie:

A new ThirdParty instance

property full_address

Return the third_party address formatted in french format

function
classmethod get_by_label(label: str, company: Company, case_sensitive: bool = False)
get_company_id()
Renvoie:

the id of the company this third_party belongs to

get_general_account(prefix='')
get_name()
get_third_party_account(prefix='')
id
is_company()

Return True if this third_party is a company

is_deletable()

Return True if this third_party could be deleted

is_internal()
label
classmethod label_query()
lastname
mobile
name
parent: Any
parent_id
phone
registration
source_company
source_company_id
statuses
tva_intracomm
type
type_
updated_at
zip_code
endi.models.third_party.third_party.set_third_party_label(mapper, connection, target)

Set the label of the given third_party

endi.models.third_party.third_party.start_listening()

Module contents

The third_party package entry