|
|
@ -45,6 +45,9 @@ public class OrderItem {
|
|
|
|
@Column(name = "DESCRIPTION")
|
|
|
|
@Column(name = "DESCRIPTION")
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name = "TOTALINVOICE", precision = 15, scale = 4)
|
|
|
|
|
|
|
|
private BigDecimal totalInvoice;
|
|
|
|
|
|
|
|
|
|
|
|
@ManyToOne(fetch = FetchType.EAGER)
|
|
|
|
@ManyToOne(fetch = FetchType.EAGER)
|
|
|
|
@JoinColumn(name = "REQUIREMENT_ITEM_ID")
|
|
|
|
@JoinColumn(name = "REQUIREMENT_ITEM_ID")
|
|
|
|
private RequirementItem reqItem;
|
|
|
|
private RequirementItem reqItem;
|
|
|
@ -68,6 +71,7 @@ public class OrderItem {
|
|
|
|
this.munit = reqItem.getMunit();
|
|
|
|
this.munit = reqItem.getMunit();
|
|
|
|
this.total = reqItem.getTotal();
|
|
|
|
this.total = reqItem.getTotal();
|
|
|
|
this.description = reqItem.getDescription();
|
|
|
|
this.description = reqItem.getDescription();
|
|
|
|
|
|
|
|
this.totalInvoice = BigDecimal.ZERO;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int getId() {
|
|
|
|
public int getId() {
|
|
|
@ -142,6 +146,16 @@ public class OrderItem {
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public BigDecimal getTotalInvoice()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return totalInvoice;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setTotalInvoice(BigDecimal totalInvoice)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.totalInvoice = totalInvoice;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public RequirementItem getReqItem() {
|
|
|
|
public RequirementItem getReqItem() {
|
|
|
|
return reqItem;
|
|
|
|
return reqItem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|