Cycle Arrear Fees Not Discounted Completely When Discount Is Cancelled And Purchased In Same Cycle (Doc ID 1336449.1)

Last updated on NOVEMBER 28, 2016

Applies to:

Oracle Communications Billing and Revenue Management - Version 7.3.1.0.0 and later
Information in this document applies to any platform.

Goal

When cascade discount(on cycle arrear fees) is canceled and purchased in same cycle, only the first portion of the active period is discounted and the second portion is left out.

Example : bill cycle is mar 5 to apr 5; cancel discount on mar 10 and purchase same discount on same day; only mar 5 to mar 10 is charged ; mar 10 to apr 5 is left out

Scenario :

* create 2 products, one is purchase fee and one is cycle arrear (CA) fee
* create a discount configuration to give 100% discount on the CA fee
* create a discount with the discount model as created above
* create a deal D1 with the above 2 products and the discount
* create a plan P1 with above D1
* consider DOM=5 , billing_delay=1
* 05March: create account with the above plan P1
* event generated is , e1 = 6.48 (this is the purchase fee)
* 10 March : cancel the discount using input flist (shown below)
* 15 March : purchase the same discount using opcode and flist (shown below)
* 07April : Run billing for the account. Below events are generated :

e2 = 8.03 ( this is the cycle arrear charge)
e3 = -1.295 ( this is discount for the period 5March to 10March )

Problem : Discount for the second portion (15march to 5April) is left out.

In the discount trace, we can see the following message :

       "..Ignored packet Id: 1 due to cascading and totalMatchFactor >= 1.."

Could this be the cause of the problem ?


Input flists used in the above test :

# op_subscription_cancel_discount input flist 3752
# number of field entries allocated 20, used 4
0 PIN_FLD_POID POID [0] 0.0.0.1 /account 123 11
0 PIN_FLD_PROGRAM_NAME STR [0] "Automatic Account Creation"
0 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/telco/gprs 1972681 6
0 PIN_FLD_DISCOUNTS ARRAY [0] allocated 20, used 3
1 PIN_FLD_DISCOUNT_OBJ POID [0] 0.0.0.1 /discount 1964921 4
1 PIN_FLD_OFFERING_OBJ POID [0] 0.0.0.1 /purchased_discount 1971657 0
1 PIN_FLD_QUANTITY DECIMAL [0] 1


# op_subscription_purchase_deal input flist 108
# number of field entries allocated 20, used 6
0 PIN_FLD_POID POID [0] 0.0.0.1 /account 123 12
0 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/telco/gprs 1234 6
0 PIN_FLD_PROGRAM_NAME STR [0] "Customer Center"
0 PIN_FLD_END_T TSTAMP [0] (1300127400) Tue Mar 15 00:00:00 2011
0 PIN_FLD_START_T TSTAMP [0] (0) <null>
0 PIN_FLD_DEAL_INFO SUBSTRUCT [0] allocated 20, used 6
1 PIN_FLD_NAME STR [0] "100% Disc"
1 PIN_FLD_POID POID [0] 0.0.0.1 /deal -1 0
1 PIN_FLD_END_T TSTAMP [0] (0) <null>
1 PIN_FLD_START_T TSTAMP [0] (0) <null>
1 PIN_FLD_PLAN_OBJ POID [0] 0.0.0.1 /plan -1 0
1 PIN_FLD_DISCOUNTS ARRAY [1] allocated 20, used 9
2 PIN_FLD_DISCOUNT_OBJ POID [0] 0.0.0.1 /discount 1964921 4
2 PIN_FLD_QUANTITY DECIMAL [0] 1
2 PIN_FLD_STATUS ENUM [0] 1
2 PIN_FLD_PURCHASE_END_T TSTAMP [0] (0) <null>
2 PIN_FLD_PURCHASE_START_T TSTAMP [0] (0) <null>
2 PIN_FLD_USAGE_END_T TSTAMP [0] (0) <null>
2 PIN_FLD_USAGE_START_T TSTAMP [0] (0) <null>
2 PIN_FLD_CYCLE_END_T TSTAMP [0] (0) <null>
2 PIN_FLD_CYCLE_START_T TSTAMP [0] (0) <null>



Solution

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