Changed discountedSellPrice from calculated to regular property.

This commit is contained in:
Socrates
2020-06-10 23:06:05 +02:00
parent be7b319f8b
commit 2f16f8dcb5
2 changed files with 16 additions and 2 deletions

View File

@@ -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.