diff --git a/lib/entities/format_amount.dart b/lib/entities/format_amount.dart index 88e8c1651..7dd6c0c8a 100644 --- a/lib/entities/format_amount.dart +++ b/lib/entities/format_amount.dart @@ -1,7 +1,7 @@ String formatAmount(String amount) { - if (!amount.contains('.')) { + if ((!amount.contains('.'))&&(!amount.contains(','))) { return amount + '.00'; - } else if (amount.endsWith('.')) { + } else if ((amount.endsWith('.'))||(amount.endsWith(','))) { return amount + '00'; } return amount;