46 public function view_receipt($id)
47 {
48 $data['receipt'] = $this->company_model->get_receipt($id);
49 $data['receipt']->description = explode('^', $data['receipt']->description);
50 $data['receipt']->price = explode('^', $data['receipt']->price);
51 $data['receipt']->quantity = explode('^', $data['receipt']->quantity);
52 $data['company'] = $this->company_model->get_my_company();
53 $credit_term = new NumberFormatter("en", NumberFormatter::SPELLOUT);
54 $data['credit_term'] = $credit_term->format($data['receipt']->credit_term);
55 echo view('templates/receipt', $data);
56 }