Examples of burnCredits()


Examples of com.zesped.model.CustomerAccount.burnCredits()

      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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.