Skip to content

Commit

Permalink
fix: defaults for amounts in fin operations
Browse files Browse the repository at this point in the history
  • Loading branch information
extern-maksim-kuzmin1 committed Mar 15, 2024
1 parent 54064e1 commit 271ce6f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ public class FinancialOperation extends AbstractTimeStampedEntity implements Com
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
private LocalDate date;
private String currency;
private BigDecimal amount;
private BigDecimal amount = BigDecimal.ZERO;
@JsonProperty("amount_usd")
private BigDecimal amountUsd;
private BigDecimal amountUsd = BigDecimal.ZERO;
@JsonProperty("amount_rub")
private BigDecimal amountRub;
private BigDecimal amountRub = BigDecimal.ZERO;
private String bank;
@JsonProperty("bank_account")
private String bankAccount;
Expand Down

0 comments on commit 271ce6f

Please sign in to comment.