Examples of ProductCost


Examples of org.compiere.model.ProductCost

        desc += " - " + percent + "%";
      if (line.getDescription() != null)
        desc += " - " + line.getDescription();
     
      //  Accounting
      ProductCost pc = new ProductCost (Env.getCtx(),
        lca.getM_Product_ID(), lca.getM_AttributeSetInstance_ID(), getTrxName());
      BigDecimal drAmt = null;
      BigDecimal crAmt = null;
      if (dr)
        drAmt = lca.getAmt();
      else
        crAmt = lca.getAmt();
      FactLine fl = fact.createLine (line, pc.getAccount(ProductCost.ACCTTYPE_P_CostAdjustment, as),
        getC_Currency_ID(), drAmt, crAmt);
      fl.setDescription(desc);
      fl.setM_Product_ID(lca.getM_Product_ID());
     
      //  Cost Detail - Convert to AcctCurrency
View Full Code Here

Examples of org.compiere.model.ProductCost

   @return product cost
   */
  public ProductCost getProductCost()
  {
    if (m_productCost == null)
      m_productCost = new ProductCost (Env.getCtx(),
        getM_Product_ID(), getM_AttributeSetInstance_ID(), p_po.get_TrxName());
    return m_productCost;
  //  getProductCost
View Full Code Here

Examples of org.compiere.model.ProductCost

   @param zeroCostsOK zero/no costs are OK
   *  @return costs
   */
  public BigDecimal getProductCosts (MAcctSchema as, int AD_Org_ID, boolean zeroCostsOK)
  {
    ProductCost pc = getProductCost();
    int C_OrderLine_ID = getC_OrderLine_ID();
    String costingMethod = null;
    BigDecimal costs = pc.getProductCosts(as, AD_Org_ID, costingMethod,
      C_OrderLine_ID, zeroCostsOK);
    if (costs != null)
      return costs;
    return Env.ZERO;
  }   //  getProductCosts
View Full Code Here

Examples of org.compiere.model.ProductCost

   @return product or null if no product
   */
  public MProduct getProduct()
  {
    if (m_productCost == null)
      m_productCost = new ProductCost (Env.getCtx(),
        getM_Product_ID(), getM_AttributeSetInstance_ID(), p_po.get_TrxName());
    if (m_productCost != null)
      return m_productCost.getProduct();
    return null;
  //  getProduct
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.