changed percentage to per one (-)
This commit is contained in:
parent
64384876a4
commit
d672eee762
|
@ -81,8 +81,8 @@ class MontrealCustomCatalog(Catalog):
|
|||
items_list.append(item_description)
|
||||
general_chapters.append(Chapter('D_services', items_list))
|
||||
|
||||
design_allowance = float(entry['Z_allowances_overhead_profit']['Z10_design_allowance']['#text'])
|
||||
overhead_and_profit = float(entry['Z_allowances_overhead_profit']['Z10_overhead_and_profit']['#text'])
|
||||
design_allowance = float(entry['Z_allowances_overhead_profit']['Z10_design_allowance']['#text']) / 100
|
||||
overhead_and_profit = float(entry['Z_allowances_overhead_profit']['Z10_overhead_and_profit']['#text']) / 100
|
||||
_capital_cost = CapitalCost(general_chapters, design_allowance, overhead_and_profit)
|
||||
|
||||
return _capital_cost
|
||||
|
@ -135,7 +135,7 @@ class MontrealCustomCatalog(Catalog):
|
|||
hvac = float(archetype['incomes']['subsidies']['hvac_subsidy']['#text'])
|
||||
photovoltaic_system = float(archetype['incomes']['subsidies']['photovoltaic_subsidy']['#text'])
|
||||
electricity_exports = float(archetype['incomes']['energy_exports']['electricity']['#text']) / 1000 / 3600
|
||||
reduction_tax = float(archetype['incomes']['tax_reduction']['#text'])
|
||||
reduction_tax = float(archetype['incomes']['tax_reduction']['#text']) / 100
|
||||
income = Income(construction_subsidy=construction,
|
||||
hvac_subsidy=hvac,
|
||||
photovoltaic_subsidy=photovoltaic_system,
|
||||
|
|
|
@ -26,7 +26,7 @@ class CapitalCost:
|
|||
@property
|
||||
def design_allowance(self):
|
||||
"""
|
||||
Get design allowance in percentage
|
||||
Get design allowance in percentage (-)
|
||||
:return: float
|
||||
"""
|
||||
return self._design_allowance
|
||||
|
@ -34,7 +34,7 @@ class CapitalCost:
|
|||
@property
|
||||
def overhead_and_profit(self):
|
||||
"""
|
||||
Get overhead profit in percentage
|
||||
Get overhead profit in percentage (-)
|
||||
:return: float
|
||||
"""
|
||||
return self._overhead_and_profit
|
||||
|
|
|
@ -56,7 +56,7 @@ class Income:
|
|||
@property
|
||||
def reductions_taxes(self) -> Union[None, float]:
|
||||
"""
|
||||
Get reduction in taxes in percentage
|
||||
Get reduction in taxes in percentage (-)
|
||||
:return: None or float
|
||||
"""
|
||||
return self._reductions_taxes
|
||||
|
|
Loading…
Reference in New Issue
Block a user