Package org.compiere.model

Examples of org.compiere.model.MInvoice


   * Load Invoice details
   * @param C_Invoice_ID Invoice
   */
  protected Vector<Vector<Object>> getInvoiceData(int C_Invoice_ID)
  {
    m_invoice = new MInvoice(Env.getCtx(), C_Invoice_ID, null); // save
    p_order = null;
    m_rma = null;
   
    Vector<Vector<Object>> data = new Vector<Vector<Object>>();
    StringBuffer sql = new StringBuffer("SELECT " // Entered UOM
View Full Code Here


            errors++;
            continue;
          }
          mText.setUser(to);          //  Context
          mText.setBPartner(C_BPartner_ID)//  Context
          mText.setPO(new MInvoice(getCtx(), C_Invoice_ID, get_TrxName()));
          String message = mText.getMailText(true);
          if (mText.isHtml())
            email.setMessageHTML(subject, message);
          else
          {
View Full Code Here

   *  Load Specific Document Details
   *  @return error message or null
   */
  protected String loadDocumentDetails ()
  {
    MInvoice invoice = (MInvoice)getPO();
    setDateDoc(invoice.getDateInvoiced());
    setIsTaxIncluded(invoice.isTaxIncluded());
    //  Amounts
    setAmount(Doc.AMTTYPE_Gross, invoice.getGrandTotal());
    setAmount(Doc.AMTTYPE_Net, invoice.getTotalLines());
    setAmount(Doc.AMTTYPE_Charge, invoice.getChargeAmt());
       
    //  Contained Objects
    m_taxes = loadTaxes();
    p_lines = loadLines(invoice);
    log.fine("Lines=" + p_lines.length + ", Taxes=" + m_taxes.length);
View Full Code Here

TOP

Related Classes of org.compiere.model.MInvoice

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.