3.15.17

Release Date: 2025-03-12

Software Version

The document refers to the following applications and corresponding software versions:

Application Version
Promotion Calculation Engine 3.15.17

What's New

Issue Key Summary
PPCE-8293

Resolve Snyk finding CVE-2025-24813

The version of tomcat-embed-libs was increased to 9.0.102 to resolve Snyk issue CVE-2025-24813.

PPCE-8267

Resolve Snyk findings CVE-2025-23184, CVE-2024-56128

The version of swee-dm was updated to 5.25.3-b06, the version of mod-pom-global was updated to 3.2.22 and the jaxws-api library version 2.3.1 was added to resolve security vulnerabilities.

PPCE-8162

Handling of the special case for the external modifier with RC rule type and multiple triggers

Improved the handling of the edge case when an external modifier for result-related promotion refers to two manual triggers. One is line item-related and the second is transaction-related. The effective sequence of such promotion is now calculated from the manual trigger with a higher trigger sequence addend. Previously, only the line item manual trigger had been considered.

PPCE-8139

ContextUtils.getSaleReturnTypeCodesForTransaction

The method has been renamed and is now getAllSaleReturnTypeCodesSet. The method returns all sale return type codes which are present in the configuration regardless of a transaction content. Therefore, PCE always loads all eligibilities which are related to both sales and returns.

PPCE-8041

Transaction-related non-monetary benefit proration improved

The virtual discount and loyalty points share proration of transaction-related promotions have been improved.

  • Non-monetary discount: previously, if the adjustment amount to be assigned to the last item was found to be invalid by the validation logic, then the proration failed all together. After the adjustments, the remaining amount is assigned to the rest of the proration items.
  • Loyalty points:
    • If the total benefit is not exactly distributed among the proration items, the applied correction is also rounded by the points share rounding rule. If the applied correction is invalidated on the last item by the validation logic, it is assigned to the rest of the proration items.
    • If, for some reason (e.g. due to rounding), an item in the proration list does not receive a bonus points share, it will receive zero bonus points share if this is allowed in the configuration.

If all virtual discount or loyalty points shares are considered invalid, the corresponding promotion is not applied.

As a result, expectations for the following JBehave stories had to be corrected:

  • i_can_calc_gec.story
  • cha_incentive_points_19.story

Resolved Issues

Issue Key Summary
PPCE-8275

Incorrect external modifier mapping in the ClientAPI response

An externally applied transaction-related modifier was mapped incorrectly in the ClientAPI response. This bug has been fixed.

PPCE-8259

Transaction-related external manual rule is not working as expected

  • The transaction-related manual trigger sequence addend is now added to the transaction-related condition sequence during the condition validity check.
  • If a transaction-related external modifier does not have an associated external price modification or a loyalty reward line item and a retail transaction price derivation rule, its sequence is considered as null and any line item or transaction-related database promotions cannot be applied.
PPCE-8247

Corrected unexpectedly applied manually triggered promotion

In case a single promotion was triggered by multiple manual triggers of the transaction (matching on both manual trigger type and value), then the promotion was applied for each trigger regardless of their calculation level. The issue has been fixed and, as a result, line item level manual triggers may only trigger line item-related or result-related promotions, while transaction level triggers may only trigger transaction-related or result-related promotions.

PPCE-8200

Fix missing ManualTriggerSequenceNumber and CouponEligibility in response

Fixed missing ManualTriggerSequenceNumber in FrequentShopperPointsModifier that has been granted by the transaction-related or result-related promotion price derivation rule. In the case of a result-related promotion price derivation rule, CouponEligibility was not associated with the correct FrequentShopperPointsModifier but aggregated to the last one on the line item. This bug has also been fixed.

PPCE-8194

Manual triggers that are referenced to external benefit are not registered to context

Any manual trigger which is associated with an externally applied modifier is registered to context from now and can trigger any further internal promotions if its sequence is higher than a sum of the externally applied manual promotion sequence and a manual trigger sequence addend. If a transaction with an already applied manual promotion was suspended and recalculated again, the same manual promotion is not applied due to the correct handling of the promotion sequence and manual trigger addend.

PPCE-8153

Added missing org.quartz-scheduler:quartz dependency to PCE

The previously optional org.quartz-scheduler:quartz dependency was changed to not optional to ensure availability of the required library with the PCE delivery.

PPCE-8133

Incorrect handling of a Mix and Match promotion with OR combined threshold eligibilities

Processing of a promotion with a Mix and Match rule and several logically OR combined threshold-related eligibilities has been corrected. Previously, the Mix and Match rule was skipped and not applied at all if all those eligibilities were successfully triggered but only some of them were actually fulfilled. After the bug fix, the Mix and Match rule is always calculated even if only a subset of triggered threshold-related eligibilities is fulfilled.