@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | throw new k_PageNotFound(); |
| 25 | 25 | } |
| 26 | 26 | if ($this->context->getType() != $this->getType()) { |
| 27 | - return new k_SeeOther($this->url('../../../' . $this->getType() . '/list/' . $this->getDebtor()->getId())); |
|
| 27 | + return new k_SeeOther($this->url('../../../'.$this->getType().'/list/'.$this->getDebtor()->getId())); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | return parent::dispatch(); |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | } elseif ($this->getType() == 'invoice') { |
| 51 | 51 | return 'Intraface_modules_accounting_Controller_State_Invoice'; |
| 52 | 52 | } else { |
| 53 | - throw new Exception('Cannot state type ' . $this->getType()); |
|
| 53 | + throw new Exception('Cannot state type '.$this->getType()); |
|
| 54 | 54 | } |
| 55 | 55 | } elseif ($name == 'item') { |
| 56 | 56 | return 'Intraface_modules_debtor_Controller_Items'; |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | throw new Exception('Oplysninger om filen kunne ikke opdateres'); |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | - switch($this->getKernel()->getSetting()->get('intranet', 'debtor.sender')) { |
|
| 132 | + switch ($this->getKernel()->getSetting()->get('intranet', 'debtor.sender')) { |
|
| 133 | 133 | case 'intranet': |
| 134 | 134 | $from_email = ''; |
| 135 | 135 | $from_name = ''; |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | if (!$email->save(array( |
| 155 | 155 | 'contact_id' => $contact->get('id'), |
| 156 | 156 | 'subject' => $subject, |
| 157 | - 'body' => $body . "\n\n" . $signature->getAsText(), |
|
| 157 | + 'body' => $body."\n\n".$signature->getAsText(), |
|
| 158 | 158 | 'from_email' => $from_email, |
| 159 | 159 | 'from_name' => $from_name, |
| 160 | 160 | 'type_id' => 10, // electronic invoice |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | $shared_email = $this->getKernel()->useModule('email'); |
| 175 | 175 | |
| 176 | 176 | // First vi set the last, because we need this id to the first. |
| 177 | - $url = $redirect->setDestination($shared_email->getPath().$email->get('id') . '?edit', NET_SCHEME . NET_HOST . $this->url()); |
|
| 177 | + $url = $redirect->setDestination($shared_email->getPath().$email->get('id').'?edit', NET_SCHEME.NET_HOST.$this->url()); |
|
| 178 | 178 | $redirect->setIdentifier('send_onlinepaymentlink'); |
| 179 | 179 | $redirect->askParameter('send_onlinepaymentlink_status'); |
| 180 | 180 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | // @todo vi skulle faktisk kun videre, hvis det ikke er en tilbagebetaling eller hvad? |
| 216 | 216 | if ($this->getDebtor()->get("type") == "invoice" && $this->getDebtor()->get("status") == "sent" AND !$this->onlinepayment->error->isError()) { |
| 217 | 217 | if ($this->getKernel()->user->hasModuleAccess('accounting')) { |
| 218 | - return new k_SeeOther($this->url('payment/' . $this->onlinepayment->get('create_payment_id') . '/state')); |
|
| 218 | + return new k_SeeOther($this->url('payment/'.$this->onlinepayment->get('create_payment_id').'/state')); |
|
| 219 | 219 | } |
| 220 | 220 | } |
| 221 | 221 | } |
@@ -226,8 +226,8 @@ discard block |
||
| 226 | 226 | $debtor_module = $this->getKernel()->module('debtor'); |
| 227 | 227 | $contact_module = $this->getKernel()->getModule('contact'); |
| 228 | 228 | $redirect = Intraface_Redirect::factory($this->getKernel(), 'go'); |
| 229 | - $url = $redirect->setDestination($contact_module->getPath().intval($this->getDebtor()->contact->get('id') . '&edit'), NET_SCHEME . NET_HOST . $this->url()); |
|
| 230 | - return new k_SeeOther($url . '&edit'); |
|
| 229 | + $url = $redirect->setDestination($contact_module->getPath().intval($this->getDebtor()->contact->get('id').'&edit'), NET_SCHEME.NET_HOST.$this->url()); |
|
| 230 | + return new k_SeeOther($url.'&edit'); |
|
| 231 | 231 | } |
| 232 | 232 | |
| 233 | 233 | // Redirect til tilføj produkt |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | $product_module = $this->getKernel()->useModule('product'); |
| 237 | 237 | $redirect->setIdentifier('add_item'); |
| 238 | 238 | |
| 239 | - $url = $redirect->setDestination(NET_SCHEME . NET_HOST . $this->url('selectproduct', array('set_quantity' => true)), NET_SCHEME . NET_HOST . $this->url()); |
|
| 239 | + $url = $redirect->setDestination(NET_SCHEME.NET_HOST.$this->url('selectproduct', array('set_quantity' => true)), NET_SCHEME.NET_HOST.$this->url()); |
|
| 240 | 240 | |
| 241 | 241 | $redirect->askParameter('product_id', 'multiple'); |
| 242 | 242 | |
@@ -288,13 +288,13 @@ discard block |
||
| 288 | 288 | } |
| 289 | 289 | $contact_module = $this->getKernel()->getModule('contact'); |
| 290 | 290 | |
| 291 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/show'); |
|
| 291 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/show'); |
|
| 292 | 292 | return $tpl->render($this); |
| 293 | 293 | } |
| 294 | 294 | |
| 295 | 295 | function renderHtmlEdit() |
| 296 | 296 | { |
| 297 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/edit'); |
|
| 297 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/edit'); |
|
| 298 | 298 | return $tpl->render($this); |
| 299 | 299 | } |
| 300 | 300 | |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | $this->getKernel()->useModule("invoice"); |
| 344 | 344 | $invoice = new Invoice($this->getKernel()); |
| 345 | 345 | if ($id = $invoice->create($this->getDebtor())) { |
| 346 | - return new k_SeeOther($this->url('../' . $id)); |
|
| 346 | + return new k_SeeOther($this->url('../'.$id)); |
|
| 347 | 347 | } |
| 348 | 348 | } |
| 349 | 349 | } |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | $invoice->setStatus('executed'); |
| 391 | 391 | } |
| 392 | 392 | |
| 393 | - return new k_SeeOther($this->url('../' . $invoice->get('id'))); |
|
| 393 | + return new k_SeeOther($this->url('../'.$invoice->get('id'))); |
|
| 394 | 394 | } |
| 395 | 395 | } |
| 396 | 396 | |
@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | } |
| 421 | 421 | |
| 422 | 422 | $this->getDebtor()->setStatus('executed'); |
| 423 | - return new k_SeeOther($this->url(null . '.pdf')); |
|
| 423 | + return new k_SeeOther($this->url(null.'.pdf')); |
|
| 424 | 424 | } |
| 425 | 425 | } |
| 426 | 426 | |
@@ -552,7 +552,7 @@ discard block |
||
| 552 | 552 | case 'intranet': |
| 553 | 553 | if ($this->getKernel()->intranet->address->get('name') == '' || $this->getKernel()->intranet->address->get('email') == '') { |
| 554 | 554 | if ($this->getKernel()->user->hasModuleAccess('administration')) { |
| 555 | - $msg = '<div class="message-dependent"><p>'.$this->t('You need to fill in an e-mail address to send e-mail').'. <a href="'.url('../../../../administration/intranet', array('edit')) . '">'.t('do it now').'</a>.</p></div>'; |
|
| 555 | + $msg = '<div class="message-dependent"><p>'.$this->t('You need to fill in an e-mail address to send e-mail').'. <a href="'.url('../../../../administration/intranet', array('edit')).'">'.t('do it now').'</a>.</p></div>'; |
|
| 556 | 556 | } else { |
| 557 | 557 | $msg = '<div class="message-dependent"><p>'.$this->t('You need to ask your administrator to fill in an e-mail address, so that you can send emails').'</p></div>'; |
| 558 | 558 | |
@@ -669,14 +669,14 @@ discard block |
||
| 669 | 669 | |
| 670 | 670 | function renderOioxml() |
| 671 | 671 | { |
| 672 | - require_once dirname(__FILE__) . '/../Visitor/OIOXML.php'; |
|
| 672 | + require_once dirname(__FILE__).'/../Visitor/OIOXML.php'; |
|
| 673 | 673 | $render = new Debtor_Report_OIOXML; |
| 674 | 674 | return $render->output($this->getDebtor()); |
| 675 | 675 | } |
| 676 | 676 | |
| 677 | 677 | function renderTxt() |
| 678 | 678 | { |
| 679 | - require_once dirname(__FILE__) . '/../Visitor/Text.php'; |
|
| 679 | + require_once dirname(__FILE__).'/../Visitor/Text.php'; |
|
| 680 | 680 | $render = new Debtor_Report_Text; |
| 681 | 681 | return $render->output($this->getDebtor()); |
| 682 | 682 | } |
@@ -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 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | // vi skal lige have oversat den her rigtigt |
| 31 | - $subject = $translation->get($debtor->get('type')) . ' #' . $debtor->get('number'); |
|
| 31 | + $subject = $translation->get($debtor->get('type')).' #'.$debtor->get('number'); |
|
| 32 | 32 | |
| 33 | 33 | // hvad skal den skrive her? |
| 34 | 34 | if ($debtor->get('type') == 'order') { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | $subject = 'Elektronisk faktura'; |
| 65 | - $body = 'Hermed faktura #' . $debtor->get('number') . ' til at læse ind'; |
|
| 65 | + $body = 'Hermed faktura #'.$debtor->get('number').' til at læse ind'; |
|
| 66 | 66 | |
| 67 | 67 | break; |
| 68 | 68 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - switch($this->context->getKernel()->getSetting()->get('intranet', 'debtor.sender')) { |
|
| 107 | + switch ($this->context->getKernel()->getSetting()->get('intranet', 'debtor.sender')) { |
|
| 108 | 108 | case 'intranet': |
| 109 | 109 | $from_email = ''; |
| 110 | 110 | $from_name = ''; |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | if (!$email->save(array( |
| 130 | 130 | 'contact_id' => $contact->get('id'), |
| 131 | 131 | 'subject' => $subject, |
| 132 | - 'body' => $body . "\n\n" . $signature->getAsText(), |
|
| 132 | + 'body' => $body."\n\n".$signature->getAsText(), |
|
| 133 | 133 | 'from_email' => $from_email, |
| 134 | 134 | 'from_name' => $from_name, |
| 135 | 135 | 'type_id' => 10, // electronic invoice |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | $shared_email = $this->context->getKernel()->useModule('email'); |
| 152 | 152 | |
| 153 | 153 | // First vi set the last, because we need this id to the first. |
| 154 | - $url = $redirect->setDestination($shared_email->getPath().$email->get('id') . '?edit', NET_SCHEME . NET_HOST . $this->url('../')); |
|
| 154 | + $url = $redirect->setDestination($shared_email->getPath().$email->get('id').'?edit', NET_SCHEME.NET_HOST.$this->url('../')); |
|
| 155 | 155 | $redirect->setIdentifier('send_email'); |
| 156 | 156 | $redirect->askParameter('send_email_status'); |
| 157 | 157 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | return new k_SeeOther($this->url('quotation/list', array('type' => 'quotation'))); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/index'); |
|
| 31 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/index'); |
|
| 32 | 32 | return $smarty->render($this); |
| 33 | 33 | } |
| 34 | 34 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $kernel = $this->getKernel(); |
| 55 | 55 | $contact_id = $this->query('contact_id');
|
| 56 | 56 | |
| 57 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/reminders'); |
|
| 57 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/reminders'); |
|
| 58 | 58 | return $smarty->render($this); |
| 59 | 59 | } |
| 60 | 60 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $contact = new Contact($this->getKernel(), $this->query('contact_id'));
|
| 73 | 73 | |
| 74 | 74 | $value["dk_this_date"] = date("d-m-Y");
|
| 75 | - $value["dk_due_date"] = date("d-m-Y", time()+3*24*60*60);
|
|
| 75 | + $value["dk_due_date"] = date("d-m-Y", time() + 3*24*60*60);
|
|
| 76 | 76 | |
| 77 | 77 | if ($contact->address->get("name") != $contact->address->get("contactname")) {
|
| 78 | 78 | $value["attention_to"] = $contact->address->get("contactname");
|
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | $data = array('value' => $value);
|
| 86 | 86 | |
| 87 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/reminder-edit'); |
|
| 87 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/reminder-edit'); |
|
| 88 | 88 | return $smarty->render($this, $data); |
| 89 | 89 | } |
| 90 | 90 | |
@@ -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 | } |
@@ -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); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | if ($this->query('contact_id') == '') { |
| 26 | 26 | return new k_SeeOther($this->url('contact')); |
| 27 | 27 | } |
| 28 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/edit'); |
|
| 28 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/edit'); |
|
| 29 | 29 | return $smarty->render($this); |
| 30 | 30 | } |
| 31 | 31 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | if ($debtor->update($_POST)) { |
| 58 | - return new k_SeeOther($this->url('../' . $debtor->get('id'))); |
|
| 58 | + return new k_SeeOther($this->url('../'.$debtor->get('id'))); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | return $this->render(); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | return $this->body(); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - $due_time = time() + $this->getContact()->get('paymentcondition') * 24 * 60 * 60; |
|
| 70 | + $due_time = time() + $this->getContact()->get('paymentcondition')*24*60*60; |
|
| 71 | 71 | $due_date = date('d-m-Y', $due_time); |
| 72 | 72 | |
| 73 | 73 | return array( |