19 package org.turro.erp.entity;
21 import javax.persistence.*;
22 import org.turro.string.Strings;
29 public class Breakdown implements java.io.Serializable {
32 @GeneratedValue(strategy=GenerationType.IDENTITY)
33 @Column(name=
"IDENTIFIER")
38 private Double quantity, price;
40 private String description;
47 this.description = description;
63 this.orderRef = orderRef;
79 this.quantity = quantity;
85 return Strings.isBlank(description);
89 if(price ==
null)
return 0.0d;
90 return (quantity ==
null || quantity == 0.0) ? price : quantity * price;
void setOrderRef(int orderRef)
void setDescription(String description)
void setPrice(Double price)
void setQuantity(Double quantity)