logbean.logMessage(SecurityLogType.bill,permbean.getCurrentUser(),"Trying to pay bill with accountevents, and there is no saldo, billid: ",bill.getId());
thrownewBillExceptionNotEnoughtCredits("There is not enought credits to pay. , BillID: "+bill.getId());
<p:outputPanelrendered="#{bill.user.accountBalance ge bill.totalPrice}">
<p:commandButtonrendered="#{not bill.expired and not foodWaveView.selectedFoodWave.paymentOver}"id="buyCreditsButton"onerror="location.reload(true);"value="#{i18n['bill.markPaid.credits']}"actionListener="#{foodWaveView.markBillPaidWithCredits}"update=":billList :accountEventList"/>
<p:commandButtonrendered="#{bill.expired or foodWaveView.selectedFoodWave.paymentOver}"value="#{i18n['bill.markPaid.credits']}"actionListener="#{foodWaveView.markBillPaidWithCredits}"update=":billList :accountEventList">
<p:commandButtonrendered="#{not bill.expired and not foodWaveView.selectedFoodWave.paymentOver}"value="#{i18n['bill.markPaid.cash']}"actionListener="#{foodWaveView.markBillPaid}"update=":billList :accountEventList"/>
<p:commandButtonrendered="#{bill.expired or foodWaveView.selectedFoodWave.paymentOver}"value="#{i18n['bill.markPaid.cash']}"actionListener="#{foodWaveView.markBillPaid}"update=":billList :accountEventList">
<p:commandButtonrendered="#{foodWaveFoodView.totalPrice le userView.selectedUser.accountBalance and not empty cc.attrs.selectCreditsAction}"action="#{cc.attrs.selectCreditsAction}"value="#{i18n[cc.attrs.commitCreditsValue]}"ajax="false"/>
@@ -163,6 +168,12 @@ foodWave.closeNow = Close now
foodWave.deliveredCount=Luovutetut
foodWave.openNow=Open now
foodshop.buyAndPayWithCredits=Varaa ja maksa krediiteill\u00E4
foodshop.buyProceedToPay=Varaa ja siirry maksamaan
foodshop.canBuyToCounter=Voit maksaa t\u00E4m\u00E4n ruokatilauksen my\u00F6s infotiskille. Mik\u00E4li haluat tehd\u00E4 n\u00E4in, voit sulkea t\u00E4m\u00E4n ikkunan ja tulla infotiskille maksamaan tilauksen.
foodshop.buyAndPayWithCredits=Reserve and buy with credits
foodshop.buyFromCounter=Pay at info
foodshop.buyFromInternet=Pay at Internet
foodshop.buyProceedToPay=Reserve and continue to buy
foodshop.canBuyToCounter=You can buy this bill on infodesk. If you want to buy this order at the infodesk, you can close this window and come to infodesk to buy this order.
foodshop.total=Total
foodwave.buyInPrice=Buy In Price
foodwave.cancelOrder=Cancel
foodwave.closed=Foodwave is closed
foodwave.foodwaveBuyInPrice=Total buy in price
foodwave.foodwaveLastBillPayTime=Last payments time
foodshop.buyAndPayWithCredits=Varaa ja maksa krediiteill\u00E4
foodshop.buyFromCounter=Maksa infossa
foodshop.buyFromInternet=Maksa Internetiss\u00E4
foodshop.buyProceedToPay=Varaa ja siirry maksamaan
foodshop.canBuyToCounter=Voit maksaa t\u00E4m\u00E4n ruokatilauksen my\u00F6s infotiskille. Mik\u00E4li haluat tehd\u00E4 n\u00E4in, voit sulkea t\u00E4m\u00E4n ikkunan ja tulla infotiskille maksamaan tilauksen.