//----------------------------------------------------------------------------------------------------
-// trial_inquiry_controls();
print_bill_of_material();
function getTransactions($from, $to)
$comments = $_POST['PARAM_2'];
$destination = $_POST['PARAM_3'];
if ($destination)
- {
include_once($path_to_root . "/reporting/includes/excel_report.inc");
- $filename = "BillOfMaterial.xml";
- }
else
- {
include_once($path_to_root . "/reporting/includes/pdf_report.inc");
- $filename = "BillOfMaterial.pdf";
- }
$cols = array(0, 50, 305, 375, 445, 515);
$params = array( 0 => $comments,
1 => array('text' => _('Component'), 'from' => $frompart, 'to' => $topart));
- $rep = new FrontReport(_('Bill of Material Listing'), $filename, user_pagesize());
+ $rep = new FrontReport(_('Bill of Material Listing'), "BillOfMaterial", user_pagesize());
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);