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:commandButtonrendered="#{not bill.expired and not foodWaveView.selectedFoodWave.paymentOver}"value="#{i18n['bill.markPaid']}"actionListener="#{foodWaveView.markBillPaid}"update=":billList :accountEventList"/>
<p:commandButtonrendered="#{bill.expired or foodWaveView.selectedFoodWave.paymentOver}"value="#{i18n['bill.markPaid']}"actionListener="#{foodWaveView.markBillPaid}"update=":billList :accountEventList">
<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"/>