Package com.zesped.model

Examples of com.zesped.model.BillNote.save()


        if (bill.isOpen()) {
          final String sBillEmployeeUUID = (bill.getEmployeeUuid()==null ? "" : bill.getEmployeeUuid());
          if (sBillEmployeeUUID.length()==0) {
            Log.out.debug("Assigning BillNote "+bill.id()+" to employee "+sBeanEmployeeUUID);
            bill.setEmployee(txpy.employees(getSession()).seek(getSession(), sBeanEmployeeUUID));
            bill.save(getSession());
            setBillNoteId(bill.id());
          } else if (sBillEmployeeUUID.equals(sBeanEmployeeUUID)) {
            setBillNoteId(bill.id());
          } else {
            errors.add("empleado", new LocalizableError("com.zesped.action.EditBillNote.employeeConceptMismatch"));         
View Full Code Here


      oBln.setProcessDate(new Date());
      if (bSettle) {
        oBln.settle(getSession(), getSessionAttribute("user_uuid"));
      } else {
        oBln.computeSettling(getSession());
        oBln.save(getSession());
      }
      disconnect();
    } catch (StorageException xcpt) {
      Log.out.error("FastEditBillNote.write() "+sNickN+" "+xcpt.getClass()+" "+xcpt.getMessage());
    } finally {
View Full Code Here

    try {
      connect(sNickN, sPassw);
      Dms oDms = getSession().getDms();
      BillNote oBln = new BillNote(oDms, getId());
      oBln.isOpen(true);
      oBln.save(getSession());
      DAO.log(getSession(), oBln.getDocument(), BillNote.class, "REOPEN BILLNOTE", AtrilEvent.Level.INFO, oBln.id()+";"+oBln.getTaxPayer());
      disconnect();
    } catch (Exception xcpt) {
      Log.out.error("FastEditBillNote.write() "+sNickN+" "+xcpt.getClass()+" "+xcpt.getMessage());
    } finally {
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.