Completed
Pull Request — master (#21)
by Lars
14:31
created
src/Intraface/modules/accounting/Controller/templates/year/end.tpl.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
         foreach ($vat_periods as $period) {
53 53
             $vat_period = new VatPeriod($context->getYear(), $period['id']);
54 54
             if (!$vat_period->get('voucher_id')) {
55
-                echo '<p class="warning">Momsperiode ' . $vat_period->get('label') . ' er ikke bogført. <a href="'.url('../vat/' . $vat_period->get('id')).'">Fix it at the vat period</a>.</p>';
55
+                echo '<p class="warning">Momsperiode '.$vat_period->get('label').' er ikke bogført. <a href="'.url('../vat/'.$vat_period->get('id')).'">Fix it at the vat period</a>.</p>';
56 56
             } elseif (!$context->getVatPeriod()->compareAmounts()) {
57
-                echo '<p class="warning">Momsperiode ' . $vat_period->get('label') . ' stemmer ikke. <a href="'.url('../vat/' . $vat_period->get('id')).'">Fix it at the vat period</a>.</p>';
57
+                echo '<p class="warning">Momsperiode '.$vat_period->get('label').' stemmer ikke. <a href="'.url('../vat/'.$vat_period->get('id')).'">Fix it at the vat period</a>.</p>';
58 58
             }
59 59
         }
60 60
         ?>
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             <select id="result_account" name="result_account_id">
106 106
                 <option value=""><?php e(t('Choose')); ?></option>
107 107
                 <?php foreach ($status_accounts as $a) { ?>
108
-                    <option value="<?php e($a['id']); ?>"<?php if ($context->getYear()->getSetting('result_account_id')==$a['id']) {
108
+                    <option value="<?php e($a['id']); ?>"<?php if ($context->getYear()->getSetting('result_account_id') == $a['id']) {
109 109
                         echo ' selected="selected"';
110 110
 } ?>><?php e($a['number']); ?> <?php e($a['name']); ?></option>
111 111
                 <?php } ?>
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         <tbody>
133 133
         <?php foreach ($context->getAccount()->getList('drift', true) as $a) : ?>
134 134
             <tr>
135
-                <td><a href="<?php e(url('../../../../account/' . $a['id'])); ?>"><?php e($a['number']); ?></a></td>
135
+                <td><a href="<?php e(url('../../../../account/'.$a['id'])); ?>"><?php e($a['number']); ?></a></td>
136 136
                 <td><?php e($a['name']); ?></td>
137 137
                 <td><?php e(amountToOutput($a['debet'])); ?></td>
138 138
                 <td><?php e(amountToOutput($a['credit'])); ?></td>
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         </fieldset>
182 182
 
183 183
         <ul class="options">
184
-            <li><a class="excel" href="<?php e(url(null) . '.xls'); ?>">Excel</a></li>
184
+            <li><a class="excel" href="<?php e(url(null).'.xls'); ?>">Excel</a></li>
185 185
         </ul>
186 186
         <table>
187 187
             <caption>Resultatopgørelse</caption>
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
             <fieldset>
340 340
                 <legend>Trin 8: Fyraften</legend>
341 341
                 <p>Det er godt arbejde. Nu har du fortjent en pause. Håber ikke det var for vanskeligt. Vi hører naturligvis altid gerne om dine oplevelser med programmet, så vi kan forbedre det mest muligt.</p>
342
-                <p><a class="excel" href="<?php e(url(null) . '.xls'); ?>">Hent årsregnskabet i et regneark</a></p>
342
+                <p><a class="excel" href="<?php e(url(null).'.xls'); ?>">Hent årsregnskabet i et regneark</a></p>
343 343
                 <input type="submit" value="Forrige" name="previous" />
344 344
             </fieldset>
345 345
         <?php
Please login to merge, or discard this patch.
Braces   +23 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,10 +11,13 @@  discard block
 block discarded – undo
11 11
     <p class="warning">Du har ikke oprettet nogen momsperioder. <a href="<?php e(url('../vat')); ?>">Opret perioder</a>.</p>
12 12
 <?php elseif (!$context->getYear()->isBalanced()) : ?>
13 13
     <p class="error">Balancen for året er <?php e(amountToOutput($context->getYear()->get('year_saldo'))); ?>. I et dobbelt bogholderi skal saldoen altid være 0, for ellers er der ikke er bogført lige meget på debet og credit. Du kan først lave årsafslutning når regnskabet stemmer. <a href="<?php e(url('../../../daybook')); ?>">Gå til kassekladden</a>.</p>
14
-<?php else : ?>
14
+<?php else {
15
+    : ?>
15 16
 
16 17
 
17
-<form action="<?php e(url()); ?>" method="post">
18
+<form action="<?php e(url());
19
+}
20
+?>" method="post">
18 21
     <input type="hidden" name="step" value="<?php e($context->getYearEnd()->get('step') + 1); ?>" />
19 22
 
20 23
 <?php
@@ -71,11 +74,14 @@  discard block
 block discarded – undo
71 74
             <?php if (count($context->getYearEnd()->getStatedActions('operating_reset')) == 0) : ?>
72 75
             <input type="submit" name="previous" value="Forrige" />
73 76
             <input type="submit" name="step_save_result" value="Gem resultatopgørelsen" class="confirm" />
74
-            <?php else : ?>
77
+            <?php else {
78
+    : ?>
75 79
                 <p>Resultatopgørelsen er allerede gemt. Du kan føre posterne tilbage, hvis du vil gemme igen.</p>
76 80
                 <input type="submit" name="previous" value="Forrige" />
77 81
                 <input type="submit" name="step_reverse_result_reset" value="Tilbagefør posterne" class="confirm" />
78
-                <input type="submit" name="next" value="<?php e(t('Next')); ?>" class="confirm" />
82
+                <input type="submit" name="next" value="<?php e(t('Next'));
83
+}
84
+?>" class="confirm" />
79 85
             <?php endif; ?>
80 86
         </fieldset>
81 87
 
@@ -92,9 +98,11 @@  discard block
 block discarded – undo
92 98
             <p class="warning">Du er endnu ikke helt klar til dette trin, for resultatopgørelsen er ikke gemt.</p>
93 99
             <input type="submit" value="Forrige" name="previous" />
94 100
             </fieldset>
95
-        <?php else : ?>
101
+        <?php else {
102
+    : ?>
96 103
         <?php
97 104
         $status_accounts = $context->getAccount()->getList('status');
105
+}
98 106
         ?>
99 107
 
100 108
         <fieldset>
@@ -171,13 +179,16 @@  discard block
 block discarded – undo
171 179
             </fieldset>
172 180
 
173 181
         <?php
174
-        else :
182
+        else {
183
+            :
175 184
         ?>
176 185
         <fieldset>
177 186
             <legend>Trin 5: Årsregnskabet</legend>
178 187
             <p>Årsregnskabet er færdig. Du kan se det nedenunder - og du kan skrive det ud som et excel-ark. God fornøjelse.</p>
179 188
             <input name="previous" type="submit" value="Forrige" />
180
-            <input name="next" type="submit" value="<?php e(t('Next')); ?>" />
189
+            <input name="next" type="submit" value="<?php e(t('Next'));
190
+        }
191
+        ?>" />
181 192
         </fieldset>
182 193
 
183 194
         <ul class="options">
@@ -303,12 +314,15 @@  discard block
 block discarded – undo
303 314
                 <p>Årets resultat skal overføres til kapitalkontoen, så dine konti er klar til <?php e(t('Next')); ?> års regnskab.</p>
304 315
                 <input type="submit" value="Forrige" name="previous" />
305 316
                 <input type="submit" value="Gem" name="step_transfer_result" class="confirm" />
306
-            <?php else : ?>
317
+            <?php else {
318
+    : ?>
307 319
                 <p>Årets resultat er allerede nulstillet. Du kan føre posterne tilbage, hvis du vil gemme igen.</p>
308 320
                 <input type="submit" value="Forrige" name="previous" />
309 321
                 <input type="submit" name="step_reverse_result_account_reset" value="Tilbagefør posterne" />
310 322
 
311
-                <input type="submit" name="next" value="<?php e(t('Next')); ?>" />
323
+                <input type="submit" name="next" value="<?php e(t('Next'));
324
+}
325
+?>" />
312 326
             <?php endif; ?>
313 327
 
314 328
             </fieldset>
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/Controller/templates/year/show.tpl.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,9 +112,12 @@
 block discarded – undo
112 112
         </div>
113 113
         <?php endif; ?>
114 114
     </fieldset>
115
-<?php else : ?>
115
+<?php else {
116
+    : ?>
116 117
     <h2>Kontoplan</h2>
117
-    <p>Du kan finde dine konti under <a href="<?php e(url('account')); ?>">kontoplanen</a>.</p>
118
+    <p>Du kan finde dine konti under <a href="<?php e(url('account'));
119
+}
120
+?>">kontoplanen</a>.</p>
118 121
 
119 122
     <?php if (!$context->getYear()->vatAccountIsSet()) : ?>
120 123
 
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/Controller/templates/year/index.tpl.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,10 +31,10 @@
 block discarded – undo
31 31
                 echo ' checked="checked"';
32 32
 } ?>/></td>
33 33
             <td><a href="<?php e(url($y['id'])); ?>"><?php e($y['label']); ?></a></td>
34
-            <td><a href="<?php e(url($y['id'] . '/vat')); ?>"><?php e(t('Vat')); ?></a></td>
35
-            <td><a href="<?php e(url($y['id'] . '/end')); ?>"><?php e(t('End year')); ?></a></td>            
34
+            <td><a href="<?php e(url($y['id'].'/vat')); ?>"><?php e(t('Vat')); ?></a></td>
35
+            <td><a href="<?php e(url($y['id'].'/end')); ?>"><?php e(t('End year')); ?></a></td>            
36 36
             <td class="options">
37
-                <a class="edit" href="<?php e(url($y['id'] . '/edit')); ?>"><?php e(t('Edit')); ?></a>
37
+                <a class="edit" href="<?php e(url($y['id'].'/edit')); ?>"><?php e(t('Edit')); ?></a>
38 38
             </td>
39 39
         </tr>
40 40
         <?php endforeach; ?>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,11 @@
 block discarded – undo
10 10
 
11 11
 <?php if (!$context->getYearGateway()->getList()) : ?>
12 12
     <p>Der er ikke oprettet nogen regnskabsår. Du kan oprette et ved at klikke på knappen ovenover.</p>
13
-<?php else : ?>
14
-    <form action="<?php e(url('./')); ?>" method="post">
13
+<?php else {
14
+    : ?>
15
+    <form action="<?php e(url('./'));
16
+}
17
+?>" method="post">
15 18
     <input type="hidden" name="_method" value="put" />
16 19
     <table>
17 20
         <caption>Regnskabsår</caption>
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/Controller/templates/state.tpl.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 <tbody>
39 39
     <?php foreach ($context->getAccounts() as $account) { ?>
40 40
     <tr>
41
-        <td><a href="<?php e(url('../../account/' . $account['id'])); ?>"><?php e($account['number']); ?></a></td>
41
+        <td><a href="<?php e(url('../../account/'.$account['id'])); ?>"><?php e($account['number']); ?></a></td>
42 42
         <td><?php e($account['name']); ?></td>
43 43
         <td class="amount"><?php e(amountToOutput($account['saldo_primo'])); ?></td>
44 44
         <td class="amount"><?php e(amountToOutput($account['saldo_draft'])); ?></td>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@
 block discarded – undo
69 69
         <div><input type="submit" value="Bogfør" name="state" onclick="return confirm('Er du sikker på, at du vil bogføre?');" /></div>
70 70
     </fieldset>
71 71
 </form>
72
-<?php else : ?>
73
-    <p class="message-dependent">Der er ingen poster i kassekladden. Du skal <a href="<?php e($context->url('../')); ?>">indtaste poster i kassekladden</a>, inden du kan bogføre.</p>
72
+<?php else {
73
+    : ?>
74
+    <p class="message-dependent">Der er ingen poster i kassekladden. Du skal <a href="<?php e($context->url('../'));
75
+}
76
+?>">indtaste poster i kassekladden</a>, inden du kan bogføre.</p>
74 77
 <?php endif; ?>
75 78
\ No newline at end of file
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/Controller/templates/account/popup.tpl.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
                 <?php else : ?>
97 97
                     <tr>
98 98
                         <th><?php e($account['number']); ?></th>
99
-                        <td><?php e($account['name']);  ?></td>
99
+                        <td><?php e($account['name']); ?></td>
100 100
                     </tr>
101 101
                 <?php endif; ?>
102 102
             <?php endforeach; ?>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,9 +93,12 @@
 block discarded – undo
93 93
                     <tr class="headline">
94 94
                         <td colspan="2"><?php e($account['name']); ?></td>
95 95
                     </tr>
96
-                <?php else : ?>
96
+                <?php else {
97
+    : ?>
97 98
                     <tr>
98
-                        <th><?php e($account['number']); ?></th>
99
+                        <th><?php e($account['number']);
100
+}
101
+?></th>
99 102
                         <td><?php e($account['name']);  ?></td>
100 103
                     </tr>
101 104
                 <?php endif; ?>
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/Controller/templates/account/show.tpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                     e($post['dk_date']);
47 47
 } ?></td>
48 48
                 <td><?php if (isset($post['voucher_id'])) :
49
-?><a href="<?php e(url('../../voucher/' . $post['voucher_id'])); ?>"><?php e($post['voucher_number']); ?></a><?php
49
+?><a href="<?php e(url('../../voucher/'.$post['voucher_id'])); ?>"><?php e($post['voucher_number']); ?></a><?php
50 50
 endif; ?></td>
51 51
                 <td><?php e($post['text']); ?></td>
52 52
                 <td class="amount"><?php e(amountToOutput($post['debet'])); ?></td>
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/Controller/templates/account/index.tpl.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 
7 7
 <ul class="options">
8 8
     <li><a href="<?php e(url(null, array('create'))); ?>">Opret konto</a></li>
9
-    <li><a class="excel" href="<?php e(url(null . '.xls')); ?>">Excel</a></li>
9
+    <li><a class="excel" href="<?php e(url(null.'.xls')); ?>">Excel</a></li>
10 10
     <li><a href="<?php e(url('../')); ?>"><?php e(t('Close')); ?></a></li>
11 11
 </ul>
12 12
 <?php
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 <?php if (count($accounts) == 0) : ?>
31 31
     <div class="message-dependent">
32 32
         <p>Der er endnu ikke oprettet nogen konti.</p>
33
-        <p>Du kan oprette en standardkontoplan under <a href="<?php e(url('../year/' . $year->get('id'))); ?>">regnskabsåret</a>, eller du kan taste dem manuelt ind ved at klikke på opret konto ovenfor.</p>
33
+        <p>Du kan oprette en standardkontoplan under <a href="<?php e(url('../year/'.$year->get('id'))); ?>">regnskabsåret</a>, eller du kan taste dem manuelt ind ved at klikke på opret konto ovenfor.</p>
34 34
     </div>
35 35
 <?php else : ?>
36 36
 <table>
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                 <td colspan="4" class="headline"><?php e($account['name']); ?></td>
65 65
             <?php elseif ($account['type'] == 'sum') : ?>
66 66
                 <td><?php e($account['name']); ?><?php if ($account['type'] == 'sum') {
67
-                    e(' ('. $account["sum_from"] . ' til ' . $account["sum_to"] . ')');
67
+                    e(' ('.$account["sum_from"].' til '.$account["sum_to"].')');
68 68
 } ?></td>
69 69
             <?php else :?>
70 70
                 <td><a href="<?php e(url($account['id'])); ?>"><?php e($account['name']); ?></a></td>
Please login to merge, or discard this patch.
Braces   +13 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,7 +32,8 @@  discard block
 block discarded – undo
32 32
         <p>Der er endnu ikke oprettet nogen konti.</p>
33 33
         <p>Du kan oprette en standardkontoplan under <a href="<?php e(url('../year/' . $year->get('id'))); ?>">regnskabsåret</a>, eller du kan taste dem manuelt ind ved at klikke på opret konto ovenfor.</p>
34 34
     </div>
35
-<?php else : ?>
35
+<?php else {
36
+    : ?>
36 37
 <table>
37 38
     <caption>Kontoplan</caption>
38 39
     <thead>
@@ -50,6 +51,7 @@  discard block
 block discarded – undo
50 51
 
51 52
         <tr<?php if ($account['type'] == 'headline') {
52 53
             echo ' class="headline"';
54
+}
53 55
 } elseif ($account['type'] == 'sum') {
54 56
     echo ' class="sum"';
55 57
 } ?><?php if (!empty($_GET['from_account_id']) and $_GET['from_account_id'] == $account['id']) {
@@ -57,8 +59,11 @@  discard block
 block discarded – undo
57 59
 } ?>>
58 60
             <?php if ($account['type'] != 'headline' and $account['type'] != 'sum') : ?>
59 61
                 <td><a href="<?php e(url($account['id'])); ?>"><?php e($account['number']); ?></a></td>
60
-            <?php else : ?>
61
-                <td><?php e($account['number']); ?></td>
62
+            <?php else {
63
+    : ?>
64
+                <td><?php e($account['number']);
65
+}
66
+?></td>
62 67
             <?php endif; ?>
63 68
             <?php if ($account['type'] == 'headline') : ?>
64 69
                 <td colspan="4" class="headline"><?php e($account['name']); ?></td>
@@ -66,8 +71,11 @@  discard block
 block discarded – undo
66 71
                 <td><?php e($account['name']); ?><?php if ($account['type'] == 'sum') {
67 72
                     e(' ('. $account["sum_from"] . ' til ' . $account["sum_to"] . ')');
68 73
 } ?></td>
69
-            <?php else :?>
70
-                <td><a href="<?php e(url($account['id'])); ?>"><?php e($account['name']); ?></a></td>
74
+            <?php else {
75
+    :?>
76
+                <td><a href="<?php e(url($account['id']));
77
+}
78
+?>"><?php e($account['name']); ?></a></td>
71 79
             <?php endif; ?>
72 80
 
73 81
             <?php if ($account['type'] != 'headline') { ?>
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/Controller/templates/index.tpl.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@
 block discarded – undo
6 6
 
7 7
 <?php if (count($context->getYear()->getList()) == 0) : ?>
8 8
     <p>Du skal <a href="<?php e($context->url('year', array('create'))); ?>">oprette et regnskab</a> for at komme i gang med at bruge regnskabsmodulet.</p>
9
-<?php else : ?>
10
-    <p><a href="<?php e($context->url('year')); ?>">Vælg et regnskab</a> du vil se eller ændre i.</p>
9
+<?php else {
10
+    : ?>
11
+    <p><a href="<?php e($context->url('year'));
12
+}
13
+?>">Vælg et regnskab</a> du vil se eller ændre i.</p>
11 14
 <?php endif; ?>
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/Controller/templates/search.tpl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,8 +86,8 @@
 block discarded – undo
86 86
     <?php foreach ($posts as $post) { ?>
87 87
     <tr>
88 88
         <td><?php e($post['date_dk']); ?></td>
89
-        <td><a href="<?php e('../voucher/' . $post['voucher_id']); ?>"><?php e($post['voucher_number']); ?></a></td>
90
-        <td><?php e($post['account_number']) . ' ' . e($post['account_name']); ?></td>
89
+        <td><a href="<?php e('../voucher/'.$post['voucher_id']); ?>"><?php e($post['voucher_number']); ?></a></td>
90
+        <td><?php e($post['account_number']).' '.e($post['account_name']); ?></td>
91 91
         <td><?php e(amountToOutput($post['debet'])); ?></td>
92 92
         <td><?php e(amountToOutput($post['credit'])); ?></td>
93 93
     </tr>
Please login to merge, or discard this patch.