Completed
Push — master ( 9d10c2...bf46e5 )
by Lars
05:14
created
src/Intraface/modules/debtor/DebtorItem.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         // TODO how do we handle vat? this should return raw prices
225 225
         // and then the tax percent should return the tax to apply
226 226
         // the calculator should handle the final price
227
-        return $this->getProductPrice() * $this->get('quantity');
227
+        return $this->getProductPrice()*$this->get('quantity');
228 228
     }
229 229
 
230 230
     /**
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      */
235 235
     public function getWeight()
236 236
     {
237
-        return $this->getProductWeight() * $this->get('quantity');
237
+        return $this->getProductWeight()*$this->get('quantity');
238 238
     }
239 239
 
240 240
     /**
@@ -471,14 +471,14 @@  discard block
 block discarded – undo
471 471
                     $variation = $product->getVariation($db->f('product_variation_id'));
472 472
                     $detail = $variation->getDetail($db->f('product_variation_detail_id'));
473 473
                     $item["name"] = $product->get("name").' - '.$variation->getName();
474
-                    $item["number"]= $product->get("number").'.'.$variation->getNumber();
474
+                    $item["number"] = $product->get("number").'.'.$variation->getNumber();
475 475
                     $item["price"] = $detail->getPrice($product);
476 476
                     if ($currency) {
477 477
                         $item['price_currency'] = $detail->getPriceInCurrency($currency, $this->debtor->get('currency_product_price_exchange_rate_id'), $product);
478 478
                     }
479 479
                 } else {
480 480
                     $item["name"] = $product->get("name");
481
-                    $item["number"]= $product->get("number");
481
+                    $item["number"] = $product->get("number");
482 482
                     $item["price"] = $product->getDetails()->getPrice();
483 483
                     if ($currency) {
484 484
                         $item['price_currency'] = $product->getDetails()->getPriceInCurrency($currency, $this->debtor->get('currency_product_price_exchange_rate_id'));
@@ -487,16 +487,16 @@  discard block
 block discarded – undo
487 487
 
488 488
                 if ($product->get("vat") == 0) {
489 489
                     $item_no_vat[$j] = $item;
490
-                    $item_no_vat[$j]["amount"] = new Ilib_Variable_Float($item["quantity"] * $item["price"]->getAsIso(2));
490
+                    $item_no_vat[$j]["amount"] = new Ilib_Variable_Float($item["quantity"]*$item["price"]->getAsIso(2));
491 491
                     if ($currency) {
492
-                        $item_no_vat[$j]["amount_currency"] = new Ilib_Variable_Float($item["quantity"] * $item["price_currency"]->getAsIso(2), 'iso');
492
+                        $item_no_vat[$j]["amount_currency"] = new Ilib_Variable_Float($item["quantity"]*$item["price_currency"]->getAsIso(2), 'iso');
493 493
                     }
494 494
                     $j++;
495 495
                 } else {
496 496
                     $item_with_vat[$i] = $item;
497
-                    $item_with_vat[$i]["amount"] = new Ilib_Variable_Float($item["quantity"] * $item["price"]->getAsIso(2) * 1.25);
497
+                    $item_with_vat[$i]["amount"] = new Ilib_Variable_Float($item["quantity"]*$item["price"]->getAsIso(2)*1.25);
498 498
                     if ($currency) {
499
-                        $item_with_vat[$i]["amount_currency"] = new Ilib_Variable_Float($item["quantity"] * $item["price_currency"]->getAsIso(2) * 1.25, 'iso');
499
+                        $item_with_vat[$i]["amount_currency"] = new Ilib_Variable_Float($item["quantity"]*$item["price_currency"]->getAsIso(2)*1.25, 'iso');
500 500
                     }
501 501
                     $i++;
502 502
                 }
Please login to merge, or discard this patch.
src/Intraface/modules/debtor/Controller/Payments.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Intraface/modules/debtor/Controller/templates/collection.tpl.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,14 +48,14 @@  discard block
 block discarded – undo
48 48
     <?php else : ?>
49 49
         <?php if (isset($variation) && isset($product)) : ?>
50 50
             <?php $module_product = $context->getKernel()->useModule('product'); ?>
51
-            <li><a href="<?php e(url($module_product->getPath().$product->get('id').'/variation/'.$variation->getId()));  ?>"><?php e(t('Show product')); ?></a></li>
51
+            <li><a href="<?php e(url($module_product->getPath().$product->get('id').'/variation/'.$variation->getId())); ?>"><?php e(t('Show product')); ?></a></li>
52 52
         <?php elseif (isset($product)) : ?>
53 53
             <?php $module_product = $context->getKernel()->useModule('product'); ?>
54
-           <li><a href="<?php e(url($module_product->getPath().$product->get('id')));  ?>"><?php e(t('Show product')); ?></a></li>
54
+           <li><a href="<?php e(url($module_product->getPath().$product->get('id'))); ?>"><?php e(t('Show product')); ?></a></li>
55 55
         <?php endif; ?>
56 56
         <li><a href="<?php e(url(null, array('create'))); ?>"><?php e(t('Create')); ?></a></li>
57 57
     <?php endif; ?>
58
-    <li><a class="excel" href="<?php e(url(null . '.xls', array('use_stored' => 'true'))); ?>"><?php e(t('Excel')); ?></a> (<a href="<?php e(url(null . '.xls', array('use_stored' => 'true', 'simple' => 'true'))); ?>"><?php e(t('Simple')); ?></a>)</li>
58
+    <li><a class="excel" href="<?php e(url(null.'.xls', array('use_stored' => 'true'))); ?>"><?php e(t('Excel')); ?></a> (<a href="<?php e(url(null.'.xls', array('use_stored' => 'true', 'simple' => 'true'))); ?>"><?php e(t('Simple')); ?></a>)</li>
59 59
 </ul>
60 60
 
61 61
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
             <tr id="i<?php e($post["id"]); ?>">
205 205
                 <td><?php e($post["number"]); ?></td>
206 206
                 <td class="number"><?php e($post['contact']['number']); ?></td>
207
-                <td><a href="<?php // e($contact_module->getPath()); ?><?php e(url('../../../contact/' . $post["contact_id"])); ?>"><?php e($post["name"]); ?></a></td>
207
+                <td><a href="<?php // e($contact_module->getPath()); ?><?php e(url('../../../contact/'.$post["contact_id"])); ?>"><?php e($post["name"]); ?></a></td>
208 208
                 <td><a href="<?php e(url($post["id"])); ?>"><?php ($post["description"] != "") ? e($post["description"]) : e("[Ingen beskrivelse]"); ?></a></td>
209 209
                 <td class="amount"><?php e(number_format($post["total"], 2, ",", ".")); ?> &nbsp; </td>
210 210
 
Please login to merge, or discard this patch.
src/Intraface/modules/debtor/Controller/templates/reminders.tpl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 <?php if ($contact_id) : ?>
10 10
     <ul class="options">
11 11
         <li><a href="<?php e(url(null, array('create', 'contact_id' => $contact_id))); ?>"><?php e(t('Create')); ?></a></li>
12
-        <li><a href="<?php e(url('../../contact/' . $contact_id)); ?>"><?php e(t('Go to contact')); ?></a>
12
+        <li><a href="<?php e(url('../../contact/'.$contact_id)); ?>"><?php e(t('Go to contact')); ?></a>
13 13
     </ul>
14 14
 <?php endif; ?>
15 15
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             print(" class=\"fade\"");
80 80
 } ?>>
81 81
             <td class="number"><?php e($r["number"]); ?></td>
82
-            <td><a href="<?php e(url('../../contact/' . $r["contact_id"])); ?>"><?php e($r["name"]); ?></a></td>
82
+            <td><a href="<?php e(url('../../contact/'.$r["contact_id"])); ?>"><?php e($r["name"]); ?></a></td>
83 83
             <td><a href="<?php e(url($r["id"])); ?>"><?php (trim($r["description"] != "")) ? e($r["description"]) : e('['.t("No description").']'); ?></a></td>
84 84
             <td class="date">
85 85
                 <?php
Please login to merge, or discard this patch.
src/Intraface/modules/debtor/Controller/templates/show.tpl.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
 <form method="post" action="<?php e(url()); ?>">
40 40
     <input type="hidden" name="id" value="<?php e($context->getDebtor()->get('id')); ?>" />
41
-    <?php if ($context->getDebtor()->contact->get('preferred_invoice') == 2 and  $context->getDebtor()->get('status') == 'created' and $context->isValidSender()) : ?>
41
+    <?php if ($context->getDebtor()->contact->get('preferred_invoice') == 2 and $context->getDebtor()->get('status') == 'created' and $context->isValidSender()) : ?>
42 42
         <input type="submit" value="<?php e(t('Send on email')); ?>" name="send_email" title="<?php e(t('Are you sure?')); ?>" />
43 43
     <?php elseif ($context->getDebtor()->contact->get('preferred_invoice') == 2 and $context->getDebtor()->get('status') == 'sent' and $context->isValidSender()) : ?>
44 44
         <input type="submit" value="<?php e(t('Resend on email')); ?>" name="send_email" title="<?php e(t('Are you sure?')); ?>" />
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
                 <th><?php e(t($context->getDebtor()->get('type').' due date')); ?></th>
130 130
                 <td>
131 131
                     <?php e($context->getDebtor()->get("dk_due_date")); ?>
132
-                    <?php if ($context->getDebtor()->get('type')=='invoice' && count($context->getDebtor()->anyDue($context->getDebtor()->contact->get('id'))) > 0 && $context->getDebtor()->get("status") != 'executed') {
132
+                    <?php if ($context->getDebtor()->get('type') == 'invoice' && count($context->getDebtor()->anyDue($context->getDebtor()->contact->get('id'))) > 0 && $context->getDebtor()->get("status") != 'executed') {
133 133
                         echo '<a href="'.url('../../../reminders', array('create', 'contact_id' => intval($context->getDebtor()->contact->get('id')))).'">'.t('Create reminder').'</a>';
134 134
 } ?>
135 135
                 </td>
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                             <?php
143 143
                             switch ($context->getKernel()->getSetting()->get('intranet', 'debtor.sender')) {
144 144
                                 case 'user':
145
-                                    e($context->getKernel()->user->getAddress()->get('name'). ' <'.$context->getKernel()->user->getAddress()->get('email').'>');
145
+                                    e($context->getKernel()->user->getAddress()->get('name').' <'.$context->getKernel()->user->getAddress()->get('email').'>');
146 146
                                     break;
147 147
                                 case 'defined':
148 148
                                     e($context->getKernel()->getSetting()->get('intranet', 'debtor.sender.name').' <'.$context->getKernel()->getSetting()->get('intranet', 'debtor.sender.email').'>');
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
                 <th><?php e(t('Where from')); ?></th>
190 190
                 <td>
191 191
                     <?php if (($context->getDebtor()->get('where_from') == 'quotation' || $context->getDebtor()->get('where_from') == 'order' || $context->getDebtor()->get('where_from') == 'invoice') && $context->getDebtor()->get("where_from_id") > 0) { ?>
192
-                        <a href="<?php e(url('../' . $context->getDebtor()->get("where_from_id"))); ?>"><?php e(t($context->getDebtor()->get("where_from"))); ?></a>
192
+                        <a href="<?php e(url('../'.$context->getDebtor()->get("where_from_id"))); ?>"><?php e(t($context->getDebtor()->get("where_from"))); ?></a>
193 193
                 <?php } else { ?>
194 194
                         <?php e(t($context->getDebtor()->get('where_from'))); ?>
195 195
                     <?php } ?>
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
             <?php if ($context->getDebtor()->get('where_to') and $context->getDebtor()->get('where_to_id')) : ?>
199 199
             <tr>
200 200
                 <th><?php e(t('Where to')); ?></th>
201
-                <td><a href="<?php e(url('../' . $context->getDebtor()->get('where_to_id'))); ?>"><?php e(t($context->getDebtor()->get('where_to'))); ?></a></td>
201
+                <td><a href="<?php e(url('../'.$context->getDebtor()->get('where_to_id'))); ?>"><?php e(t($context->getDebtor()->get('where_to'))); ?></a></td>
202 202
             </tr>
203 203
             <?php endif; ?>
204 204
             <?php if (($context->getDebtor()->get("type") == 'credit_note' || $context->getDebtor()->get("type") == 'invoice') and $context->getKernel()->user->hasModuleAccess('accounting')) : ?>
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
             </tr>
255 255
             <tr>
256 256
                 <th><?php e(t('Contact')); ?></th>
257
-                <td><a href="<?php //e($contact_module->getPath()); ?><?php e(url('../../../../contact/'. $context->getDebtor()->contact->get('id'))); ?>"><?php e($context->getDebtor()->contact->address->get("name")); ?></a></td>
257
+                <td><a href="<?php //e($contact_module->getPath()); ?><?php e(url('../../../../contact/'.$context->getDebtor()->contact->get('id'))); ?>"><?php e($context->getDebtor()->contact->address->get("name")); ?></a></td>
258 258
             </tr>
259 259
             <tr>
260 260
                 <th><?php e(t('Address')); ?></th>
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
                                 <?php
378 378
                                 if ($payment["type"] == "credit_note") {
379 379
                                     ?>
380
-                                    <a href="<?php e(url('../' . $payment["id"])); ?>"><?php e($payment["description"]); ?></a>
380
+                                    <a href="<?php e(url('../'.$payment["id"])); ?>"><?php e($payment["description"]); ?></a>
381 381
                                     <?php
382 382
                                 } else {
383 383
                                     e($payment['description']);
@@ -390,11 +390,11 @@  discard block
 block discarded – undo
390 390
                                     <?php if ($payment['is_stated']) : ?>
391 391
                                         <a href="<?php e(url('../../../../accounting/search', array('voucher_id' => $payment['voucher_id']))); ?>"><?php e(t('voucher')); ?></a>
392 392
                                     <?php elseif ($payment['type'] == 'credit_note') : ?>
393
-                                        <a href="<?php e(url('../' . $payment['id'] . '/state')); ?>"><?php e(t('state credit note')); ?></a>
393
+                                        <a href="<?php e(url('../'.$payment['id'].'/state')); ?>"><?php e(t('state credit note')); ?></a>
394 394
                                     <?php elseif ($payment['type'] == 'depreciation') : ?>
395
-                                        <a href="<?php e(url('../' . $context->getDebtor()->get('id') . '/depreciation/'.$payment['id'].'/state')); ?>"><?php e(t('state depreciation')); ?></a>
395
+                                        <a href="<?php e(url('../'.$context->getDebtor()->get('id').'/depreciation/'.$payment['id'].'/state')); ?>"><?php e(t('state depreciation')); ?></a>
396 396
                                     <?php else : ?>
397
-                                        <a href="<?php e(url('../' . $context->getDebtor()->get('id') . '/payment/' . $payment['id'] . '/state')); ?>"><?php e(t('state payment')); ?></a>
397
+                                        <a href="<?php e(url('../'.$context->getDebtor()->get('id').'/payment/'.$payment['id'].'/state')); ?>"><?php e(t('state payment')); ?></a>
398 398
                                     <?php endif; ?>
399 399
                                 </td>
400 400
                             <?php endif; ?>
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
                                         ?>
499 499
                                     <?php endif; ?>
500 500
                                     <?php if ($p['status'] == 'authorized') : ?>
501
-                                        <a href="<?php e(url('onlinepayment/' . $p['id'])); ?>" class="edit"><?php e(t('Edit payment')); ?></a>
501
+                                        <a href="<?php e(url('onlinepayment/'.$p['id'])); ?>" class="edit"><?php e(t('Edit payment')); ?></a>
502 502
                                     <?php endif; ?>
503 503
                                 </td>
504 504
                             </tr>
@@ -571,8 +571,8 @@  discard block
 block discarded – undo
571 571
                 $vat = 0;
572 572
             }
573 573
 
574
-            for ($i = 0, $max = count($items); $i<$max; $i++) {
575
-                $total += $items[$i]["quantity"] * $items[$i]["price"]->getAsIso(2);
574
+            for ($i = 0, $max = count($items); $i < $max; $i++) {
575
+                $total += $items[$i]["quantity"]*$items[$i]["price"]->getAsIso(2);
576 576
                 $vat = $items[$i]["vat"];
577 577
                 ?>
578 578
                 <tr id="i<?php e($items[$i]["id"]); ?>" <?php if (isset($_GET['item_id']) && $_GET['item_id'] == $items[$i]['id']) {
@@ -584,10 +584,10 @@  discard block
 block discarded – undo
584 584
                         if ($items[$i]["description"] != "") {
585 585
                             autohtml($items[$i]["description"]);
586 586
                             if ($context->getDebtor()->get("locked") == false) {
587
-                                echo '<br /> <a href="'.url('item/' . intval($items[$i]["id"]), array('edit')).'">'.t('Edit text').'</a>';
587
+                                echo '<br /> <a href="'.url('item/'.intval($items[$i]["id"]), array('edit')).'">'.t('Edit text').'</a>';
588 588
                             }
589 589
                         } elseif ($context->getDebtor()->get("locked") == false) {
590
-                            echo ' <a href="'.url('item/' . intval($items[$i]["id"]), array('edit')).'">'.t('Add text').'</a>';
590
+                            echo ' <a href="'.url('item/'.intval($items[$i]["id"]), array('edit')).'">'.t('Add text').'</a>';
591 591
                         }
592 592
 
593 593
                         ?>
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
                         <?php
608 608
                     }
609 609
                     ?>
610
-                    <?php $price = new Ilib_Variable_Float($items[$i]["quantity"] * $items[$i]["price"]->getAsIso(2)); ?>
610
+                    <?php $price = new Ilib_Variable_Float($items[$i]["quantity"]*$items[$i]["price"]->getAsIso(2)); ?>
611 611
                     <td class="amount"><?php e($price->getAsLocal('da_dk', 2)); ?></td>
612 612
                     <?php if ($context->getDebtor()->getCurrency()) : ?>
613 613
                         <?php
@@ -622,7 +622,7 @@  discard block
 block discarded – undo
622 622
                             ?>
623 623
                             <a class="moveup" href="<?php e(url(null, array('action' => 'moveup', 'item_id' => $items[$i]["id"]))); ?>"><?php e(t('Up')); ?></a>
624 624
                             <a class="movedown" href="<?php e(url(null, array('action' => 'movedown', 'item_id' => $items[$i]["id"]))); ?>"><?php e(t('Down')); ?></a>
625
-                            <a class="edit" href="<?php e(url('item/' . $items[$i]["id"], array('edit'))); ?>"><?php e(t('Edit')); ?></a>
625
+                            <a class="edit" href="<?php e(url('item/'.$items[$i]["id"], array('edit'))); ?>"><?php e(t('Edit')); ?></a>
626 626
                             <a class="delete" title="Dette vil slette varen!" href="<?php e(url(null, array('action' => 'delete_item', 'item_id' => $items[$i]["id"]))); ?>"><?php e(t('Delete')); ?></a>
627 627
                             <?php
628 628
                         }
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
                 </tr>
632 632
                 <?php
633 633
 
634
-                if (($vat == 1 && isset($items[$i+1]["vat"]) && $items[$i+1]["vat"] == 0) || ($vat == 1 && $i+1 >= $max)) {
634
+                if (($vat == 1 && isset($items[$i + 1]["vat"]) && $items[$i + 1]["vat"] == 0) || ($vat == 1 && $i + 1 >= $max)) {
635 635
                     // Hvis der er moms p� nuv�rende produkt, men n�ste produkt ikke har moms, eller hvis vi har moms og det er sidste produkt
636 636
                     ?>
637 637
                     <tr>
@@ -640,16 +640,16 @@  discard block
 block discarded – undo
640 640
                         <td>&nbsp;</td>
641 641
                         <td>&nbsp;</td>
642 642
                         <td>&nbsp;</td>
643
-                        <td class="amount"><b><?php e(number_format($total * 0.25, 2, ",", ".")); ?></b></td>
643
+                        <td class="amount"><b><?php e(number_format($total*0.25, 2, ",", ".")); ?></b></td>
644 644
                         <?php if ($context->getDebtor()->getCurrency()) : ?>
645
-                            <td class="amount"><b><?php e(number_format($total_currency * 0.25, 2, ",", ".")); ?></b></td>
645
+                            <td class="amount"><b><?php e(number_format($total_currency*0.25, 2, ",", ".")); ?></b></td>
646 646
                             <?php $total_currency *= 1.25; ?>
647 647
                         <?php endif; ?>
648 648
 
649 649
                         <td>&nbsp;</td>
650 650
                     </tr>
651 651
                     <?php
652
-                    $total = $total * 1.25;
652
+                    $total = $total*1.25;
653 653
                 }
654 654
             }
655 655
             ?>
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
 } ?>>
715 715
             <td class="number"><?php e($reminder["number"]); ?></td>
716 716
             <td><a href="<?php e(url('../../../reminders', array('contact_id' => $reminder["contact_id"]))); ?>"><?php e($reminder["name"]); ?></a></td>
717
-            <td><a href="<?php e(url('../../../reminders/' . $reminder["id"])); ?>"><?php (trim($reminder["description"] != "")) ? e($reminder["description"]) : e('['.t("No description").']'); ?></a></td>
717
+            <td><a href="<?php e(url('../../../reminders/'.$reminder["id"])); ?>"><?php (trim($reminder["description"] != "")) ? e($reminder["description"]) : e('['.t("No description").']'); ?></a></td>
718 718
             <td class="date">
719 719
                 <?php
720 720
                 if ($reminder["status"] != "created") {
@@ -741,9 +741,9 @@  discard block
 block discarded – undo
741 741
                 <?php
742 742
                 if ($reminder["locked"] == 0) {
743 743
                     ?>
744
-                    <a class="edit" href="<?php e(url('../../../reminders/' . $reminder["id"], array('edit'))); ?>"><?php e(t('Edit')); ?></a>
744
+                    <a class="edit" href="<?php e(url('../../../reminders/'.$reminder["id"], array('edit'))); ?>"><?php e(t('Edit')); ?></a>
745 745
                     <?php if ($reminder["status"] == "created") : ?>
746
-                    <a class="delete" href="<?php e(url('../../../reminders/' . $reminder["id"], array('delete'))); ?>"><?php e(t('Delete')); ?></a>
746
+                    <a class="delete" href="<?php e(url('../../../reminders/'.$reminder["id"], array('delete'))); ?>"><?php e(t('Delete')); ?></a>
747 747
                     <?php endif; ?>
748 748
                     <?php
749 749
                 }
Please login to merge, or discard this patch.
src/Intraface/modules/debtor/Controller/templates/item-edit.tpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     <input type="hidden" name="product_variation_detail_id" value="<?php  e($context->getDebtor()->item->get('product_variation_detail_id')); ?>" />
59 59
 
60 60
     <input type="submit" name="submit" value="<?php e(t('Save')); ?>" class="save" />
61
-    <a href="<?php e(url('../../'));  ?>"><?php e(t('Cancel')); ?></a>
61
+    <a href="<?php e(url('../../')); ?>"><?php e(t('Cancel')); ?></a>
62 62
 
63 63
 </div>
64 64
 </form>
Please login to merge, or discard this patch.
src/Intraface/modules/debtor/Controller/templates/reminder.tpl.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 }
15 15
             ?>
16 16
 
17
-                <li><a class="pdf" href="<?php e(url(null . '.pdf')); ?>" target="_blank"><?php e(t('Print pdf')); ?></a></li>
17
+                <li><a class="pdf" href="<?php e(url(null.'.pdf')); ?>" target="_blank"><?php e(t('Print pdf')); ?></a></li>
18 18
             <?php
19 19
             if ($reminder->get("send_as") == "email" and $reminder->get('status_key') < 1) {
20 20
                 ?>
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     <?php if ($context->query('flare')) : ?>
36 36
         <p class="message"><?php e($context->query('flare')); ?></p>
37
-    <?php endif;?>
37
+    <?php endif; ?>
38 38
 
39 39
     <form method="post" action="<?php e(url(null)); ?>">
40 40
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                 <?php
153 153
                 $contact_module = $context->getKernel()->getModule('contact');
154 154
                 ?>
155
-                <td><?php e($reminder->contact->get("number")); ?> <a href="<?php e(url('../../../contact/' . $reminder->contact->get('id'), array('edit'))); ?>" class="edit">Ret</a></td>
155
+                <td><?php e($reminder->contact->get("number")); ?> <a href="<?php e(url('../../../contact/'.$reminder->contact->get('id'), array('edit'))); ?>" class="edit">Ret</a></td>
156 156
             </tr>
157 157
             <tr>
158 158
                 <th><?php e(t('Contact')); ?></th>
@@ -283,9 +283,9 @@  discard block
 block discarded – undo
283 283
                                 <?php $module_accounting = $context->getKernel()->useModule('accounting'); ?>
284 284
                                 <a href="<?php e(url('../../../accounting/search', array('voucher_id' => $payments[$i]['voucher_id']))); ?>"><?php e(t('voucher')); ?></a>
285 285
                             <?php elseif ($payments[$i]['type'] == 'depreciation') : ?>
286
-                                <a href="<?php e(url('depreciation/' . $payments[$i]['id'] . '/state')); ?>"><?php e(t('state depreciation')); ?></a>
286
+                                <a href="<?php e(url('depreciation/'.$payments[$i]['id'].'/state')); ?>"><?php e(t('state depreciation')); ?></a>
287 287
                             <?php else : ?>
288
-                                <a href="<?php e(url('payment/' . $payments[$i]['id'] . '/state')); ?>"><?php e(t('state payment')); ?></a>
288
+                                <a href="<?php e(url('payment/'.$payments[$i]['id'].'/state')); ?>"><?php e(t('state payment')); ?></a>
289 289
                             <?php endif; ?>
290 290
                         </td>
291 291
                     <?php endif; ?>
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
                 ?>
346 346
                 <tr>
347 347
                     <td class="number"><?php e($items[$i]["number"]); ?></td>
348
-                    <td><a href="<?php e(url('../../invoice/list/' . intval($items[$i]['invoice_id']))); ?>"><?php e($items[$i]["description"]); ?></a></td>
348
+                    <td><a href="<?php e(url('../../invoice/list/'.intval($items[$i]['invoice_id']))); ?>"><?php e($items[$i]["description"]); ?></a></td>
349 349
                     <td class="date"><?php e($items[$i]["dk_due_date"]); ?></td>
350 350
                     <td class="amount"><?php e(number_format($items[$i]["arrears"], 2, ",", ".")); ?></td>
351 351
                 </tr>
Please login to merge, or discard this patch.
src/Intraface/modules/debtor/Controller/templates/reminder-edit.tpl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                     <?php
95 95
                 }
96 96
                 ?>
97
-                <option value="-1"><?php e(t('Create new') . ' >>'); ?></option>
97
+                <option value="-1"><?php e(t('Create new').' >>'); ?></option>
98 98
             </select>
99 99
         </div>
100 100
 
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 <?php if ($reminder->get('id') > 0) : ?>
285 285
 <a href="<?php e(url()); ?>"><?php e(t('Cancel')); ?></a>
286 286
 <?php else : ?>
287
-<a href="<?php e(url('../../contact/' . $contact->get('id'))); ?>"><?php e(t('Cancel')); ?></a>
287
+<a href="<?php e(url('../../contact/'.$contact->get('id'))); ?>"><?php e(t('Cancel')); ?></a>
288 288
 <?php endif; ?>
289 289
 
290 290
 <input type="hidden" name="id" value="<?php e($reminder->get("id")); ?>" />
Please login to merge, or discard this patch.
src/Intraface/modules/debtor/Controller/templates/settings.tpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         <?php elseif (empty($scan_in_contact) or !is_object($scan_in_contact)) : ?>
79 79
         <input type="submit" name="add_scan_in_contact" value="<?php e(t('Choose contact')); ?>" />
80 80
         <?php else : ?>
81
-        <strong>Kontakt</strong>: <?php e($scan_in_contact->get('name') . ' <'.$scan_in_contact->address->get('email').'>'); ?> <input type="submit" name="delete_scan_in_contact" value="Slet kontakt" />
81
+        <strong>Kontakt</strong>: <?php e($scan_in_contact->get('name').' <'.$scan_in_contact->address->get('email').'>'); ?> <input type="submit" name="delete_scan_in_contact" value="Slet kontakt" />
82 82
         <?php endif; ?>
83 83
     </fieldset>
84 84
 
Please login to merge, or discard this patch.