Discount Sharing Not Working Correctly When System Discounts Are Added

(Doc ID 1326583.1)

Last updated on OCTOBER 09, 2017

Applies to:

Oracle Communications Billing and Revenue Management - Version to [Release 7.3.0 to 7.4.0]
HP-UX PA-RISC (64-bit)
HP-UX Itanium
***Checked for Relevance on 10/09/2017***


Steps to reproduce the issue:

1) Created discount model "DM10«C" for system discount through Pipeline tool box
2) Commit the plan used
3) On 1st Aug 2011, create 2 accounts(A1 , A2) using above plan
4) Create Discount Sharing Group to share the Discount of A1 to A2
5) After DSG is created , change the priorities in A2 like:
    1. DSG
    2. My Owned Discounts
6) pass a CDR for A2

Issue: It can be seen that in the EDR dump DISCOUNT_LIST created has got system discount with both the services (Service 1 and another and /service/telco/gsm) which is correct, but the DISCOUNT_LIST created for service1 has the discount related to discount sharing group and system discount and they are pointing to the Balance group of member and not the owner because of which discount is not getting applied.

When we removed the system discount then discounts are properly applied.

Actual Result:

1) Verify the Filter_Set_pre.dump, there should be 2 DISCOUNT_LIST present
         BALANCE_GROUP_ID:                        <1_4175490>           :SET       
  -----------------> Owner acct bal grp id
         DISCOUNT_OWNER_ACCT_ID:           <1_4177666>           :SET   
 -----------------> Owner acct id
         DISCOUNT_OWNER_ID:                       <1_4175234>           :SET
         DISCOUNT_OWNER_TYPE:                 </service/telco/gsm/telephony>:SET

         BALANCE_GROUP_ID:                           <1_4197302>           :SET       
     -------------------> Member bal grp id
         DISCOUNT_OWNER_ACCT_ID:             <1_4196022>           :SET   
 --------------------> Member acct id
         DISCOUNT_OWNER_ID:                         <1_4196470>           :SET
         DISCOUNT_OWNER_TYPE:                   </service/telco/gsm/telephony>:SET

2) Verify the Filter_Set_post.dump, there should be 2 DISCOUNT_LIST present
 Verify the bal grp id and acct id at the first DISCOUNT_LIST


         BALANCE_GROUP_ID:                          <1_4197302>           :SET 
 -------------------> It is getting overwritten by member bal grp id where as
 it should be owner bal grp id
         DISCOUNT_OWNER_ACCT_ID:           <1_4196022>           :SET     
 -------------> It is getting overwritten by member acct id where as it should
 be owner acct id
         DISCOUNT_OWNER_ID:                       <1_4175234>           :SET
         DISCOUNT_OWNER_TYPE:                 </service/telco/gsm/telephony>:SET

         BALANCE_GROUP_ID:                        <1_4197302>           :SET     
 -------------------> Member bal grp id
         DISCOUNT_OWNER_ACCT_ID:         <1_4196022>           :SET 
 --------------------> Member acct id
         DISCOUNT_OWNER_ID:                     <1_4196470>           :SET
         DISCOUNT_OWNER_TYPE:               </service/telco/gsm/telephony>:SET

Expected Result :

 Snippet from the Filter_Set_post.dump:
 DSG should have only sharing discount i.e DM10%OFF
 My owned discount should have both system discount and it's own discount

         BALANCE_GROUP_ID:                            <1_4214277>           :SET
         DISCOUNT_OWNER_ACCT_ID:             <1_4210693>           :SET
         DISCOUNT_OWNER_ID:                          <1_4214021>           :SET
         DISCOUNT_OWNER_TYPE:                    </service/telco/gsm/telephony>:SET

             DISCOUNT_ID:                               <1_4189213>           :SET
             DISCOUNT_MODEL:                     <>                     :CLEARED
             PURCHASE_START:                     <20110801070000>      :SET
             PURCHASE_END:                         <19700101000000>      :SET
             USAGE_START:                            <20110801070000>      :SET
             USAGE_END:                                <19700101000000>      :SET
             PRIORITY:                                     <0>               :CLEARED
             MODE:                                           <0>                  :CLEARED
             VALID_FLAG:                               <0>                   :SET
             TYPE:                                            <602>                 :SET
             OFFERING_POID:                        <1 /purchased_discount 4211845 0>:SET
             NODE_LOCATION:                      <>                   
             STATUS:                             <1>                   :SET
             QUANTITY:                        <1>                   :SET
             FLAGS:                               <0>                   :CLEARED
             SCALE:                               <0.0>                 :CLEARED
             FIRST_USAGE_INDICATOR:              <0>                   :SET


         BALANCE_GROUP_ID:                   <1_4190063>           :SET
         DISCOUNT_OWNER_ACCT_ID:    <1_4186479>           :SET
         DISCOUNT_OWNER_ID:                 <1_4189423>           :SET
         DISCOUNT_OWNER_TYPE:           </service/telco/gsm/telephony>:SET


             DISCOUNT_ID:                        <1_4189213>           :SET
             DISCOUNT_MODEL:              <>                   :CLEARED
             PURCHASE_START:               <20110801070000>      :SET
             PURCHASE_END:                   <19700101000000>      :SET
             USAGE_START:                      <20110801070000>      :SET
             USAGE_END:                          <19700101000000>      :SET
             PRIORITY:                               <0>                 
             MODE:                                     <0>                 
             VALID_FLAG:                         <0>                   :SET
             TYPE:                                      <602>                 :SET
             OFFERING_POID:                  <1 /purchased_discount
 4187631 0>:SET
             NODE_LOCATION:                <>                   
             STATUS:                                 <1>                   :SET
             QUANTITY:                            <1>                   :SET
             FLAGS:                                   <0>                    :CLEARED
             SCALE:                                  <0.0>                  :CLEARED
             FIRST_USAGE_INDICATOR:              <0>                   :SET
             DISCOUNT_ID:                        <1_4187165>           :SET
             DISCOUNT_MODEL:              <DM10%VIJ>            :SET
             PURCHASE_START:              <19700101000000>      :SET
             PURCHASE_END:                  <19700101000000>      :SET
             USAGE_START:                     <>                    :SET
             USAGE_END:                         <>                    :SET
             PRIORITY:                              <0>                   :SET
             MODE:                                    <801>                 :SET
             VALID_FLAG:                        <1>                   :SET
             TYPE:                                     <603>                 :SET
             OFFERING_POID:                 < >                   :SET
             NODE_LOCATION:               <>                   
             STATUS:                             <1>                   :SET
             QUANTITY:                        <1>                   :SET
             FLAGS:                                <0>                   :CLEARED
             SCALE:                              <1>                     :SET
             FIRST_USAGE_INDICATOR:              <0>                   :CLEARED




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