Skip to content

Commit

Permalink
hotfix: C_OrderLine.Discount was set for a group compensation line wh…
Browse files Browse the repository at this point in the history
…en flatrate conditions were set

#3150
  • Loading branch information
teosarca committed Dec 10, 2017
1 parent e5b7709 commit ba304ca
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -112,14 +112,15 @@ private static IEditablePricingContext copyPricingCtxButInsertPriceList(
subscriptionPricingCtx.setSOTrx(pricingCtx.isSOTrx());
subscriptionPricingCtx.setAD_Table_ID(pricingCtx.getAD_Table_ID());
subscriptionPricingCtx.setRecord_ID(pricingCtx.getRecord_ID());
subscriptionPricingCtx.setDisallowDiscount(pricingCtx.isDisallowDiscount());

// don't set a ReferencedObject, so that this rule's 'applies()' method will return false
subscriptionPricingCtx.setReferencedObject(null);

// set the price list from subscription's M_Pricing_Systen
subscriptionPricingCtx.setM_PriceList_Version_ID(0);
subscriptionPricingCtx.setM_PriceList_ID(subscriptionPriceList.getM_PriceList_ID());

return subscriptionPricingCtx;
}

Expand Down

0 comments on commit ba304ca

Please sign in to comment.