Commit fc9271d2 by Tuomas Riihimäki

Changed vat default value to 0 from 0.22 in BillLine

1 parent a6564930
......@@ -32,7 +32,7 @@ import javax.persistence.Version;
@NamedQuery(name = "BillLine.findByVat", query = "SELECT b FROM BillLine b WHERE b.vat = :vat") })
public class BillLine implements ModelInterface {
private static final long serialVersionUID = 1L;
private static final BigDecimal DEFAULT_VAT = new BigDecimal(0.22);
private static final BigDecimal DEFAULT_VAT =BigDecimal.ZERO;
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name = "bill_lines_id", nullable = false)
......@@ -47,7 +47,7 @@ public class BillLine implements ModelInterface {
@Column(name = "unit_price", nullable = false, precision=24,scale=4)
private BigDecimal unitPrice;
@Column(name = "vat", nullable = false,precision=3,scale=2, columnDefinition = "numeric(3,2) default 0.22")
@Column(name = "vat", nullable = false,precision=3,scale=2)
private BigDecimal vat=DEFAULT_VAT;
@JoinColumn(name = "bills_id", referencedColumnName = "bills_id")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!