FR [2912011] - Import specific Price type(Catalogue, Standard, Limit)
https://sourceforge.net/tracker/?func=detail&aid=2912011&group_id=176962&atid=883808 Handle case commented by Carlos.
This commit is contained in:
parent
8d06fc3071
commit
3c6aee5a2d
|
@ -39,6 +39,7 @@ import org.compiere.process.ProcessInfoParameter;
|
|||
import org.compiere.process.SvrProcess;
|
||||
import org.compiere.util.AdempiereUserError;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
|
||||
/**
|
||||
* Import Price Lists from I_PriceList
|
||||
|
@ -415,7 +416,10 @@ public class ImportPriceList extends SvrProcess
|
|||
if (p_importPriceList) pp.setPriceList(imp.getPriceList());
|
||||
if (p_importPriceStd) pp.setPriceStd(imp.getPriceStd());
|
||||
} else {
|
||||
pp = new MProductPrice(pricelistversion, imp.getM_Product_ID(), imp.getPriceList(), imp.getPriceStd(), imp.getPriceLimit());
|
||||
pp = new MProductPrice(pricelistversion, imp.getM_Product_ID()
|
||||
, p_importPriceList?imp.getPriceList():Env.ZERO
|
||||
, p_importPriceStd?imp.getPriceStd():Env.ZERO
|
||||
, p_importPriceLimit?imp.getPriceLimit():Env.ZERO);
|
||||
isInsert = true;
|
||||
}
|
||||
if (pp.save())
|
||||
|
|
Loading…
Reference in New Issue