Commit 2f290fa5 authored by Moul's avatar Moul

[fix] #233: round passed amount and amoundUD floats × by 100

parent 2c0329ce
...@@ -108,9 +108,9 @@ async def transaction_amount(amount, amountUD, allSources): ...@@ -108,9 +108,9 @@ async def transaction_amount(amount, amountUD, allSources):
if not (amount or amountUD or allSources): if not (amount or amountUD or allSources):
message_exit("--amount nor --amountUD nor --allSources is set") message_exit("--amount nor --amountUD nor --allSources is set")
if amount: if amount:
return amount * 100 return round(amount * 100)
if amountUD: if amountUD:
return amountUD * await UDValue().ud_value return round(amountUD * await UDValue().ud_value)
def check_transaction_values( def check_transaction_values(
......
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