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