@@ -305,12 +305,19 @@ public class BillBean implements BillBeanLocal {
...
@@ -305,12 +305,19 @@ public class BillBean implements BillBeanLocal {
return;
return;
}
}
intcount=bl.getQuantity().intValue();
intcount=bl.getQuantity().intValue();
Datenow=newDate();
Datenow=newDate();
/*
THIS PLACE IS NOT ON HERE
now it is possibly to create and pay bill, but not receive any placeslots!!
long reserveLimit = eventbean.getPropertyLong(LanEventPropertyKey.RESERVE_UNPAID_SLOT_PERCENT);
long reserveLimit = eventbean.getPropertyLong(LanEventPropertyKey.RESERVE_UNPAID_SLOT_PERCENT);
if (count * 100 / prod.getPlaces().size() > reserveLimit) {
if (count * 100 / prod.getPlaces().size() > reserveLimit) {
long limitCount = prod.getPlaces().size() * reserveLimit / 100;
long limitCount = prod.getPlaces().size() * reserveLimit / 100;
logbean.sendMessage(MoyaEventType.BILL_INFO, bill.getUser(), "User created bill ", bill.getId(), " for product '", prod.getName(), "' for '", count, "' products, which is bigger than reservation limit. '", limitCount, "', (", reserveLimit, "%)");
logbean.sendMessage(MoyaEventType.BILL_INFO, bill.getUser(), "User created bill ", bill.getId(), " for product '", prod.getName(), "' for '", count, "' products, which is bigger than reservation limit. '", limitCount, "', (", reserveLimit, "%)");