C1-FICRETBC
This creates SQI based charges for fully insured services.
This algorithm is invoked to create charges for both pre-calculated(i.e through inbound) and calculated ones(i.e those calculated based on pricing rules present at plan level). It allows creation of new billable charges(BC) , cancellation of existing charges and modification of end_date of existing charges. If there does exists any BC in billable status for date range under process with same start_date, priceItem, Amount and Membership, only end date of that BC is modified. BC for particular membership and priceItem are deemed to be cancelled if they fall in proposed date range and either have different amount or different start_date. Billable Charges created or updated for calculated charges are updated accordingly in entity 'PriceCalculationDetail' (Table: CI_PRCE_CALC) table and hence allowing those entries to be marked as completed. Pricing Rule Type corresponding to priceItem during inbound billable charge data processing is fetched from entity 'PricingRuleTypePriceitem' (Table: C1_PRC_RULE_TYPE_PRICEITEM) on first found basis.
Inbound billable charge data are processed as per latest billable charge data.
During online invocation from inbound message processing main program, it assumes following: i.BillableChargeLineCharacteristics are not available. j. Each of the BillableChargeLines have same currency code. In case of existing billable charge modification or cancellation, corresponding bill segments(In Case of BC end_date updation, only those bill segments whose date range surpasses billable charge end_date and in case of BC cancellation, all bill segments are covered ) are cancelled or deleted based on bill segment status. Billable charge are stamped with priceItem , SQI (fetched from Feature config) and pass through lines in MEMO ONLY state along with other info. Aggregated amount are stamped as service quantity.
Parameter: I. Bill To Type Flg - This is used during insertion of Contract ID in MEMBERSHIP_SA table.
Pre-Requisite: I. Values for option types 'CTME' (Characteristic Type For Membership Id) and 'PRSQ' (Proration SQI) in Feature Configuration 'C1-ASOBLLNG' is required. II. For inbound billable charge data - price Item, Pricing Rule Type of type 'Pass-Through Billable Charge' should be present on Plan.