<?php
class Receipt extends CI_Controller {

	function __construct(){
		parent::__construct();
	}

	function index(){	
		$this->list_invoices();
	}
	function list_invoices(){
		$this->_page_data['page_title']="List of Invoices";
		$this->_page_data['bredcrum']=array(
										'Add Receipt'=>'#',
										'List of Invoices'=>'#',
										);
		$this->load->view('gc/invoice_list.php',$this->_page_data);
	}
	function list_receipts(){
		$this->_page_data['page_title']="List of Receipts";
		$this->_page_data['bredcrum']=array(
										'Receipt List'=>'#',
										'List of Receipts'=>'#',
										);
		$this->load->view('gc/receipt_list.php',$this->_page_data);
	}
	
	function generate_receipt($purpose=NULL){
		$this->_page_data['page_title']="Receipt";
		$this->_page_data['bredcrum']=array(
										'List of Invoices'=>site_url(RECEIPT_PATH.'list_invoices'),
										'Receipt'=>'#',
										);
		$this->load->view('gc/manage_receipt.php',$this->_page_data);
	}
	function view_receipt($purpose=NULL){
		$this->_page_data['page_title']="Receipt";
		$this->_page_data['bredcrum']=array(
										'List of Receipts'=>site_url(RECEIPT_PATH.'list_receipts'),
										'Receipt'=>'#',
										);
		$this->load->view('gc/view_receipt.php',$this->_page_data);
	}
	function search_invoice(){
		$this->_page_data['page_title']="Search";
		$this->_page_data['bredcrum']=array(
										'Search'=>'#',
										);
		$this->load->view('gc/invoice_search.php',$this->_page_data);
	}
}
?>