Commit 6e4224a4 authored by Kuzmenko Pavel's avatar Kuzmenko Pavel

fix(TIE): #7 Remove 'withVAT' field from registrationFee

parent 6e27c944
Pipeline #20575 passed with stages
in 59 seconds
......@@ -78,13 +78,12 @@ class Calculator:
tax_values = self.calculate('valueAddedTaxIncluded')
# vat_percent = self.current_config['constants'].get('VATPercent', 0)
for var_code in self.current_config['procedures']:
data[var_code.name] = {}
value = values.get(var_code.name, None)
min_value = min_values.get(var_code.name, None)
with_vat = False
if tax_values.get(var_code.name, None):
with_vat = True
if with_vat := tax_values.get(var_code.name, None):
data[var_code.name]['withVAT'] = with_vat
# TODO:
# Vasyl.Skab https://gitlab.prozorro.sale/prozorro-sale/billing/-/merge_requests/3/
# I removed the logic with calculating the cost with taxes from the TK.
......@@ -96,10 +95,8 @@ class Calculator:
if min_value and value and min_value > value:
value = min_value
data[var_code.name] = {}
data[var_code.name]['amount'] = value
data[var_code.name]['description'] = var_code.description
data[var_code.name]['withVAT'] = with_vat
if self.current_config['exceptions']:
data['needManualCheck'] = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment