Amélioration: PriceService, récupération du prix d'un article sur les lignes produit de l'accord
if (UtilValidate.isNotEmpty(agreementId)) {
try {
GenericValue agreementPriceValue = EntityQuery.use(delegator).from("AgreementItemAndProductAppl").where("agreementId", agreementId, "productId", productId, "currencyUomId", currencyDefaultUomId).queryFirst();
//======= Decathlon Specific ======
if (null != agreementPriceValue && !currencyDefaultUomId.equals(currencyUomIdTo)) {
agreementPriceValue = EntityQuery.use(delegator).from("AgreementItemAndProductAppl")
.where("agreementId", agreementId, "productId", productId, "currencyUomId", currencyUomIdTo).queryFirst();
}
//======= Decathlon Specific ======
if (agreementPriceValue != null && agreementPriceValue.get("price") != null) {
defaultPriceValue = agreementPriceValue;
}