endi.compute.sale_product package¶
Submodules¶
endi.compute.sale_product.ht_mode module¶
endi.compute.sale_product.supplier_ht_mode module¶
- class endi.compute.sale_product.supplier_ht_mode.SaleProductSupplierHtComputer(product, config)¶
Bases :
objectComputer class used to compute the values based on suplier_ht value
flat_cost (supplier_ht) -> cost_price -> intermediate price -> unit_ht -> unit_ttc
- cost_price()¶
Compute the cost price of the given self.product
- Renvoie:
The result in 10*5 format
- Type renvoyé:
- flat_cost()¶
Return the base cost of this sale product
- Renvoie:
The result in 10^5 format
- Type renvoyé:
- get_general_overhead()¶
- get_margin_rate()¶
- intermediate_price()¶
Compute the intermediate price of a work item
3/ Prix intermédiaire = Prix de revient / ( 1 - ( Coefficients marge + aléas + risques ) )
- price_with_contribution(base_price=None) float¶
Apply contribution to the base_price (or intermediate_price)
- price_with_insurance(base_price=None) float¶
Apply insurance to the base_price (or price_with_contribution)
- unit_ht()¶
Compute the ht value for the given work item
- unit_ttc()¶
Compute the ttc value for the given sale product
- class endi.compute.sale_product.supplier_ht_mode.SaleProductWorkItemSupplierHtComputer(product, config)¶
Bases :
SaleProductSupplierHtComputer- full_cost_price()¶
- full_flat_cost()¶
- full_intermediate_price()¶
- full_price_with_contribution(base_price=None)¶
- full_price_with_insurance(base_price=None)¶
- get_margin_rate()¶
endi.compute.sale_product.ttc_mode module¶
- class endi.compute.sale_product.ttc_mode.SaleProductTtcComputer(product, config)¶
Bases :
objectComputer used in ttc mode
- cost_price()¶
- flat_cost()¶
- intermediate_price()¶
- price_with_contribution(base_price=None)¶
- price_with_insurance(base_price=None)¶
- unit_ht(contribution=None)¶
- unit_ttc()¶
Compute the ttc value for the given sale product