Package com.centraview.account.invoice

Examples of com.centraview.account.invoice.InvoiceForm


      }

      OrderForm of = remote.getOrderForm(orderId, individualID);
      of.convertValueObjectToFormbean();

      InvoiceForm invoiceform = (InvoiceForm)form;
      invoiceform.convertItemLines();

      invoiceform.setOrderid(orderId + "");
      invoiceform.setCustomerId(of.getCustomerId() + "");
     
      if (of.getBillToAdd() != null) {
        invoiceform.setBillto(of.getBillToAdd()+"");
      }else{
        invoiceform.setBillto("");
      }
      invoiceform.setBilltoID(of.getBillToAddIdValue() + "");
      invoiceform.setShiptoID(of.getShipToAddIdValue() + "");
     
      if (of.getShipToAdd() != null) {
        invoiceform.setShipto(of.getShipToAdd() + "");
      }else{
        invoiceform.setShipto("");
      }
      invoiceform.setJurisdictionVec(taxJurisdiction);
      invoiceform.setJurisdictionID(of.getJurisdictionID());
      invoiceform.setStatusid(of.getStatusIdValue()+"");
      invoiceform.setInvoiceDate(of.getOrderDate());
      invoiceform.setPoid(of.getPo());
      invoiceform.setTermid(of.getTermsIdValue()+"");
      invoiceform.setAccountmanagerid(of.getAcctMgrIdValue()+"");
      invoiceform.setProjectid(of.getProjectIdValue()+"");
      invoiceform.setNotes(of.getNotes()+"");
      invoiceform.setProjectName(of.getProject());
      invoiceform.setAccountmanagerName(of.getAcctMgr());
      invoiceform.setItemLines(of.getItemLines());
      invoiceform.setOrdername(of.getCustomerName());
      invoiceform.setExternalid("");
      invoiceform.setTaxAmount(of.getTaxAmount());

      java.sql.Date invDate = of.getOrderDate();
      if (invDate != null) {
        int month = invDate.getMonth();
        month = month + 1;
        invoiceform.setMonth(month + "");
       
        int date = invDate.getDate();
        invoiceform.setDate(date + "");
       
        int year= invDate.getYear();
        invoiceform.setYear(year + "");
      }
      form = invoiceform;

      request.setAttribute(AccountConstantKeys.TYPEOFSUBMODULE, AccountConstantKeys.INVOICE);
      request.setAttribute("body", AccountConstantKeys.ADD );
View Full Code Here

TOP

Related Classes of com.centraview.account.invoice.InvoiceForm

Copyright © 2018 www.massapicom. 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.