~andreafeletto/flussimetro

0582f234e825bfab27ea46472cd163aefd5a3f61 — Andrea Feletto 1 year, 1 month ago 2eb8dc0
fix amount parsing logic
1 files changed, 2 insertions(+), 2 deletions(-)

M lib/models.dart
M lib/models.dart => lib/models.dart +2 -2
@@ 37,9 37,9 @@ class FlowEntry {
    this.month,
  }) {
    final parts = amount.split('.');
    amountInCents = int.parse(parts[0]);
    amountInCents = int.parse(parts[0]) * 100;
    if (parts.length > 1) {
      amountInCents += int.parse(parts[1]) * 100;
      amountInCents += int.parse(parts[1]);
    }
  }