Changed discountedSellPrice from calculated to regular property.
This commit is contained in:
@@ -93,6 +93,20 @@ public class Article {
|
||||
@Column(length=12)
|
||||
private Integer discount;
|
||||
|
||||
@Stereotype("MONEY")
|
||||
@Calculation("(100 - discount) / 100 * originalPrice")
|
||||
@Column(length=8)
|
||||
@ReadOnly
|
||||
private BigDecimal discountedSellPrice;
|
||||
|
||||
public BigDecimal getDiscountedSellPrice() {
|
||||
return discountedSellPrice;
|
||||
}
|
||||
|
||||
public void setDiscountedSellPrice(BigDecimal discountedSellPrice) {
|
||||
this.discountedSellPrice = discountedSellPrice;
|
||||
}
|
||||
|
||||
public String getOid() {
|
||||
return oid;
|
||||
}
|
||||
@@ -213,7 +227,7 @@ public class Article {
|
||||
this.discount = discount;
|
||||
}
|
||||
|
||||
@Stereotype("MONEY")
|
||||
/*@Stereotype("MONEY")
|
||||
@Calculation("(100 - discount) / 100 * originalPrice")
|
||||
@Column(length=8)
|
||||
public BigDecimal getDiscountedSellPrice() {
|
||||
@@ -224,5 +238,5 @@ public class Article {
|
||||
return BigDecimal.ZERO;
|
||||
}
|
||||
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user