Skip to content
Snippets Groups Projects
Commit 2f290fa5 authored by Moul's avatar Moul
Browse files

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

parent 2c0329ce
No related branches found
No related tags found
1 merge request!146Merge dev into master branch to complete v0.8.0 development cycle
......@@ -108,9 +108,9 @@ async def transaction_amount(amount, amountUD, allSources):
if not (amount or amountUD or allSources):
message_exit("--amount nor --amountUD nor --allSources is set")
if amount:
return amount * 100
return round(amount * 100)
if amountUD:
return amountUD * await UDValue().ud_value
return round(amountUD * await UDValue().ud_value)
def check_transaction_values(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment