Commit 865f949a by Tuukka Kivilahti

autoproduct for bill

1 parent 53977e2a
......@@ -269,7 +269,7 @@ public class BillBean implements BillBeanLocal {
if(product.isUsershopAutoproduct()) {
boolean containsAutoproduct = false;
for(BillLine line : bill.getBillLines()) {
if(line.getLineProduct().equals(product) && line.getQuantity().compareTo(BigDecimal.ONE) >= 0) {
if(line.getLineProduct() != null && line.getLineProduct().equals(product) && line.getQuantity().compareTo(BigDecimal.ONE) >= 0) {
containsAutoproduct = true;
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!