Commit 30f73abb by Javier

Errata Cálculo de IVA

parent b693ec86
...@@ -167,7 +167,7 @@ def add_balance(phone_number: str, quantity: float, tax: float = 0.21, descript ...@@ -167,7 +167,7 @@ def add_balance(phone_number: str, quantity: float, tax: float = 0.21, descript
""" """
quantity = round(quantity * (1-tax), 2) quantity = round(quantity / (1 + tax), 2)
result = subprocess.check_output( result = subprocess.check_output(
['php', pathlib.Path(mbapi_path, 'add_balance.php'), ['php', pathlib.Path(mbapi_path, 'add_balance.php'),
......
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