+ $destination = $_POST['PARAM_4'];
+ if ($destination)
+ {
+ include_once($path_to_root . "/reporting/includes/excel_report.inc");
+ $filename = "SupplierBalances.xml";
+ }
+ else
+ {
+ include_once($path_to_root . "/reporting/includes/pdf_report.inc");
+ $filename = "SupplierBalances.pdf";
+ }