My Oracle Support Banner

EVAL/EBAL Expressions Are Not Considering The Scale (Doc ID 868444.1)

Last updated on FEBRUARY 25, 2019

Applies to:

Oracle Communications Billing and Revenue Management - Version to [Release 7.3.0]
Information in this document applies to any platform.


Problem Statement

The scale value is not considered when using EVAL or EBAL expression in discount engine.
The full discount is always applied regardless the fact that the customer purchases this discount in the middle of billing period.

Steps To Reproduce

1. On Oct 8, 2003, created account with product  with DOM = 25
2. Scale = 0.566666 (17 days/30 days for October) * 15.0422 =  Euro 8.52 - balance in progress after account creation
3. And configure "DISCOUNT" ERA for this account to have ERA value for 2.25.

0 PIN_FLD_ITEMS ARRAY [2] allocated 20, used 5
2 PIN_FLD_NAME STR [0] "Discount"
2 PIN_FLD_DATA_ARRAY ARRAY [0] allocated 20, used 2
3 PIN_FLD_VALUE STR [0] "2.25"

4. On Oct 8, 2003, purchased discount deal (this discount deal is expecting to grant the discount on ERA value * scale):

Details of the Balance Impact configuration:

Portal Resource ID: 978
Impact Prorate Beat: yes
Impact Units: -1
Beat: 1
Base Expression: EVAL("getOXXXX") ==> getOXXXX is the customized iScript, which will return ERA value
Applied To: Event Owner

Cycle Event Proration:
Prorate Purchase: Prorate Discount
Prorate Cancel: Prorate Discount

Expected behavior of discount

Discount Scale = 0.566666 (17 days/30 days for October) * (-2.25) = (-1.2749985)

Actual Result

Discount Scale = 1 * (-2.25) = - 2.25

A fragment from the Discount trace shows:

computeStepValues: stepC/stepQ: 11.1603/1.00000000
BASE expr: EVAL("getOXXXX"), result: 2.25
computeDiscount(): grant absolute proratedbeat discount of -2.25





To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.