endi.models.third_party package¶
Subpackages¶
- endi.models.third_party.services package
- Submodules
- endi.models.third_party.services.customer module
CustomerServiceCustomerService.check_project_id()CustomerService.count_tasks()CustomerService.get_general_account()CustomerService.get_project_ids()CustomerService.get_tasks()CustomerService.get_third_party_account()CustomerService.get_total_estimated()CustomerService.get_total_income()CustomerService.has_tva_on_margin_business()
- endi.models.third_party.services.supplier module
- endi.models.third_party.services.third_party module
- Module contents
Submodules¶
endi.models.third_party.customer module¶
Customer model
- class endi.models.third_party.customer.Customer(**kwargs)¶
Bases :
BusinessMetricsMixin,ThirdPartyCustomer model
- additional_address¶
- address¶
- archived¶
- cancelinvoices¶
- classmethod check_project_id(customer_id, project_id)¶
Check if the project and the customer are linked
- 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_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 :
ThirdPartySupplier 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_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 :
NodeMetadata 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¶
- 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_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