Skip to content

Commit

Permalink
Opp amount but in CrmImportEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
brmeyer committed Jul 12, 2023
1 parent eea78df commit 6151f11
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,10 @@ private static BigDecimal getAmount(CaseInsensitiveMap<String> data, String colu
if (!data.containsKey(columnName)) {
return null;
}
return new BigDecimal(data.get(columnName).replace("$", "").replace(",", "")
.trim()).setScale(2, RoundingMode.CEILING);
String n = data.get(columnName);
if (Strings.isNullOrEmpty(n)) {
return null;
}
return new BigDecimal(n.replace("$", "").replace(",", "").trim()).setScale(2, RoundingMode.CEILING);
}
}

0 comments on commit 6151f11

Please sign in to comment.