Package com.zesped.model

Examples of com.zesped.model.TaxPayer.accounts()


    final String sFormerId = getParam("accountingAccount.id","");
    try {
      connect(getSessionAttribute("nickname"), getSessionAttribute("password"));
      TaxPayer oTxpr = new TaxPayer(getSession().getDms(), getParam("taxPayer"));
      try {
        AccountingAccount oAaac = oTxpr.accounts(getSession()).seek(getSession(), getParam("accountingAccount.code"));
        if (!sFormerId.equals(oAaac.id()))
          addError(new LocalizableError("com.zesped.action.SaveAccountingAccount.code.valueDuplicated"));
      } catch (ElementNotFoundException enfe) { }
      disconnect();
    } catch (Exception xcpt) {
View Full Code Here


            oAacc.setDescription(getParam("accountingAccount.description"));
            oAacc.setActive(getParam("accountingAccount.active","1").equals("1"));
        } else {
            Dms oDms = getSession().getDms();
            TaxPayer oTxpr = new TaxPayer(getSession().getDms(), getParam("taxPayer"));
            Document oDoca = oDms.newDocument(oDms.getDocumentType("AccountingAccount"), oTxpr.accounts(getSession()).getDocument());
            oDoca.save("");           
            oAacc = new AccountingAccount(oDoca);
            oAacc.setCode(getParam("accountingAccount.code"));
            oAacc.setDescription(getParam("accountingAccount.description"));
            oAacc.setActive(getParam("accountingAccount.active","1").equals("1"));
View Full Code Here

      ArrayList<Ticket> oTcs = oBln.tickets(getSession());
      int nTcs = oTcs.size();
      Log.out.debug("FastEditBillNote "+String.valueOf(nTcs)+" tickets found");
      TaxPayer oTxp = oBln.taxPayer(oDms);
      employees = oTxp.employees(getSession()).list(getSession());
      accaccounts = oTxp.accounts(getSession()).list(getSession());
      employeeName = oBln.getEmployeeName();
      employeeUuid = oBln.getEmployeeUuid();
      for (Ticket oTck : oTcs) {
        Log.out.debug("Reading ticket "+oTck.id());
        ticketIds.add(oTck.id());
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.