@@ -13,7 +13,7 @@ |
||
13 | 13 | $currency_iso_code = 'DKK'; |
14 | 14 | } |
15 | 15 | |
16 | - $table->addRow(array(round($item["quantity"]), substr($item["name"], 0, 40), $currency_iso_code.' ' . $amount)); |
|
16 | + $table->addRow(array(round($item["quantity"]), substr($item["name"], 0, 40), $currency_iso_code.' '.$amount)); |
|
17 | 17 | } |
18 | 18 | return $table->getTable(); |
19 | 19 | } |
@@ -89,7 +89,7 @@ |
||
89 | 89 | */ |
90 | 90 | public function getAmount() |
91 | 91 | { |
92 | - return new Ilib_Variable_Float($this->getQuantity()->getAsIso(2) * $this->getProductPriceObject()->getPriceIncludingVat($this->getProduct())->getAsIso(2), 'iso'); |
|
92 | + return new Ilib_Variable_Float($this->getQuantity()->getAsIso(2)*$this->getProductPriceObject()->getPriceIncludingVat($this->getProduct())->getAsIso(2), 'iso'); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | public function getQuantity() |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | $invoice_module = $this->getKernel()->useModule('invoice'); |
22 | 22 | $depreciation = $this->getModel(); |
23 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/depreciation'); |
|
23 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/depreciation'); |
|
24 | 24 | return $smarty->render($this); |
25 | 25 | } |
26 | 26 |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | 'kernel' => $this->context->getKernel(), |
59 | 59 | 'scan_in_contact' => $scan_in_contact); |
60 | 60 | |
61 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/settings'); |
|
61 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/settings'); |
|
62 | 62 | return $smarty->render($this, $data); |
63 | 63 | } |
64 | 64 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $contact_module = $this->context->getKernel()->useModule('contact'); |
116 | 116 | |
117 | 117 | $redirect = Intraface_Redirect::factory($this->context->getKernel(), 'go'); |
118 | - $url = $redirect->setDestination(NET_SCHEME . NET_HOST . $this->url('contact'), $debtor_module->getPath()."settings"); |
|
118 | + $url = $redirect->setDestination(NET_SCHEME.NET_HOST.$this->url('contact'), $debtor_module->getPath()."settings"); |
|
119 | 119 | $redirect->askParameter('contact_id'); |
120 | 120 | $redirect->setIdentifier('contact'); |
121 | 121 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | function renderHtml() |
18 | 18 | { |
19 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/payment'); |
|
19 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/payment'); |
|
20 | 20 | return $smarty->render($this); |
21 | 21 | } |
22 | 22 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $payment = $this->getModel(); |
26 | 26 | if ($id = $payment->update($_POST)) { |
27 | 27 | if ($this->getKernel()->user->hasModuleAccess('accounting')) { |
28 | - return new k_SeeOther($this->url($id . '/state')); |
|
28 | + return new k_SeeOther($this->url($id.'/state')); |
|
29 | 29 | } else { |
30 | 30 | return new k_SeeOther($this->url('../')); |
31 | 31 | } |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | { |
43 | 43 | $result = $this->db->query('SELECT id |
44 | 44 | FROM shop_featuredproducts |
45 | - WHERE intranet_id = ' . $this->db->quote($this->intranet->getId(), 'integer') . ' |
|
46 | - AND shop_id = ' . $this->db->quote($this->shop->getId(), 'integer') . ' |
|
45 | + WHERE intranet_id = ' . $this->db->quote($this->intranet->getId(), 'integer').' |
|
46 | + AND shop_id = ' . $this->db->quote($this->shop->getId(), 'integer').' |
|
47 | 47 | AND keyword_id = ' . $this->db->quote($keyword->getId(), 'integer')); |
48 | 48 | if (PEAR::isError($result)) { |
49 | 49 | throw new Exception($result->getUserInfo()); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | function delete($id) |
73 | 73 | { |
74 | - $result = $this->db->query('DELETE FROM shop_featuredproducts WHERE intranet_id = ' . $this->db->quote($this->intranet->getId(), 'integer') . ' AND shop_id = ' . $this->db->quote($this->shop->getId(), 'integer') . ' AND id = ' . $this->db->quote($id, 'integer')); |
|
74 | + $result = $this->db->query('DELETE FROM shop_featuredproducts WHERE intranet_id = '.$this->db->quote($this->intranet->getId(), 'integer').' AND shop_id = '.$this->db->quote($this->shop->getId(), 'integer').' AND id = '.$this->db->quote($id, 'integer')); |
|
75 | 75 | if (PEAR::isError($result)) { |
76 | 76 | throw new Exception($result->getUserInfo()); |
77 | 77 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | function getAll() |
82 | 82 | { |
83 | 83 | $result = $this->db->query('SELECT * FROM shop_featuredproducts |
84 | - WHERE intranet_id = ' . $this->db->quote($this->intranet->getId(), 'integer') . ' |
|
84 | + WHERE intranet_id = ' . $this->db->quote($this->intranet->getId(), 'integer').' |
|
85 | 85 | AND shop_id = ' . $this->db->quote($this->shop->getId(), 'integer')); |
86 | 86 | if (PEAR::isError($result)) { |
87 | 87 | throw new Exception($result->getUserInfo()); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | { |
26 | 26 | $shop = $this->getShop(); |
27 | 27 | |
28 | - $this->document->setTitle('Basket evaluation for' . ' ' . $shop->name); |
|
28 | + $this->document->setTitle('Basket evaluation for'.' '.$shop->name); |
|
29 | 29 | $this->document->options = array($this->url('../') => 'Close'); |
30 | 30 | |
31 | 31 | $basketevaluation = new Intraface_modules_shop_BasketEvaluation($this->mdb2, $this->getKernel()->intranet, $shop); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | $data = array('shop' => $shop, 'evaluations' => $evaluations); |
35 | 35 | |
36 | - $tpl = $this->template->create(dirname(__FILE__) . '/../tpl/evaluation-index'); |
|
36 | + $tpl = $this->template->create(dirname(__FILE__).'/../tpl/evaluation-index'); |
|
37 | 37 | return $tpl->render($this, $data); |
38 | 38 | } |
39 | 39 |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | { |
22 | 22 | $this->document->setTitle($this->getModel()->getName()); |
23 | 23 | |
24 | - $tpl = $this->template->create(dirname(__FILE__) . '/../tpl/category'); |
|
24 | + $tpl = $this->template->create(dirname(__FILE__).'/../tpl/category'); |
|
25 | 25 | return $tpl->render($this); |
26 | 26 | } |
27 | 27 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | 'category_object' => $this->getModel(), |
35 | 35 | 'regret_link' => $redirect->getRedirect($this->url('../')) |
36 | 36 | ); |
37 | - $tpl = $this->template->create(dirname(__FILE__) . '/../tpl/categories-edit'); |
|
37 | + $tpl = $this->template->create(dirname(__FILE__).'/../tpl/categories-edit'); |
|
38 | 38 | return $tpl->render($this, $data); |
39 | 39 | } |
40 | 40 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | 'category_object' => $this->getModel(), |
42 | 42 | 'regret_link' => $redirect->getRedirect($this->url('../')) |
43 | 43 | ); |
44 | - $tpl = $this->template->create(dirname(__FILE__) . '/../tpl/categories-edit'); |
|
44 | + $tpl = $this->template->create(dirname(__FILE__).'/../tpl/categories-edit'); |
|
45 | 45 | return $tpl->render($this, $data); |
46 | 46 | } |
47 | 47 |