Debug.logWarning(UtilProperties.getMessage(resource_error,"OrderNoAgreementFoundWithIdNotDoingPromotions", UtilMisc.toMap("agreementId", agreementId), cart.getLocale()), module);
return productPromoList;
}
GenericValue agreementItem = null;
try {
List agreementItems = delegator.findByAndCache("AgreementItem", UtilMisc.toMap("agreementId", agreementId, "agreementItemTypeId", "AGREEMENT_PRICING_PR", "currencyUomId", cart.getCurrency()));
agreementItem = EntityUtil.getFirst(agreementItems);
} catch (GenericEntityException e) {
Debug.logError(e, "Error looking up agreement items for agreement with id " + agreementId, module);
}
if (agreementItem == null) {