Symptoms
This article describes how to hide the Unpaid Orders & Invoices and Invoices & Payment History tabs for Financial Documents screen in Customer Control Panel for all customers or only for Provider's customers.Note: only works for PBA 5.5, will not work for 5.4.x
Resolution
The instructions below refer to PBA for Linux only. In case of PBA for Windows, check the UI Customization Guide.1. At the ~pba/customization/ directory, create the following customization files with respective content as described:
a. SalesOrder_CCP_FinDocsUnited.xml with the following content:
<window id="SalesOrder_CCP_FinDocsUnited">
<elements>
<tabbar tabs_mod=!tab_Invoices,!tab_Payments/>
</elements>
</window>
b. CCP_FinancialDocuments.xml with the following content:
<window id="CCP_FinancialDocuments">
<elements>
<data type="STR" id="_show_tab" value="tab_Open"/>
</elements>
<actions>
<action id="StandardInput">
<call type="window" callee=BM::SalesOrder_CDB_MyUnprocessedOrdersList(_create_tabs,_tabs_package,_tabs_title,_tabs_window,_show_tab) return=/>
</action>
</actions>
</window>
2. Hide the tabs
a. for all customers:
Run the following commands to create symlinks between your customization files and PBA:
#ln -s ~pba/customization /usr/local/bm/conf/wnd/BM/customization
#ln -s ~pba/customization /usr/local/bm/conf/wnd/UIGATE
b. only for Provider's customers:
#ln -s ~pba/customization /usr/local/bm/conf/wnd/BM/customization_1
#ln -s ~pba/customization /usr/local/bm/conf/wnd/UIGATE/customization_1
Please note the paths above contain ‘customization_1’, where ‘1’ is internal identifier of Provider (always is ‘1’). You can create similar symlinks for Resellers (replace ‘1’ with actual identifier of Reseller, for example, ‘1000011’).
3. Restart PBA UI gate to apply customization:
#/etc/init.d/pba restart www
4. After restart is complete, login to PBA and the changes.