Incorrect Balance Impacts after Rating for "Default" Impact Category (Doc ID 849531.1)

Last updated on JUNE 22, 2017

Applies to:

Oracle Communications Billing and Revenue Management - Version: 7.3.0.0.0
This problem can occur on any platform.

Symptoms

Scenario:

1. The rating uses a rate which charge a scaled amount of 1 per Kb. The account's balance before
rating for the impacted resource (1100031) is -1, with no reserved quantity.

The product rate defined as below (with custom event and a rateplan):

Quantity Discount Bracket: based on Balance Resource "UM Included Kilobytes [1100031]",
No Minimum - 0.00
UM Included Kilobytes [1100031]: 1.00/Kilobyte (scaled, impact category "on_net_initial")
UM Included Kilobytes [1100031]: 0.00 (scaled, impact category "on_net_free")
UM Included Kilobytes [1100031]: 1.00/Kilobyte (scaled, impact category "off_net_premium")
UM Included Kilobytes [1100031]: 1.00/Kilobyte (scaled, impact category "default")

This is for a calc only rating. The rating seems to behave as if there was a rate of 3 per Kb
insted of 1. The following is logged in cm.pinlog:

40783 D Fri May 29 15:13:23 2009 machine01 cm:19816 fm_rate_rate.c:2076 1:machine01:testnap:19813:1:14057:1243628003:1
40784    scaled amount of this bal_impact : 1.000000
40785 D Fri May 29 15:13:23 2009 machine01 cm:19816 fm_rate_rate.c:2140 1:machine01:testnap:19813:1:14057:1243628003:1
40786    amount is : 1.000000
40787 D Fri May 29 15:13:23 2009 machine01 cm:19816 fm_rate_rate.c:843 1:machine01:testnap:19813:1:14057:1243628003:1
40788    Total scaled amount : 3.000000
40789 D Fri May 29 15:13:23 2009 machine01 cm:19816 fm_rate_rate.c:845 1:machine01:testnap:19813:1:14057:1243628003:1
40790    Total Fixed amount : 0.000000
40791 D Fri May 29 15:13:23 2009 machine01 cm:19816 fm_rate_rate.c:868 1:machine01:testnap:19813:1:14057:1243628003:1
40792    ratable_qty_bracketp : [0.000000,20.000000]
40793 D Fri May 29 15:13:23 2009 machine01 cm:19816 fm_rate_utils.c:338 1:machine01:testnap:19813:1:14057:1243628003:1
40794    Amount to be subtracted : -1.000000
40795 D Fri May 29 15:13:23 2009 machine01 cm:19816 fm_rate_rate.c:878 1:machine01:testnap:19813:1:14057:1243628003:1
40796    step_bracket - fixed_amt : [-999999999.000000,1.000000}
40797 D Fri May 29 15:13:23 2009 machine01 cm:19816 fm_rate_utils.c:371 1:machine01:testnap:19813:1:14057:1243628003:1
40798    Amount to be divided with : 3.000000
40799 D Fri May 29 15:13:23 2009 machine01 cm:19816 fm_rate_utils.c:395 1:machine01:testnap:19813:1:14057:1243628003:1
40800    Bracket After division : [-999999999.000000,0.333333}


Impact Category given is "default". Expect : balance impact of 1 for resource 1100031 and a
currency balance impact. However got a balance impact with quantity 0.3333 and amount 0.

61108 2 PIN_FLD_QUANTITY DECIMAL [0] 0.33333333
61109 2 PIN_FLD_IMPACT_TYPE ENUM [0] 1
61110 2 PIN_FLD_DISCOUNT DECIMAL [0] 0
61111 2 PIN_FLD_PERCENT DECIMAL [0] 1
61112 2 PIN_FLD_AMOUNT DECIMAL [0] 0


2. In another case, the account has a balance of 18 for resource 1100031 and when rating a quantity of 20Kb, the amount deducted from the resource was only 6.


Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms