Skip to content

Commit

Permalink
Taxes to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroSuch committed Feb 20, 2018
1 parent 4b8e4e2 commit 7f80ec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/es/pharmashop/domain/Article.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Article {
String ean;
String description;
BigDecimal price;
BigDecimal taxes;
Integer taxes;
Integer stock;

public void applyFactorToStock(Float factor) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/es/pharmashop/persistence/ArticleMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public Article mapRow(ResultSet resultSet, int i) throws SQLException {
.ean(resultSet.getString(EAN_COLUMN))
.description(resultSet.getString(DESCRIPTION_COLUMN))
.price(resultSet.getBigDecimal(PUC_COLUMN))
.taxes(resultSet.getBigDecimal(TAXES_COLUMN))
.taxes(resultSet.getInt(TAXES_COLUMN))
.stock(resultSet.getInt(STOCK_COLUMN))
.build();

Expand Down

0 comments on commit 7f80ec9

Please sign in to comment.