@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | $this->document->setTitle('Account'); |
39 | 39 | |
40 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/account/show'); |
|
40 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/account/show'); |
|
41 | 41 | return $smarty->render($this, array('posts' => $posts, 'saldo' => $saldo)); |
42 | 42 | } |
43 | 43 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | { |
46 | 46 | $this->document->addScript($this->url('accounting/edit_account.js')); |
47 | 47 | |
48 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/account/edit'); |
|
48 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/account/edit'); |
|
49 | 49 | return $smarty->render($this); |
50 | 50 | } |
51 | 51 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | 'year' => $this->getYear(), |
36 | 36 | 'accounting_module' => $accounting_module); |
37 | 37 | |
38 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/state/payment'); |
|
38 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/state/payment'); |
|
39 | 39 | return $smarty->render($this, $data); |
40 | 40 | } |
41 | 41 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | return new k_SeeOther($this->url('selectyear')); |
37 | 37 | } |
38 | 38 | |
39 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/state/creditnote'); |
|
39 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/state/creditnote'); |
|
40 | 40 | return $smarty->render($this); |
41 | 41 | |
42 | 42 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | return new k_SeeOther($this->url('selectyear')); |
29 | 29 | } |
30 | 30 | |
31 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/state/invoice'); |
|
31 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/state/invoice'); |
|
32 | 32 | return $smarty->render($this); |
33 | 33 | } |
34 | 34 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | 'object' => $this->getDebtor(), |
31 | 31 | 'year' => $this->getYear()); |
32 | 32 | |
33 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/state/depreciation'); |
|
33 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/state/depreciation'); |
|
34 | 34 | return $smarty->render($this, $data); |
35 | 35 | } |
36 | 36 |
@@ -44,13 +44,13 @@ |
||
44 | 44 | $voucher_file = new VoucherFile($this->getVoucher()); |
45 | 45 | $voucher_files = $voucher_file->getList(); |
46 | 46 | |
47 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/voucher/show'); |
|
47 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/voucher/show'); |
|
48 | 48 | return $smarty->render($this); |
49 | 49 | } |
50 | 50 | |
51 | 51 | function renderHtmlEdit() |
52 | 52 | { |
53 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/voucher/edit'); |
|
53 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/voucher/edit'); |
|
54 | 54 | return $smarty->render($this); |
55 | 55 | } |
56 | 56 |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | function renderHtml() |
25 | 25 | { |
26 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/voucher/index'); |
|
26 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/voucher/index'); |
|
27 | 27 | return $smarty->render($this); |
28 | 28 | } |
29 | 29 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | { |
32 | 32 | $year = $this->getYear(); |
33 | 33 | |
34 | - $this->db_sql->query("SELECT * FROM accounting_voucher WHERE intranet_id = " . $year->kernel->intranet->get('id') . " AND year_id = " . $year->get('id') . " ORDER BY number ASC"); |
|
34 | + $this->db_sql->query("SELECT * FROM accounting_voucher WHERE intranet_id = ".$year->kernel->intranet->get('id')." AND year_id = ".$year->get('id')." ORDER BY number ASC"); |
|
35 | 35 | //$i++; |
36 | 36 | $posts = array(); |
37 | 37 | while ($this->db_sql->nextRecord()) { |
@@ -44,10 +44,10 @@ discard block |
||
44 | 44 | $workbook->setVersion(8); |
45 | 45 | |
46 | 46 | // sending HTTP headers |
47 | - $workbook->send($this->getKernel()->intranet->get('name') . ' - poster ' . $year->get('label')); |
|
47 | + $workbook->send($this->getKernel()->intranet->get('name').' - poster '.$year->get('label')); |
|
48 | 48 | |
49 | 49 | // Creating a worksheet |
50 | - $worksheet = $workbook->addWorksheet('Konti ' . $year->get('label')); |
|
50 | + $worksheet = $workbook->addWorksheet('Konti '.$year->get('label')); |
|
51 | 51 | $worksheet->setInputEncoding('UTF-8'); |
52 | 52 | |
53 | 53 | $format_bold = $workbook->addFormat(); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | 'saldo_total' => $saldo_total |
44 | 44 | ); |
45 | 45 | |
46 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/vat/show'); |
|
46 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/vat/show'); |
|
47 | 47 | return $smarty->render($this, $data); |
48 | 48 | } |
49 | 49 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $periods = $vat_period->getList(); |
42 | 42 | $post = new Post(new Voucher($year)); |
43 | 43 | |
44 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/vat/period'); |
|
44 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/vat/period'); |
|
45 | 45 | return $smarty->render($this); |
46 | 46 | } |
47 | 47 |