@@ -10,14 +10,14 @@ discard block |
||
10 | 10 | |
11 | 11 | function visit(Reminder $reminder) |
12 | 12 | { |
13 | - $this->output .= "Dato: " . $reminder->get("dk_this_date") ."\n\n"; |
|
14 | - $this->output .= $reminder->contact->address->get("name") . "\n"; |
|
13 | + $this->output .= "Dato: ".$reminder->get("dk_this_date")."\n\n"; |
|
14 | + $this->output .= $reminder->contact->address->get("name")."\n"; |
|
15 | 15 | if ($reminder->get("attention_to") != "") { |
16 | 16 | $this->output .= "Att.: ".$reminder->get("attention_to")."\n"; |
17 | 17 | } |
18 | - $this->output .= $reminder->contact->address->get("address") . "\n"; |
|
19 | - $this->output .= $reminder->contact->address->get("postcode") . " " . $reminder->contact->address->get("city") ."\n\n"; |
|
20 | - $this->output .= $reminder->get("text") . "\n\n"; |
|
18 | + $this->output .= $reminder->contact->address->get("address")."\n"; |
|
19 | + $this->output .= $reminder->contact->address->get("postcode")." ".$reminder->contact->address->get("city")."\n\n"; |
|
20 | + $this->output .= $reminder->get("text")."\n\n"; |
|
21 | 21 | |
22 | 22 | // Overskrifter - Vareudskrivning |
23 | 23 | $this->output .= "Beskrivelse Dato Forfaldsdato Beløb\n"; |
@@ -27,25 +27,25 @@ discard block |
||
27 | 27 | for ($i = 0, $max = count($items); $i < $max; $i++) { |
28 | 28 | $this->output .= "\nFak# ".$items[$i]["number"]; |
29 | 29 | $spaces = -strlen($items[$i]["number"]) - 5 + 20; |
30 | - for ($j = 0; $j < $spaces; $j++) { $this->output .= ' '; } |
|
31 | - $this->output .= ' ' . $items[$i]["dk_this_date"]; |
|
32 | - $this->output .= ' ' . $items[$i]["dk_due_date"]; |
|
33 | - $this->output .= ' ' . number_format($items[$i]["arrears"], 2, ",", "."); |
|
30 | + for ($j = 0; $j < $spaces; $j++) { $this->output .= ' '; } |
|
31 | + $this->output .= ' '.$items[$i]["dk_this_date"]; |
|
32 | + $this->output .= ' '.$items[$i]["dk_due_date"]; |
|
33 | + $this->output .= ' '.number_format($items[$i]["arrears"], 2, ",", "."); |
|
34 | 34 | $total += $items[$i]["arrears"]; |
35 | 35 | } |
36 | 36 | $items = $reminder->item->getList("reminder"); |
37 | 37 | for ($i = 0, $max = count($items); $i < $max; $i++) { |
38 | 38 | $this->output .= "\nTidl. rykkkergebyr "; |
39 | - $this->output .= ' ' . $items[$i]["dk_this_date"]; |
|
40 | - $this->output .= ' ' .$items[$i]["dk_due_date"]; |
|
41 | - $this->output .= ' ' . number_format($items[$i]["reminder_fee"], 2, ",", "."); |
|
39 | + $this->output .= ' '.$items[$i]["dk_this_date"]; |
|
40 | + $this->output .= ' '.$items[$i]["dk_due_date"]; |
|
41 | + $this->output .= ' '.number_format($items[$i]["reminder_fee"], 2, ",", "."); |
|
42 | 42 | $total += $items[$i]["reminder_fee"]; |
43 | 43 | } |
44 | 44 | if ($reminder->get("reminder_fee") != 0) { |
45 | 45 | $this->output .= "\nRykkergebyr ".number_format($reminder->get("reminder_fee"), 2, ",", "."); |
46 | 46 | $total += $reminder->get("reminder_fee"); |
47 | 47 | } |
48 | - $this->output .= "\n\nTotal: " . number_format($total, 2, ",", "."); |
|
48 | + $this->output .= "\n\nTotal: ".number_format($total, 2, ",", "."); |
|
49 | 49 | |
50 | 50 | $parameter = array( |
51 | 51 | "contact" => $reminder->contact, |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | "amount" => $total, |
54 | 54 | "due_date" => $reminder->get("dk_due_date"), |
55 | 55 | "girocode" => $reminder->get("girocode")); |
56 | - $this->output .= "\n\nDet skyldige beløb betales senest: " . $parameter['due_date']; |
|
56 | + $this->output .= "\n\nDet skyldige beløb betales senest: ".$parameter['due_date']; |
|
57 | 57 | |
58 | 58 | // TODO: change to payment_method |
59 | 59 | switch ($reminder->get('payment_method_key')) { |
@@ -63,16 +63,16 @@ discard block |
||
63 | 63 | $this->output .= "\nBank: ".$reminder->kernel->setting->get('intranet', 'bank_name'); |
64 | 64 | $this->output .= "\nRegnr.: ".$reminder->kernel->setting->get('intranet', 'bank_reg_number'); |
65 | 65 | $this->output .= "\nKontonr.: ".$reminder->kernel->setting->get('intranet', 'bank_account_number'); |
66 | - $this->output .= "\nBesked til modtager: " . "Kunde #" . $reminder->contact->get("number"); |
|
66 | + $this->output .= "\nBesked til modtager: "."Kunde #".$reminder->contact->get("number"); |
|
67 | 67 | break; |
68 | 68 | case 3: |
69 | 69 | $this->output .= "\n\nBetaling via homebanking\n+71< ".str_repeat("0", 15 - strlen($parameter["girocode"])).$parameter["girocode"]." +".$this->context->getKernel()->setting->get('intranet', 'giro_account_number')."<"; |
70 | 70 | break; |
71 | 71 | } |
72 | 72 | |
73 | - $this->output .= "\n\nMed venlig hilsen\n\n" . $reminder->kernel->user->getAddress()->get("name") . "\n" .$reminder->kernel->intranet->get("name"); |
|
74 | - $this->output .= "\n" . $reminder->kernel->intranet->address->get("address"); |
|
75 | - $this->output .= "\n" . $reminder->kernel->intranet->address->get("postcode") . " " . $reminder->kernel->intranet->address->get("city"); |
|
73 | + $this->output .= "\n\nMed venlig hilsen\n\n".$reminder->kernel->user->getAddress()->get("name")."\n".$reminder->kernel->intranet->get("name"); |
|
74 | + $this->output .= "\n".$reminder->kernel->intranet->address->get("address"); |
|
75 | + $this->output .= "\n".$reminder->kernel->intranet->address->get("postcode")." ".$reminder->kernel->intranet->address->get("city"); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | public function getText() |
@@ -104,14 +104,14 @@ discard block |
||
104 | 104 | throw new Exception('Kontaktpersonen har ikke nogen email'); |
105 | 105 | } |
106 | 106 | |
107 | - $subject = "Påmindelse om betaling"; |
|
107 | + $subject = "Påmindelse om betaling"; |
|
108 | 108 | |
109 | 109 | $reminder_text = new Reminder_Text(); |
110 | 110 | $reminder_text->visit($reminder); |
111 | 111 | |
112 | 112 | $body = $reminder_text->getText(); |
113 | 113 | |
114 | - switch($this->context->getKernel()->setting->get('intranet', 'debtor.sender')) { |
|
114 | + switch ($this->context->getKernel()->setting->get('intranet', 'debtor.sender')) { |
|
115 | 115 | case 'intranet': |
116 | 116 | $from_email = ''; |
117 | 117 | $from_name = ''; |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | if ($id = $email->save($var)) { |
143 | 143 | $redirect = new Intraface_Redirect($this->context->getKernel()); |
144 | 144 | $shared_email = $this->context->getKernel()->useModule('email'); |
145 | - $url = $redirect->setDestination($shared_email->getPath().$id . '?edit', NET_SCHME . NET_HOST . $this->context->url()); |
|
145 | + $url = $redirect->setDestination($shared_email->getPath().$id.'?edit', NET_SCHME.NET_HOST.$this->context->url()); |
|
146 | 146 | $redirect->setIdentifier('send_email'); |
147 | 147 | $redirect->askParameter('send_email_status'); |
148 | 148 | return new k_SeeOther($url); |
@@ -24,11 +24,11 @@ |
||
24 | 24 | $object = $this->getModel(); |
25 | 25 | $payment = $this->getPayment(); |
26 | 26 | if ($id = $payment->update($_POST)) { |
27 | - if ($this->getKernel()->user->hasModuleAccess('accounting')) { |
|
28 | - return new k_SeeOther($this->url($id . '/state')); |
|
29 | - } else { |
|
30 | - return new k_SeeOther($this->url('../')); |
|
31 | - } |
|
27 | + if ($this->getKernel()->user->hasModuleAccess('accounting')) { |
|
28 | + return new k_SeeOther($this->url($id . '/state')); |
|
29 | + } else { |
|
30 | + return new k_SeeOther($this->url('../')); |
|
31 | + } |
|
32 | 32 | } |
33 | 33 | return $this->render(); |
34 | 34 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | function renderHtml() |
17 | 17 | { |
18 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/payment'); |
|
18 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/payment'); |
|
19 | 19 | return $smarty->render($this); |
20 | 20 | } |
21 | 21 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $payment = $this->getPayment(); |
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 | } |
@@ -30,12 +30,12 @@ discard block |
||
30 | 30 | $product_module = $this->getKernel()->useModule('product'); |
31 | 31 | |
32 | 32 | if (isset($_GET['change_product'])) { |
33 | - $redirect = Intraface_Redirect::factory($this->getKernel(), 'go'); |
|
34 | - $url = $redirect->setDestination(NET_SCHEME . NET_HOST . $this->url('selectproduct'), NET_SCHEME . NET_HOST . $this->url()); |
|
35 | - $redirect->askParameter('product_id'); |
|
36 | - return new k_SeeOther($url); |
|
33 | + $redirect = Intraface_Redirect::factory($this->getKernel(), 'go'); |
|
34 | + $url = $redirect->setDestination(NET_SCHEME . NET_HOST . $this->url('selectproduct'), NET_SCHEME . NET_HOST . $this->url()); |
|
35 | + $redirect->askParameter('product_id'); |
|
36 | + return new k_SeeOther($url); |
|
37 | 37 | } |
38 | - /* |
|
38 | + /* |
|
39 | 39 | elseif (isset($_GET['return_redirect_id'])) { |
40 | 40 | $redirect = Intraface_Redirect::factory($this->getKernel(), 'return'); |
41 | 41 | $returned_values = unserialize($redirect->getParameter('product_id')); |
@@ -65,15 +65,15 @@ discard block |
||
65 | 65 | |
66 | 66 | function postForm() |
67 | 67 | { |
68 | - $debtor = $this->context->getDebtor(); |
|
69 | - $debtor->loadItem(intval($_POST["id"])); |
|
68 | + $debtor = $this->context->getDebtor(); |
|
69 | + $debtor->loadItem(intval($_POST["id"])); |
|
70 | 70 | |
71 | - if ($id = $debtor->item->save($_POST)) { |
|
72 | - return new k_SeeOther($this->url('../../')); |
|
73 | - } else { |
|
74 | - $values = $_POST; |
|
75 | - } |
|
76 | - return $this->render(); |
|
71 | + if ($id = $debtor->item->save($_POST)) { |
|
72 | + return new k_SeeOther($this->url('../../')); |
|
73 | + } else { |
|
74 | + $values = $_POST; |
|
75 | + } |
|
76 | + return $this->render(); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | function addItem($returned_values) |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | if (isset($_GET['change_product'])) { |
33 | 33 | $redirect = Intraface_Redirect::factory($this->getKernel(), 'go'); |
34 | - $url = $redirect->setDestination(NET_SCHEME . NET_HOST . $this->url('selectproduct'), NET_SCHEME . NET_HOST . $this->url()); |
|
34 | + $url = $redirect->setDestination(NET_SCHEME.NET_HOST.$this->url('selectproduct'), NET_SCHEME.NET_HOST.$this->url()); |
|
35 | 35 | $redirect->askParameter('product_id'); |
36 | 36 | return new k_SeeOther($url); |
37 | 37 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | } |
45 | 45 | */ |
46 | 46 | |
47 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/item-edit'); |
|
47 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/item-edit'); |
|
48 | 48 | return $smarty->render($this); |
49 | 49 | } |
50 | 50 |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | } |
52 | 52 | } |
53 | 53 | |
54 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/reminder'); |
|
54 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/reminder'); |
|
55 | 55 | return $smarty->render($this); |
56 | 56 | } |
57 | 57 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $checked_reminder[] = $reminders[$i]["reminder_id"]; |
83 | 83 | } |
84 | 84 | |
85 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/reminder-edit'); |
|
85 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/reminder-edit'); |
|
86 | 86 | return $smarty->render($this, array('value' => $value, 'checked_invoice' => $checked_invoice, 'checked_reminder' => $checked_reminder)); |
87 | 87 | } |
88 | 88 | |
@@ -180,14 +180,14 @@ discard block |
||
180 | 180 | throw new Exception('Kontaktpersonen har ikke nogen email'); |
181 | 181 | } |
182 | 182 | |
183 | - $subject = "Påmindelse om betaling"; |
|
183 | + $subject = "Påmindelse om betaling"; |
|
184 | 184 | |
185 | 185 | $reminder_text = new Reminder_Text(); |
186 | 186 | $reminder_text->visit($reminder); |
187 | 187 | |
188 | 188 | $body = $reminder_text->getText(); |
189 | 189 | |
190 | - switch($this->getKernel()->setting->get('intranet', 'debtor.sender')) { |
|
190 | + switch ($this->getKernel()->setting->get('intranet', 'debtor.sender')) { |
|
191 | 191 | case 'intranet': |
192 | 192 | $from_email = ''; |
193 | 193 | $from_name = ''; |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | if ($id = $email->save($var)) { |
219 | 219 | $redirect = new Intraface_Redirect($this->getKernel()); |
220 | 220 | $shared_email = $this->getKernel()->useModule('email'); |
221 | - $url = $redirect->setDestination($shared_email->getPath() . $id . '?edit', NET_SCHEME . NET_HOST . $this->url()); |
|
221 | + $url = $redirect->setDestination($shared_email->getPath().$id.'?edit', NET_SCHEME.NET_HOST.$this->url()); |
|
222 | 222 | $redirect->setIdentifier('send_email'); |
223 | 223 | $redirect->askParameter('send_email_status'); |
224 | 224 | return new k_SeeOther($url); |
@@ -263,14 +263,14 @@ discard block |
||
263 | 263 | |
264 | 264 | function visit(Reminder $reminder) |
265 | 265 | { |
266 | - $this->output .= "Dato: " . $reminder->get("dk_this_date") ."\n\n"; |
|
267 | - $this->output .= $reminder->contact->address->get("name") . "\n"; |
|
266 | + $this->output .= "Dato: ".$reminder->get("dk_this_date")."\n\n"; |
|
267 | + $this->output .= $reminder->contact->address->get("name")."\n"; |
|
268 | 268 | if ($reminder->get("attention_to") != "") { |
269 | 269 | $this->output .= "Att.: ".$reminder->get("attention_to")."\n"; |
270 | 270 | } |
271 | - $this->output .= $reminder->contact->address->get("address") . "\n"; |
|
272 | - $this->output .= $reminder->contact->address->get("postcode") . " " . $reminder->contact->address->get("city") ."\n\n"; |
|
273 | - $this->output .= $reminder->get("text") . "\n\n"; |
|
271 | + $this->output .= $reminder->contact->address->get("address")."\n"; |
|
272 | + $this->output .= $reminder->contact->address->get("postcode")." ".$reminder->contact->address->get("city")."\n\n"; |
|
273 | + $this->output .= $reminder->get("text")."\n\n"; |
|
274 | 274 | |
275 | 275 | // Overskrifter - Vareudskrivning |
276 | 276 | $this->output .= "Beskrivelse Dato Forfaldsdato Bel�b\n"; |
@@ -280,25 +280,25 @@ discard block |
||
280 | 280 | for ($i = 0, $max = count($items); $i < $max; $i++) { |
281 | 281 | $this->output .= "\nFak# ".$items[$i]["number"]; |
282 | 282 | $spaces = -strlen($items[$i]["number"]) - 5 + 20; |
283 | - for ($j = 0; $j < $spaces; $j++) { $this->output .= ' '; } |
|
284 | - $this->output .= ' ' . $items[$i]["dk_this_date"]; |
|
285 | - $this->output .= ' ' . $items[$i]["dk_due_date"]; |
|
286 | - $this->output .= ' ' . number_format($items[$i]["arrears"], 2, ",", "."); |
|
283 | + for ($j = 0; $j < $spaces; $j++) { $this->output .= ' '; } |
|
284 | + $this->output .= ' '.$items[$i]["dk_this_date"]; |
|
285 | + $this->output .= ' '.$items[$i]["dk_due_date"]; |
|
286 | + $this->output .= ' '.number_format($items[$i]["arrears"], 2, ",", "."); |
|
287 | 287 | $total += $items[$i]["arrears"]; |
288 | 288 | } |
289 | 289 | $items = $reminder->item->getList("reminder"); |
290 | 290 | for ($i = 0, $max = count($items); $i < $max; $i++) { |
291 | 291 | $this->output .= "\nTidl. rykkkergebyr "; |
292 | - $this->output .= ' ' . $items[$i]["dk_this_date"]; |
|
293 | - $this->output .= ' ' .$items[$i]["dk_due_date"]; |
|
294 | - $this->output .= ' ' . number_format($items[$i]["reminder_fee"], 2, ",", "."); |
|
292 | + $this->output .= ' '.$items[$i]["dk_this_date"]; |
|
293 | + $this->output .= ' '.$items[$i]["dk_due_date"]; |
|
294 | + $this->output .= ' '.number_format($items[$i]["reminder_fee"], 2, ",", "."); |
|
295 | 295 | $total += $items[$i]["reminder_fee"]; |
296 | 296 | } |
297 | 297 | if ($reminder->get("reminder_fee") != 0) { |
298 | 298 | $this->output .= "\nRykkergebyr ".number_format($reminder->get("reminder_fee"), 2, ",", "."); |
299 | 299 | $total += $reminder->get("reminder_fee"); |
300 | 300 | } |
301 | - $this->output .= "\n\nTotal: " . number_format($total, 2, ",", "."); |
|
301 | + $this->output .= "\n\nTotal: ".number_format($total, 2, ",", "."); |
|
302 | 302 | |
303 | 303 | $parameter = array( |
304 | 304 | "contact" => $reminder->contact, |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | "amount" => $total, |
307 | 307 | "due_date" => $reminder->get("dk_due_date"), |
308 | 308 | "girocode" => $reminder->get("girocode")); |
309 | - $this->output .= "\n\nDet skyldige beløb betales senest: " . $parameter['due_date']; |
|
309 | + $this->output .= "\n\nDet skyldige beløb betales senest: ".$parameter['due_date']; |
|
310 | 310 | |
311 | 311 | // TODO: change to payment_method |
312 | 312 | switch ($reminder->get('payment_method_key')) { |
@@ -316,16 +316,16 @@ discard block |
||
316 | 316 | $this->output .= "\nBank: ".$reminder->kernel->setting->get('intranet', 'bank_name'); |
317 | 317 | $this->output .= "\nRegnr.: ".$reminder->kernel->setting->get('intranet', 'bank_reg_number'); |
318 | 318 | $this->output .= "\nKontonr.: ".$reminder->kernel->setting->get('intranet', 'bank_account_number'); |
319 | - $this->output .= "\nBesked til modtager: " . "Kunde #" . $reminder->contact->get("number"); |
|
319 | + $this->output .= "\nBesked til modtager: "."Kunde #".$reminder->contact->get("number"); |
|
320 | 320 | break; |
321 | 321 | case 3: |
322 | 322 | $this->output .= "\n\nBetaling via homebanking\n+71< ".str_repeat("0", 15 - strlen($parameter["girocode"])).$parameter["girocode"]." +".$kernel->setting->get('intranet', 'giro_account_number')."<"; |
323 | 323 | break; |
324 | 324 | } |
325 | 325 | |
326 | - $this->output .= "\n\nMed venlig hilsen\n\n" . $reminder->kernel->user->getAddress()->get("name") . "\n" .$reminder->kernel->intranet->get("name"); |
|
327 | - $this->output .= "\n" . $reminder->kernel->intranet->address->get("address"); |
|
328 | - $this->output .= "\n" . $reminder->kernel->intranet->address->get("postcode") . " " . $reminder->kernel->intranet->address->get("city"); |
|
326 | + $this->output .= "\n\nMed venlig hilsen\n\n".$reminder->kernel->user->getAddress()->get("name")."\n".$reminder->kernel->intranet->get("name"); |
|
327 | + $this->output .= "\n".$reminder->kernel->intranet->address->get("address"); |
|
328 | + $this->output .= "\n".$reminder->kernel->intranet->address->get("postcode")." ".$reminder->kernel->intranet->address->get("city"); |
|
329 | 329 | } |
330 | 330 | |
331 | 331 | public function getText() |
@@ -93,6 +93,6 @@ |
||
93 | 93 | |
94 | 94 | function getLanguage() |
95 | 95 | { |
96 | - return Intraface_modules_language_Gateway::getByKey($this->language_key); |
|
96 | + return Intraface_modules_language_Gateway::getByKey($this->language_key); |
|
97 | 97 | } |
98 | 98 | } |
99 | 99 | \ No newline at end of file |
@@ -4,21 +4,21 @@ |
||
4 | 4 | public function setTableDefinition() |
5 | 5 | { |
6 | 6 | $this->setTableName('shop'); |
7 | - $this->hasColumn('name', 'string', 255); |
|
8 | - $this->hasColumn('description', 'string', 65555); |
|
9 | - $this->hasColumn('identifier', 'string', 255); |
|
10 | - $this->hasColumn('show_online', 'integer', 1); |
|
11 | - $this->hasColumn('send_confirmation', 'integer', 1); |
|
12 | - $this->hasColumn('confirmation_subject', 'string', 255); |
|
13 | - $this->hasColumn('confirmation_greeting', 'string', 255); |
|
14 | - $this->hasColumn('confirmation', 'string', 65555); |
|
7 | + $this->hasColumn('name', 'string', 255); |
|
8 | + $this->hasColumn('description', 'string', 65555); |
|
9 | + $this->hasColumn('identifier', 'string', 255); |
|
10 | + $this->hasColumn('show_online', 'integer', 1); |
|
11 | + $this->hasColumn('send_confirmation', 'integer', 1); |
|
12 | + $this->hasColumn('confirmation_subject', 'string', 255); |
|
13 | + $this->hasColumn('confirmation_greeting', 'string', 255); |
|
14 | + $this->hasColumn('confirmation', 'string', 65555); |
|
15 | 15 | $this->hasColumn('confirmation_add_contact_url', 'integer', 1); |
16 | - $this->hasColumn('receipt', 'string', 65555); |
|
17 | - $this->hasColumn('payment_link', 'string', 255); |
|
18 | - $this->hasColumn('payment_link_add', 'integer', 1); |
|
19 | - $this->hasColumn('terms_of_trade_url', 'string', 255); |
|
20 | - $this->hasColumn('default_currency_id', 'integer'); |
|
21 | - $this->hasColumn('language_key', 'integer'); |
|
16 | + $this->hasColumn('receipt', 'string', 65555); |
|
17 | + $this->hasColumn('payment_link', 'string', 255); |
|
18 | + $this->hasColumn('payment_link_add', 'integer', 1); |
|
19 | + $this->hasColumn('terms_of_trade_url', 'string', 255); |
|
20 | + $this->hasColumn('default_currency_id', 'integer'); |
|
21 | + $this->hasColumn('language_key', 'integer'); |
|
22 | 22 | |
23 | 23 | } |
24 | 24 |
@@ -4,9 +4,9 @@ |
||
4 | 4 | public function setTableDefinition() |
5 | 5 | { |
6 | 6 | $this->setTableName('shop_paymentmethods'); |
7 | - $this->hasColumn('paymentmethod_key', 'integer', 11); |
|
8 | - $this->hasColumn('text', 'string', 65555); |
|
9 | - $this->hasColumn('shop_id', 'integer', 11); |
|
7 | + $this->hasColumn('paymentmethod_key', 'integer', 11); |
|
8 | + $this->hasColumn('text', 'string', 65555); |
|
9 | + $this->hasColumn('shop_id', 'integer', 11); |
|
10 | 10 | } |
11 | 11 | |
12 | 12 | public function setUp() |
@@ -10,10 +10,10 @@ |
||
10 | 10 | { |
11 | 11 | $this->setTableName('shop_dicount_campaign_voucher'); |
12 | 12 | $this->hasColumn('shop_discount_campaign_id', 'integer', 4, array('type' => 'integer', 'length' => 4, 'default' => '0', 'notnull' => true)); |
13 | - $this->hasColumn('code', 'string', 255, array('type' => 'string', 'length' => 255, 'notnull' => true)); |
|
13 | + $this->hasColumn('code', 'string', 255, array('type' => 'string', 'length' => 255, 'notnull' => true)); |
|
14 | 14 | $this->hasColumn('quantity', 'integer', 11, array('type' => 'integer', 'length' => 11, 'default' => '0', 'notnull' => true)); |
15 | - $this->hasColumn('date_created', 'timestamp', NULL, array('type' => 'timestamp', 'default' => new Doctrine_Expression('NOW()'), 'notnull' => true)); |
|
16 | - $this->hasColumn('date_expiry', 'timestamp', NULL, array('type' => 'timestamp', 'notnull' => true)); |
|
15 | + $this->hasColumn('date_created', 'timestamp', NULL, array('type' => 'timestamp', 'default' => new Doctrine_Expression('NOW()'), 'notnull' => true)); |
|
16 | + $this->hasColumn('date_expiry', 'timestamp', NULL, array('type' => 'timestamp', 'notnull' => true)); |
|
17 | 17 | $this->hasColumn('used_on_debtor_id', 'integer', 11, array('type' => 'integer', 'length' => 11, 'default' => '0', 'notnull' => true)); |
18 | 18 | $this->hasColumn('created_from_debtor_id', 'integer', 11, array('type' => 'integer', 'length' => 11, 'default' => '0', 'notnull' => true)); |
19 | 19 |
@@ -9,8 +9,8 @@ |
||
9 | 9 | public function setTableDefinition() |
10 | 10 | { |
11 | 11 | $this->setTableName('shop_dicount_campaign'); |
12 | - $this->hasColumn('name', 'string', 255, array('type' => 'string', 'length' => 255, 'notnull' => true)); |
|
13 | - $this->hasColumn('voucher_code_prefix', 'string', 255, array('type' => 'string', 'length' => 255, 'notnull' => true)); |
|
12 | + $this->hasColumn('name', 'string', 255, array('type' => 'string', 'length' => 255, 'notnull' => true)); |
|
13 | + $this->hasColumn('voucher_code_prefix', 'string', 255, array('type' => 'string', 'length' => 255, 'notnull' => true)); |
|
14 | 14 | // $this->hasColumn('start_date', 'string', 65555); |
15 | 15 | // $this->hasColumn('end_date', 'string', 255); |
16 | 16 | // $this->hasColumn('validity_period', 'string', 255); |
@@ -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 |