@@ -14,7 +14,7 @@ |
||
14 | 14 | |
15 | 15 | function renderHtml() |
16 | 16 | { |
17 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/product'); |
|
17 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/product'); |
|
18 | 18 | return $smarty->render($this); |
19 | 19 | } |
20 | 20 |
@@ -13,9 +13,9 @@ |
||
13 | 13 | |
14 | 14 | function renderHtml() |
15 | 15 | { |
16 | - $this->document->setTitle('Set stock for variations for product ' . $this->getProduct()->get('name')); |
|
16 | + $this->document->setTitle('Set stock for variations for product '.$this->getProduct()->get('name')); |
|
17 | 17 | |
18 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/variations'); |
|
18 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/variations'); |
|
19 | 19 | return $smarty->render($this, array('variations' => $this->getProduct()->getVariations(), 'product' => $this->context->getProduct())); |
20 | 20 | } |
21 | 21 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | ); |
18 | 18 | } else { |
19 | 19 | $db = new DB_Sql; |
20 | - $db->query("SELECT * FROM debtor WHERE type = 2 AND status = 0 AND active = 1 AND intranet_id = " . $kernel->intranet->get('id')); |
|
20 | + $db->query("SELECT * FROM debtor WHERE type = 2 AND status = 0 AND active = 1 AND intranet_id = ".$kernel->intranet->get('id')); |
|
21 | 21 | $orders = $db->numRows(); |
22 | 22 | if ($orders > 0) { |
23 | 23 | $_attention_needed[] = array( |
@@ -98,10 +98,10 @@ discard block |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | $data = array( |
101 | - 'procurement' => $this->getProcurement(), |
|
102 | - 'kernel' => $this->getKernel(), |
|
103 | - 'append_file' => $append_file, |
|
104 | - 'filehandler' => $filehandler); |
|
101 | + 'procurement' => $this->getProcurement(), |
|
102 | + 'kernel' => $this->getKernel(), |
|
103 | + 'append_file' => $append_file, |
|
104 | + 'filehandler' => $filehandler); |
|
105 | 105 | $tpl = $this->template->create(dirname(__FILE__) . '/templates/show'); |
106 | 106 | return $tpl->render($this, $data); |
107 | 107 | } |
@@ -113,9 +113,9 @@ discard block |
||
113 | 113 | $this->document->addScript('procurement/edit.js'); |
114 | 114 | |
115 | 115 | $data = array( |
116 | - 'procurement' => $this->getProcurement(), |
|
117 | - 'kernel' => $this->getKernel(), |
|
118 | - 'title' => $this->t("Edit procurement"), |
|
116 | + 'procurement' => $this->getProcurement(), |
|
117 | + 'kernel' => $this->getKernel(), |
|
118 | + 'title' => $this->t("Edit procurement"), |
|
119 | 119 | 'gateway' => new Intraface_modules_procurement_ProcurementGateway($this->getKernel()), |
120 | 120 | 'values' => $this->getValues()); |
121 | 121 | $tpl = $this->template->create(dirname(__FILE__) . '/templates/procurement-edit'); |
@@ -245,8 +245,8 @@ discard block |
||
245 | 245 | { |
246 | 246 | $this->getProcurement()->loadItem(); |
247 | 247 | $this->getProcurement()->item->save(array( |
248 | - 'product_id' => $product['product_id'], |
|
249 | - 'product_variation_id' => $product['product_variation_id'], |
|
250 | - 'quantity' => intval($quantity))); |
|
248 | + 'product_id' => $product['product_id'], |
|
249 | + 'product_variation_id' => $product['product_variation_id'], |
|
250 | + 'quantity' => intval($quantity))); |
|
251 | 251 | } |
252 | 252 | } |
253 | 253 | \ No newline at end of file |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $contact_module = $this->getKernel()->useModule('contact'); |
56 | 56 | |
57 | 57 | $redirect = Intraface_Redirect::factory($this->getKernel(), 'go'); |
58 | - $url = $redirect->setDestination(NET_SCHEME . NET_HOST . $this->url('choosecontact'), NET_SCHEME . NET_HOST . $this->url()); |
|
58 | + $url = $redirect->setDestination(NET_SCHEME.NET_HOST.$this->url('choosecontact'), NET_SCHEME.NET_HOST.$this->url()); |
|
59 | 59 | $redirect->askParameter('contact_id'); |
60 | 60 | $redirect->setIdentifier('contact'); |
61 | 61 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | 'kernel' => $this->getKernel(), |
103 | 103 | 'append_file' => $append_file, |
104 | 104 | 'filehandler' => $filehandler); |
105 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/show'); |
|
105 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/show'); |
|
106 | 106 | return $tpl->render($this, $data); |
107 | 107 | } |
108 | 108 | |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | 'title' => $this->t("Edit procurement"), |
119 | 119 | 'gateway' => new Intraface_modules_procurement_ProcurementGateway($this->getKernel()), |
120 | 120 | 'values' => $this->getValues()); |
121 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/procurement-edit'); |
|
121 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/procurement-edit'); |
|
122 | 122 | return $tpl->render($this, $data); |
123 | 123 | } |
124 | 124 |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | 'procurements' => $procurements |
68 | 68 | ); |
69 | 69 | |
70 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/index'); |
|
70 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/index'); |
|
71 | 71 | return $smarty->render($this, $data); |
72 | 72 | } |
73 | 73 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | 'gateway' => $this->getProcurementGateway() |
83 | 83 | ); |
84 | 84 | |
85 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/procurement-edit'); |
|
85 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/procurement-edit'); |
|
86 | 86 | return $smarty->render($this, $data); |
87 | 87 | } |
88 | 88 |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | if (isset($_GET['change_product'])) { |
68 | 68 | $redirect = Intraface_Redirect::factory($this->getKernel(), 'go'); |
69 | - $url = $redirect->setDestination(NET_SCHEME . NET_HOST . $this->url('selectproduct'), NET_SCHEME . NET_HOST . $this->url()); |
|
69 | + $url = $redirect->setDestination(NET_SCHEME.NET_HOST.$this->url('selectproduct'), NET_SCHEME.NET_HOST.$this->url()); |
|
70 | 70 | $redirect->askParameter('product_id'); |
71 | 71 | return new k_SeeOther($url); |
72 | 72 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | $data = array('procurement' => $procurement, 'values' => $values); |
83 | 83 | |
84 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/item-edit'); |
|
84 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/item-edit'); |
|
85 | 85 | return $tpl->render($this, $data); |
86 | 86 | |
87 | 87 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | $procurement = $this->context->getProcurement(); |
17 | 17 | |
18 | 18 | $data = array( |
19 | - 'items' => $procurement->getItems(), |
|
19 | + 'items' => $procurement->getItems(), |
|
20 | 20 | 'procurement' => $procurement |
21 | 21 | ); |
22 | 22 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | 'procurement' => $procurement |
21 | 21 | ); |
22 | 22 | |
23 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/purchaseprice'); |
|
23 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/purchaseprice'); |
|
24 | 24 | return $tpl->render($this, $data); |
25 | 25 | } |
26 | 26 |
@@ -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 | } |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | |
40 | 40 | private function start() |
41 | 41 | { |
42 | - $this->output .= '<?xml version="1.0" encoding="iso-8859-1"?>' . "\n"; |
|
43 | - $this->output .= '<Invoice xmlns="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/" xmlns:com="http://rep.oio.dk/ubl/xml/schemas/0p71/common/" xmlns:main="http://rep.oio.dk/ubl/xml/schemas/0p71/maindoc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/ http://rep.oio.dk/ubl/xml/schemas/0p71/pie/pieStrict.xsd">' . "\n"; |
|
42 | + $this->output .= '<?xml version="1.0" encoding="iso-8859-1"?>'."\n"; |
|
43 | + $this->output .= '<Invoice xmlns="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/" xmlns:com="http://rep.oio.dk/ubl/xml/schemas/0p71/common/" xmlns:main="http://rep.oio.dk/ubl/xml/schemas/0p71/maindoc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/ http://rep.oio.dk/ubl/xml/schemas/0p71/pie/pieStrict.xsd">'."\n"; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | private function end() |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | public function output($debtor) |
52 | 52 | { |
53 | 53 | $this->start(); |
54 | - $this->output .= '<com:ID>'.$debtor->get('id').'</com:ID>' . "\n"; |
|
54 | + $this->output .= '<com:ID>'.$debtor->get('id').'</com:ID>'."\n"; |
|
55 | 55 | $this->output .= '<com:IssueDate>'.$debtor->get('date_due').'</com:IssueDate>'; |
56 | 56 | $this->output .= '<com:TypeCode>PIE</com:TypeCode>'; |
57 | 57 | $this->output .= '<main:InvoiceCurrencyCode>DKK</main:InvoiceCurrencyCode>'; |