Package org.compiere.model

Examples of org.compiere.model.MBPartner


   */
  private void setOrderLineDefaults(MRequisitionLine rLine, int C_BPartner_ID)
  {
    BigDecimal qty = rLine.getQty();
    BigDecimal unitPrice = rLine.getPriceActual();
    MBPartner bPartner = new MBPartner(getCtx(), C_BPartner_ID, null);
   
    m_orderLine.setPriceActual(unitPrice);
    m_orderLine.setPriceList(unitPrice);
    m_orderLine.setPriceLimit(unitPrice);
    m_orderLine.setPriceEntered(unitPrice);
    m_orderLine.setC_UOM_ID(100); // Each
    m_orderLine.setQtyEntered(qty);
    m_orderLine.setQtyOrdered(Env.ZERO);
    m_orderLine.setFreightAmt(Env.ZERO);
    m_orderLine.setC_Tax_ID(((Integer)bPartner.get_Value("Default_Tax_ID")).intValue());
   
  } //  setOrderLineDefaults
View Full Code Here


  {
    if (AcctType != ProductCost.ACCTTYPE_P_Revenue &&
        AcctType != ProductCost.ACCTTYPE_P_Cogs)
      return getProductCost().getAccount (AcctType, as);
   
    MBPartner bpartner = new MBPartner(as.getCtx(), getC_BPartner_ID(), null);
    String market = (String)bpartner.get_Value("market");
    int productCategoryID = getProduct().getM_Product_Category_ID();
   
    if (!(market != null && market.equals("E")) && // Not Export (Domestic) and
      productCategoryID != 1000007) // Not Timber
    return getProductCost().getAccount (AcctType, as);
View Full Code Here

TOP

Related Classes of org.compiere.model.MBPartner

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.