PCM_OP_PURCHSE_DEAL Calling PCM_OP_ACT_USAGE Twice and Hence Calling Vertex Twcie (Doc ID 2147087.1)

Last updated on JULY 14, 2016

Applies to:

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

Symptoms

Invoking PCM_OP_SUBSCRIPTION_PURCHASE_DEAL opcode, it is calling PCM_OP_ACT_USAGE twice in calc_only mode, and hence it is calling vertex twice and causing the vertex rules to break due to REGACC table has been written to when max tier calculation is used.

Steps to reproduce:
-------------------------
1. create a product that uses "rate plan selector" where all have "tax when" set to "event time" and tax code specified
2. load tax supplier
3. create a customer
4. purchase the product from testnap

nap(24222)> r a 1
nap(24222)> d 1
# number of field entries allocated 20, used 7
0 PIN_FLD_POID POID [0] 0.0.0.1 /account 189056 0
0 PIN_FLD_PROGRAM_NAME STR [0] "Automatic Account Creation"
0 PIN_FLD_START_T TSTAMP [0] (1462822686) Mon May 9 12:38:06 2016
0 PIN_FLD_END_T TSTAMP [0] (1462822686) Mon May 9 12:38:06 2016
0 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip 190016 0
0 PIN_FLD_BILLINFO_OBJ POID [0] 0.0.0.1 /billinfo 192128 0
0 PIN_FLD_PRODUCTS ARRAY [0] allocated 41, used 24
1     PIN_FLD_PURCHASE_END_T TSTAMP [0] (0) <null>
1     PIN_FLD_PURCHASE_START_T TSTAMP [0] (0) <null>
1     PIN_FLD_USAGE_END_DETAILS INT [0] 2
1     PIN_FLD_CYCLE_END_DETAILS INT [0] 2
1     PIN_FLD_QUANTITY DECIMAL [0] 1
1     PIN_FLD_PURCHASE_END_DETAILS INT [0] 2
1     PIN_FLD_USAGE_START_DETAILS INT [0] 1
1     PIN_FLD_CYCLE_START_DETAILS INT [0] 1
1     PIN_FLD_PURCHASE_START_DETAILS INT [0] 1
1     PIN_FLD_PLAN_OBJ POID [0] 0.0.0.1 /plan 16852 0
1     PIN_FLD_PRODUCT_OBJ POID [0] 0.0.0.1 /product 17300 0
1     PIN_FLD_DESCR STR [0] "Charges for monthly internet access service and hourly usage."
1     PIN_FLD_USAGE_DISCOUNT DECIMAL [0] 0
1     PIN_FLD_CYCLE_DISCOUNT DECIMAL [0] 0
1     PIN_FLD_PURCHASE_DISCOUNT DECIMAL [0] 0
1     PIN_FLD_STATUS ENUM [0] 1
1     PIN_FLD_STATUS_FLAGS INT [0] 0
1     PIN_FLD_USAGE_END_T TSTAMP [0] (0) <null>
1     PIN_FLD_USAGE_START_T TSTAMP [0] (0) <null>
1     PIN_FLD_CYCLE_END_T TSTAMP [0] (0) <null>
1     PIN_FLD_CYCLE_START_T TSTAMP [0] (0) <null>
1     PIN_FLD_FEE_FLAG INT [0] 1
1     PIN_FLD_PACKAGE_ID INT [0] 1
1     PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 19668 0
nap(24222)> xop PCM_OP_SUBSCRIPTION_PURCHASE_PRODUCT 0 1
xop: opcode 107, flags 0
# number of field entries allocated 20, used 4
0 PIN_FLD_POID POID [0] 0.0.0.1 /account 189056 0
0 PIN_FLD_OFFERING_OBJ POID [0] 0.0.0.1 /purchased_product 186563 0
0 PIN_FLD_RESULTS ARRAY [0] allocated 20, used 11
1     PIN_FLD_CYCLE_INFO SUBSTRUCT [0] allocated 20, used 5
2         PIN_FLD_CYCLE_START_T TSTAMP [0] (1462777200) Mon May 9 00:00:00 2016
2         PIN_FLD_CYCLE_END_T TSTAMP [0] (1465455600) Thu Jun 9 00:00:00 2016
2         PIN_FLD_FLAGS INT [0] 1280
2         PIN_FLD_ORIGINAL_SCALE DECIMAL [0] 1
2         PIN_FLD_SCALE DECIMAL [0] 1.0000000000000
1     PIN_FLD_BAL_IMPACTS ARRAY [0] allocated 20, used 18
2         PIN_FLD_ACCOUNT_OBJ POID [0] 0.0.0.1 /account 189056 7
2         PIN_FLD_PRODUCT_OBJ POID [0] 0.0.0.1 /product 17300 1
2         PIN_FLD_TAX_CODE STR [0] "user_code"
2         PIN_FLD_RATE_OBJ POID [0] 0.0.0.1 /rate 19348 1
2         PIN_FLD_RATE_TAG STR [0] "$9.95 a month"
2         PIN_FLD_IMPACT_CATEGORY STR [0] "default"
2         PIN_FLD_OFFERING_OBJ POID [0] 0.0.0.1 /purchased_product 186563 0
2         PIN_FLD_LINEAGE STR [0] NULL str ptr
2         PIN_FLD_GL_ID INT [0] 102
2         PIN_FLD_QUANTITY DECIMAL [0] 1.00000000
2         PIN_FLD_IMPACT_TYPE ENUM [0] 1
2         PIN_FLD_DISCOUNT DECIMAL [0] 0
2         PIN_FLD_PERCENT DECIMAL [0] 1.0000000000000
2         PIN_FLD_AMOUNT DECIMAL [0] 9.95
2         PIN_FLD_RESOURCE_ID INT [0] 840
2         PIN_FLD_AMOUNT_DEFERRED DECIMAL [0] 0
2         PIN_FLD_BAL_GRP_OBJ POID [0] 0.0.0.1 /balance_group 191872 10
2         PIN_FLD_ITEM_OBJ POID [0] 0.0.0.1 /item/cycle_forward 297835709732151616 0
1     PIN_FLD_BAL_IMPACTS ARRAY [1] allocated 20, used 15
2         PIN_FLD_IMPACT_TYPE ENUM [0] 4
2         PIN_FLD_RESOURCE_ID INT [0] 840
2         PIN_FLD_GL_ID INT [0] 0
2         PIN_FLD_TAX_CODE STR [0] "user_code"
2         PIN_FLD_RATE_TAG STR [0] "Tax"
2         PIN_FLD_ACCOUNT_OBJ POID [0] 0.0.0.1 /account 189056 7
2         PIN_FLD_BAL_GRP_OBJ POID [0] 0.0.0.1 /balance_group 191872 10
2         PIN_FLD_RATE_OBJ POID [0] 0.0.0.0 0 0
2         PIN_FLD_DISCOUNT DECIMAL [0] 0
2         PIN_FLD_PERCENT DECIMAL [0] 0.100000
2         PIN_FLD_QUANTITY DECIMAL [0] 9.95
2         PIN_FLD_AMOUNT DECIMAL [0] 1.00
2         PIN_FLD_AMOUNT_DEFERRED DECIMAL [0] 0
2         PIN_FLD_ITEM_OBJ POID [0] 0.0.0.1 /item/cycle_forward 297835709732151616 0
2         PIN_FLD_LINEAGE STR [0] NULL str ptr
1     PIN_FLD_SUB_BAL_IMPACTS ARRAY [0] allocated 20, used 3
2         PIN_FLD_BAL_GRP_OBJ POID [0] 0.0.0.1 /balance_group 191872 11
2         PIN_FLD_RESOURCE_ID INT [0] 840
2         PIN_FLD_SUB_BALANCES ARRAY [0] allocated 20, used 8
3             PIN_FLD_VALID_FROM TSTAMP [0] (1462777200) Mon May 9 00:00:00 2016
3             PIN_FLD_VALID_TO TSTAMP [0] (0) <null>
3             PIN_FLD_VALID_FROM_DETAILS INT [0] 0
3             PIN_FLD_VALID_TO_DETAILS INT [0] 0
3             PIN_FLD_GRANTOR_OBJ POID [0] 0.0.0.1 /purchased_product 188480 0
3             PIN_FLD_ROLLOVER_DATA INT [0] 0
3             PIN_FLD_CONTRIBUTOR_STR STR [0] ""
3             PIN_FLD_AMOUNT DECIMAL [0] 10.95
1     PIN_FLD_UNRATED_QUANTITY DECIMAL [0] 0
1     PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip 190016 0
1     PIN_FLD_ACCOUNT_OBJ POID [0] 0.0.0.1 /account 189056 0
1     PIN_FLD_RATING_STATUS ENUM [0] 0
1     PIN_FLD_NET_QUANTITY DECIMAL [0] 1
1     PIN_FLD_RUM_NAME STR [0] "Occurrence"
1     PIN_FLD_POID POID [0] 0.0.0.1 /event/billing/product/fee/cycle/cycle_forward_monthly 297835709732148419 0
0 PIN_FLD_RESULTS ARRAY [1] allocated 20, used 3
1     PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip 190016 0
1     PIN_FLD_ACCOUNT_OBJ POID [0] 0.0.0.1 /account 189056 0
1     PIN_FLD_POID POID [0] 0.0.0.1 /event/billing/product/action/purchase 17592186232003 0

 4. check cm.pinlog, obsevered op_rate_tax_calc has been called twice

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