This is the code of the report:
-*component_type report
-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
TABLE FILE HF_OPTION_COST
SUM COMPUTE Payment_Type/I8=IF HF_OPTION_COST.HF_OPTIO.COMP_PAY_DETAIL_UNIT IN ( 'B' , 'BGS' ) THEN HF_OPTION_COST.HF_OPTIO.CounTerminal ELSE IF HF_OPTION_COST.HF_OPTIO.COMP_PAY_DETAIL_UNIT EQ 'T' THEN HF_OPTION_COST.HF_OPTIO.DF_TRX_NBR ELSE IF HF_OPTION_COST.HF_OPTIO.COMP_PAY_DETAIL_UNIT EQ 'BS' THEN HF_OPTION_COST.HF_OPTIO.CounTerminal * HF_OPTION_COST.HF_OPTIO.Scheme ELSE IF HF_OPTION_COST.HF_OPTIO.COMP_PAY_DETAIL_UNIT EQ 'G' THEN 1 ; NOPRINT
COMPUTE Period_Cost/I3=IF HF_OPTION_COST.HF_OPTIO.Var_Pay_Cycle EQ 'D' THEN HF_OPTION_COST.HF_OPTIO.COUNT ELSE IF HF_OPTION_COST.HF_OPTIO.Var_Pay_Cycle EQ 'W' THEN 52 ELSE IF HF_OPTION_COST.HF_OPTIO.Var_Pay_Cycle EQ 'B' THEN 26 ELSE IF HF_OPTION_COST.HF_OPTIO.Var_Pay_Cycle EQ 'M' THEN 12 ; NOPRINT
COMPUTE Option_Bank_Cost/D12.2M=Period_Cost * Costexcltax * Payment_Type ; AS 'Total'
Var_Tac AS 'Turnover' NOPRINT
COMPUTE OptionCostBank_Cost/D12.2%=Option_Bank_Cost/Var_Tac ; AS '%'
COMPUTE Debit/D12.2M=Option_Bank_Cost/Var_Debit_Trx ;
COMPUTE Pct_Debit/D12.2%=Debit/( SUM.Var_Debit_Turnover/SUM.Var_Debit_Trx ) ; AS '% Debit'
COMPUTE Credit/D12.2M=Option_Bank_Cost/Var_Credit_Trx ;
COMPUTE Pct_Credit/D12.2%=Debit/( SUM.Var_Credit_Turnover/SUM.Var_Credit_Trx ) ; AS '% Credit'
BY HF_OPTION_COST.HF_OPTIO.COMP_ID NOPRINT
BY HF_OPTION_COST.HF_OPTIO.COMP_NAME NOPRINT
BY HF_OPTION_COST.HF_OPTIO.SHOP_ID NOPRINT
BY HF_OPTION_COST.HF_OPTIO.COMP_CK_NAME NOPRINT
BY HF_OPTION_COST.HF_OPTIO.COAD_CODE NOPRINT
BY HF_OPTION_COST.HF_OPTIO.COMP_CYCLE NOPRINT
BY HF_OPTION_COST.HF_OPTIO.COMP_UNIT NOPRINT
BY HF_OPTION_COST.HF_OPTIO.Var_Cycle NOPRINT
BY HF_OPTION_COST.HF_OPTIO.Var_Cur NOPRINT
BY HF_OPTION_COST.HF_OPTIO.COBA_CODE NOPRINT
BY Pay_mode NOPRINT
BY tax NOPRINT
BY HF_OPTION_COST.HF_COUNT NOPRINT
ON TABLE SUBTOTAL SUM. AS 'Total Cost:'
ON TABLE SET CACHELINES 100
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET SQUEEZE ON
ON TABLE SET HTMLCSS ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT='Report11', SUMMARY=&WF_SUMMARY.QUOTEDSTRING, ORIENTATION=LANDSCAPE, PAGESIZE=A3, HFREEZE=OFF, ARGRAPHENGINE=JSCHART, $
TYPE=TITLE, COLUMN=N16, COLOR=RGB(32 0 32), BACKCOLOR=RGB(255 255 255), $
TYPE=TITLE, COLUMN=N18, COLOR=RGB(32 0 32), BACKCOLOR=RGB(255 255 255), $
TYPE=TITLE, COLUMN=N19, COLOR=RGB(32 0 32), BACKCOLOR=RGB(255 255 255), $
TYPE=TITLE, COLUMN=N20, COLOR=RGB(32 0 32), BACKCOLOR=RGB(255 255 255), $
TYPE=TITLE, COLUMN=N21, COLOR=RGB(32 0 32), BACKCOLOR=RGB(255 255 255), $
TYPE=TITLE, COLUMN=N22, COLOR=RGB(32 0 32), BACKCOLOR=RGB(255 255 255), $
TYPE=DATA, COLUMN=N16, COLOR=RGB(255 255 255), BACKCOLOR=RGB(255 255 255), $
TYPE=DATA, COLUMN=N18, JUSTIFY=LEFT, COLOR=RGB(255 255 255), BACKCOLOR=RGB(255 255 255), $
TYPE=DATA, COLUMN=N19, COLOR=RGB(255 255 255), BACKCOLOR=RGB(255 255 255), $
TYPE=DATA, COLUMN=N20, JUSTIFY=LEFT, COLOR=RGB(255 255 255), BACKCOLOR=RGB(255 255 255), $
TYPE=DATA, COLUMN=N21, COLOR=RGB(255 255 255), BACKCOLOR=RGB(255 255 255), $
TYPE=DATA, COLUMN=N22, COLOR=RGB(255 255 255), BACKCOLOR=RGB(255 255 255), $
TYPE=REPORT, OBJECT=STATUS-AREA, PAGE-LOCATION=OFF, $
ENDSTYLE
END
WebFOCUS 8.0