try {
BigDecimal oCredits = oSrvFlv.credits();
oSes = DAO.getAdminSession("CreditBurner");
oSes.autoCommit(false);
CustomerAccount oAcc = new CustomerAccount(oSes.getDms(), sCustAcc);
oAcc.burnCredits(oSes, oCredits);
oAcc.save(oSes);
DAO.log(oSes, oAcc.getDocument(), CustomerAccount.class, "BURN CREDITS", AtrilEvent.Level.INFO, oCredits.toString()+";"+oSrvFlv.uid()+";"+sUser);
switch (oAcc.getCreditsLeft().signum()) {
case 0:
DAO.log(oSes, oAcc.getDocument(), CustomerAccount.class, "NO CREDITS LEFT", AtrilEvent.Level.WARNING, "0;"+oSrvFlv.uid()+";"+sUser);