From 1f2d760ed2ace5be605e474ab0143d2ea56e4782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sch=C3=B6nbeck?= Date: Thu, 24 Sep 2020 17:13:30 +0200 Subject: [PATCH] IDEMPIERE-4469 when recalculating price on price list generation all T_Selection entries are used independently of AD_PInstance_ID (#273) * IDEMPIERE-4469 when recalculating price on price list generation all T_Selection entries are used independently of AD_PInstance_ID * IDEMPIERE-4469 when recalculating price on price list generation all T_Selection entries are used independently of AD_PInstance_ID --- .../src/org/compiere/process/M_PriceList_Create.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base.process/src/org/compiere/process/M_PriceList_Create.java b/org.adempiere.base.process/src/org/compiere/process/M_PriceList_Create.java index fed15b5246..9c507c0404 100644 --- a/org.adempiere.base.process/src/org/compiere/process/M_PriceList_Create.java +++ b/org.adempiere.base.process/src/org/compiere/process/M_PriceList_Create.java @@ -336,7 +336,7 @@ public class M_PriceList_Create extends SvrProcess { /** Calculations **/ MProductPrice[] pp = m_plv.getProductPrice( "AND EXISTS (SELECT * FROM T_Selection s " - + "WHERE s.T_Selection_ID=M_ProductPrice.M_Product_ID)"); + + "WHERE s.AD_PInstance_ID = " + m_AD_PInstance_ID + " AND s.T_Selection_ID=M_ProductPrice.M_Product_ID)"); for (MProductPrice price : pp) { BigDecimal priceList = price.getPriceList(); BigDecimal priceStd = price.getPriceStd();