Examples of TaxPayer


Examples of com.zesped.model.TaxPayer

 
  public Collection<Employee> getEmployees() throws StorageException {
    Collection<Employee> oEmps;
    try {
      connect(getSessionAttribute("nickname"), getSessionAttribute("password"));
      TaxPayer oTxp = new TaxPayer(getSession().getDms().getDocument(getRecipientTaxPayer()));
      oEmps = oTxp.employees(getSession()).list(getSession());
    } catch (Exception xcpt) {
      Log.out.error(xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
      oEmps = new ArrayList<Employee>();
    } finally {
      disconnect();     
View Full Code Here

Examples of com.zesped.model.TaxPayer

    try {
      setRecipientTaxPayer(getSessionAttribute("taxpayer_docid"));
      setEmployee(getSessionAttribute("employee_uuid"));
       if (getSessionAttribute("incoming_deposits")==null) {
         connect(getSessionAttribute("nickname"), getSessionAttribute("password"));
         TaxPayer oTxp = new TaxPayer (getSession().getDms(), getSessionAttribute("taxpayer_docid"));
         setSessionAttribute("incoming_deposits", oTxp.incomingDeposits(getSession()));
         disconnect();
      }
      return new ForwardResolution(FORM);
    } catch (Exception e) {
      Log.out.error("CaptureBillNote.form() "+e.getClass().getName()+" "+e.getMessage());
View Full Code Here

Examples of com.zesped.model.TaxPayer

        disconnect();
        DepositToZespedBridge oDzb = new DepositToZespedBridge(CaptureService.INVOICES, lDepositId, getSessionAttribute("user_uuid"), sFlavor, sTaxPayerId, sBiller, sRecipient);
        oDzb.start();
        Log.out.debug("Done attaching sides");
      } else {
        TaxPayer txpy = new TaxPayer(getSession().getDms(), sTaxPayerId);
        BillNote bill = txpy.billnotes(getSession()).forConcept(getSession(), sConcept, sEmployee);
        Ticket tckt = bill.createTicket(getSession(), new AccountingAccount(getSession(), sAccount));
        disconnect();
        DepositToZespedBridge oDzb = new DepositToZespedBridge(CaptureService.BILLNOTES, lDepositId, Long.parseLong(tckt.getId()));
        oDzb.start();
        Log.out.debug("Done attaching sides");
View Full Code Here

Examples of com.zesped.model.TaxPayer

            close();
          }         
    } else if (sTid.length()>0) {
      try {
          connect();
          TaxPayer oTxp = new TaxPayer(getSession().getDms(), sTid);
        selectedTaxPayers.add(new NameValuePair(oTxp.getBusinessName(), sTid));         
          disconnect();
        } catch (Exception xcpt) {
          Log.out.error(xcpt.getMessage(), xcpt);
        } finally {
          close();
View Full Code Here

Examples of com.zesped.model.TaxPayer

    final String txpr = getParam("taxpayer","");

    try {
      connect();
      if (txpr.length()>0) {
        taxpr = new TaxPayer(getSession().getDms(), txpr);
        employees = taxpr.employees(getSession()).list(getSession());
      } else {
        CustomerAccount cacc = new CustomerAccount(getSession().getDms(), getSessionAttribute("customer_account_docid"));
        employees = new ArrayList<Employee>();
        bnames = new HashMap<String,String>();
View Full Code Here

Examples of com.zesped.model.TaxPayer

    final String txpr = getParam("taxpayer","");

    try {
      connect();
      TaxPayer taxpr = new TaxPayer(getSession().getDms(), txpr);
      taxpr.refreshCounters(getSession());
      taxpr.save(getSession());
      bizname = taxpr.getBusinessName();
      pending = taxpr.getPendingInvoicesCount();
      processed = taxpr.getProcessedInvoicesCount();
      approved = taxpr.getApprovedInvoicesCount();
      total = taxpr.getTotalInvoicesCount();
      disconnect();
      } catch (Exception xcpt) {
        Log.out.error("CountInvoices.form() "+xcpt.getClass().getName()+" "+xcpt.getMessage(), xcpt);
      } finally {
        close();
View Full Code Here

Examples of com.zesped.model.TaxPayer

    if (iMaxRows>0) {
      Boolean bOpen = (sOpen.length()==0 ? null : sOpen.equals("1") ? Boolean.TRUE : Boolean.FALSE);     
      try {
        connect(sNickN, sPassw);
        Dms oDms = getSession().getDms();
        aLst = new TaxPayer(oDms, sTaxPayer).queryBillNotes(getSession(), bOpen, sEmployee, sConcept, sSearchStr, iMaxRows, iOffset);       
        disconnect();
      } catch (Exception xcpt) {
        Log.out.error("QueryTickets "+sNickN+" "+xcpt.getClass()+" "+xcpt.getMessage());
      } finally {
        close();
View Full Code Here

Examples of com.zesped.model.TaxPayer

      vat = oBln.getVat();
      concept = oBln.getConcept();
      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

Examples of com.zesped.model.TaxPayer

      CustomerAccount cacc = new CustomerAccount(getSession().getDms(), getSessionAttribute("customer_account_docid"));
      if (role.length()==0 || role.equalsIgnoreCase("admin")) setAdmins(cacc.getAdmins(getSession()));
      if (role.length()==0 || role.equalsIgnoreCase("user" )) setUsers(cacc.getUsers(getSession()));
      if (role.length()==0 || role.equalsIgnoreCase("guest")) setGuests(cacc.getGuests(getSession()));
      if (txpr.length()>0) {
        taxpr = new TaxPayer(getSession().getDms(), txpr);
        filterMembersByTaxPayer(getAdmins());
        filterMembersByTaxPayer(getUsers());
        filterMembersByTaxPayer(getGuests());
      }
      disconnect();
View Full Code Here

Examples of com.zesped.model.TaxPayer

  public void validatePreviousPermissions(ValidationErrors ignore) {
    String[] aTaxPayer = getParam("taxPayer").split(",");
    try {
      connect();
      for (int t=0; t<aTaxPayer.length; t++) {
        TaxPayer oTxp = new TaxPayer (getSession().getDms(), aTaxPayer[t]);
        ArrayList<User> aAlu = oTxp.allowedUsers(getSession());
        for (int e=0; e<=6; e++) {
          final String sEmail = getParam("email["+String.valueOf(e)+"]","").trim().toLowerCase();
          if (sEmail.trim().length()>0) {
            try {
              User.forEmail(sEmail);
              for (User u : aAlu) {
                if (u.getEmail().equals(sEmail))
                  addError(new LocalizableError("com.zesped.action.SendInvitations.user.alreadyAuthorized",sEmail,oTxp.getBusinessName()));
              }
            } catch (ElementNotFoundException enfe) { }
          }
        } // next       
      } // next
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.