endi.plugins.sap.models package¶
Subpackages¶
Submodules¶
endi.plugins.sap.models.sap module¶
- class endi.plugins.sap.models.sap.SAPAttestation(**kwargs)¶
Bases :
NodeAnnual fiscal attestation for Service à la Personne
Stores the attestation PDF within its Node.files attribute
- amount¶
- cesu_amount¶
- children¶
- property company¶
- created_at¶
- customer¶
- customer_id¶
- file_requirements¶
- files¶
- classmethod generate_bulk(*args, **kwargs) Tuple[List[Tuple[SAPAttestation, bool]], List[RejectInvoice]]¶
- get_cesu_sum()¶
- classmethod get_or_create(*args, **kwargs) Tuple[SAPAttestation, bool]¶
- id¶
- name¶
- parent_id¶
- statuses¶
- type_¶
- updated_at¶
- year¶
- class endi.plugins.sap.models.sap.SAPAttestationLine(company: Company, customer: Customer, category: str, product_id: Optional[int], date: date, quantity: float, unit: str, amount: Decimal)¶
Bases :
tupleIn-memory intermediary model for SAP attestations lines
They can be agregated easily through regular python addition / sum()
- property amount¶
Alias for field number 7
- property category¶
Alias for field number 2
- property company¶
Alias for field number 0
- property customer¶
Alias for field number 1
- property date¶
Alias for field number 4
- duplicate(**kwargs)¶
Duplicate, optionally with some different parameters provided as kwargs
- property is_service¶
Try to distinguish service (using hourly units) from other services
- property month_label¶
- property product_id¶
Alias for field number 3
- property quantity¶
Alias for field number 5
- property quantity_label¶
- classmethod sort_for_grouping(lines: List[SAPAttestationLine]) None¶
- property unit¶
Alias for field number 6
Module contents¶
- endi.plugins.sap.models.includeme(config)¶