Commit 3d2a0461 by Tuomas Riihimäki

Merge branch 'placeslotContinueBug' into 'master'

Placeslot continue bug

Jos laskun ensimmäinen tuote ei sisällä konepaikkoja, ei luoda millekkään laskun tuotteelle placeslotteja

See merge request !253
2 parents e839ce18 9b4fd595
......@@ -297,12 +297,12 @@ public class BillBean implements BillBeanLocal {
private void createPlaceslots(Bill bill) {
for (BillLine bl : bill.getBillLines()) {
if (bl == null) {
return;
continue;
}
Product prod = bl.getLineProduct();
if (prod == null || prod.getPlaces() == null || prod.getPlaces().isEmpty()) {
// Not a place product.
return;
continue;
}
int count = bl.getQuantity().intValue();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!