</h:panelGroup>
                            </h:panelGroup>

                            <h:panelGroup 
                                rendered="#{pharmacyBillSearch.showAllBillFormats 
                                            or (sessionController.loggedPreference.pharmacyBillPaperType eq 'PosPaper' 
                                            and not sessionController.loggedPreference.grnBillDetailed)}">

                                <h:panelGroup rendered="#{pharmacyBillSearch.showAllBillFormats}"