The payroll-report-schedule flag comes from the payment-plan type behind the period's billing default
Join BILLING_MASTER → BILLING_DEFAULTS (billing_default_code) → PAYMENT_PLAN_TYPE_CODE (payment_plan_type = code) for the policy + period effective date
FUNCTIONbm_report_schedule_flag_yn(in_policy_numINNUMBER,in_policy_period_eff_dateINDATE)RETURNVARCHAR2ISv_return_valVARCHAR2(1);BEGINSELECTpptc.payroll_report_schedule_flagINTOv_return_valFROMbilling_masterbm,billing_defaultsbd,payment_plan_type_codepptcWHEREbm.policy_num=in_policy_numANDbm.policy_period_eff_date=in_policy_period_eff_dateANDbm.billing_default_code=bd.billing_default_codeANDbd.payment_plan_type=pptc.code;RETURNv_return_val;EXCEPTIONWHENNO_DATA_FOUNDTHENRETURN'N';WHENOTHERSTHENraise_application_error(-20012,'Error in pk73057.bm_report_schedule_flag_yn '||in_policy_num||' '||in_policy_period_eff_date||' '||SQLERRM);ENDbm_report_schedule_flag_yn;/*********************************************************** * PROCEDURE NAME : is_on_arrears_plan * Determine if the policy period has an arrears plan. prepays are not * considered arrears for this function. * * ***************************************************************** * PROGRAMMER ANALYST DATE MOD # *************************************************************/
Note: Statements marked with * were inferred from code structure, naming conventions, or
contextual evidence where direct confirmation was not available in source artifacts. Statements
marked with ** could not be confirmed; treat as unknown until verified.