<?php

include_once($path_to_root . "/reporting/includes/pdf_report.inc");

class Ext_FrontReport extends FrontReport
{
    function HeaderIssue()
	{
		global $dflt_lang; // FIXME should be passed as params

		$this->SetLang(@$this->formData['rep_lang'] ? $this->formData['rep_lang'] : $dflt_lang);
		$doctype = $this->formData['doctype'];
		$header2type = true;

		$lang = user_language();
		$this->SetLang(@$this->formData['rep_lang'] ? $this->formData['rep_lang']
 			: ( $lang ? $lang : $dflt_lang));

 		 // leave layout files names without path to enable including
 		 // modified versions from company/x/reporting directory
		//$this->title = _("ITEM ISSSUE");
			$this->formData['document_name'] =_("Issue No.");
			$this->formData['document_date'] = $this->formData['date_'];
			$this->formData['document_number'] = $this->formData['reference'];
                        $Addr1['title'] = "Issue From";
			$Addr1['name'] = $this->formData['from_name'];
			$Addr1['address'] = $this->formData['from_address'];
                        
                        $Addr2['title'] = "Issue To";
			$Addr2['name'] = $this->formData['employee_name'];
			$Addr2['name2'] = $this->formData['to_name'];
			$Addr2['address'] = $this->formData['to_address'];
//			$aux_info = array(
//				_("Reference") => $this->formData['reference'],
//				_("Type") => $wo_types_array[$this->formData["type"]],
//				_("Manufactured Item") => $this->formData["StockItemName"],
//				_("Into Location") => $this->formData["location_name"],
//				_("Quantity") => $this->formData["units_issued"],
//			);
			$Payment_Terms = _("N/A");
		include("includes/headerIssue.inc");

		$this->row = $temp;
	}
}