public static MCostQueue add(MProduct product,int M_AttributeSetInstance_ID,MAcctSchema as,int AD_Org_ID,int M_CostElement_ID,BigDecimal amt,BigDecimal qty,int precision,MCostDetail cd,String trxName){
  if (CLogMgt.isLevelFine())   s_log.fine("Entering: org=" + AD_Org_ID + ", product="+ product.get_ID()+ ", asi="+ M_AttributeSetInstance_ID+ ", amt="+ amt+ ", qty="+ qty+ ", precision="+ precision);
  MCostQueue cq=new MCostQueue(product,M_AttributeSetInstance_ID,as,AD_Org_ID,M_CostElement_ID,trxName);
  cq.setCosts(amt,qty,precision);
  cq.setDateAcct(cd.getDateAcct());
  cq.saveEx();
  if (CLogMgt.isLevelFine())   s_log.fine("Leaving: " + cq);
  return cq;
}

public static MCostQueue add ( MProduct product , int M_AttributeSetInstance_ID , MAcctSchema as , int AD_Org_ID , int M_CostElement_ID , BigDecimal amt , BigDecimal qty , int precision , MCostDetail cd , String trxName ) { if ( CLogMgt . isLevelFine ( ) ) s_log . fine ( "Entering: org=" + AD_Org_ID + ", product=" + product . get_ID ( ) + ", asi=" + M_AttributeSetInstance_ID + ", amt=" + amt + ", qty=" + qty + ", precision=" + precision ) ; MCostQueue cq = new MCostQueue ( product , M_AttributeSetInstance_ID , as , AD_Org_ID , M_CostElement_ID , trxName ) ; cq . setCosts ( amt , qty , precision ) ; cq . setDateAcct ( cd . getDateAcct ( ) ) ; cq . saveEx ( ) ; if ( CLogMgt . isLevelFine ( ) ) s_log . fine ( "Leaving: " + cq ) ; return cq ; }
push to queue record . costinglevel is not validated
