Completed
Push — master ( 9d10c2...bf46e5 )
by Lars
05:14
created
src/Intraface/modules/newsletter/Controller/Subscribers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 
89 89
         }*/
90 90
 
91
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/subscribers');
91
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/subscribers');
92 92
         return $smarty->render($this);
93 93
     }
94 94
 
Please login to merge, or discard this patch.
src/Intraface/modules/newsletter/Controller/Send.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     {
13 13
         $module = $this->getKernel()->module("newsletter");
14 14
 
15
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/send');
15
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/send');
16 16
         return $smarty->render($this);
17 17
     }
18 18
 
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/VatPeriodGateway.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
     public function __construct($year_object)
10 10
     {
11
-        $this->year  = $year_object;
11
+        $this->year = $year_object;
12 12
     }
13 13
 
14 14
     /**
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public function getList()
20 20
     {
21 21
         $db = new DB_Sql;
22
-        $db->query("SELECT *, DATE_FORMAT(date_start, '%d-%m-%Y') AS date_start_dk, DATE_FORMAT(date_end, '%d-%m-%Y') AS date_end_dk FROM accounting_vat_period WHERE year_id = " . $this->year->get('id') . " AND intranet_id=" . $this->year->kernel->intranet->get('id') . " AND active = 1 ORDER BY date_start ASC");
22
+        $db->query("SELECT *, DATE_FORMAT(date_start, '%d-%m-%Y') AS date_start_dk, DATE_FORMAT(date_end, '%d-%m-%Y') AS date_end_dk FROM accounting_vat_period WHERE year_id = ".$this->year->get('id')." AND intranet_id=".$this->year->kernel->intranet->get('id')." AND active = 1 ORDER BY date_start ASC");
23 23
         $i   = 0;
24 24
         $vat = array();
25 25
         while ($db->nextRecord()) {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     public function arePeriodsCreated()
42 42
     {
43 43
         $db = new DB_Sql;
44
-        $db->query("SELECT id FROM accounting_vat_period WHERE year_id = " . $this->year->get('id') . " AND intranet_id=" . $this->year->kernel->intranet->get('id'). " AND active=1");
44
+        $db->query("SELECT id FROM accounting_vat_period WHERE year_id = ".$this->year->get('id')." AND intranet_id=".$this->year->kernel->intranet->get('id')." AND active=1");
45 45
         return $db->numRows();
46 46
     }
47 47
 
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
         foreach ($periods['periods'] as $key => $value) {
120 120
             $input = array(
121 121
                 'label'      => $value['name'],
122
-                'date_start' => $this->year->get('year') . '-' . $value['date_from'],
123
-                'date_end'   => $this->year->get('year') . '-' . $value['date_to'],
122
+                'date_start' => $this->year->get('year').'-'.$value['date_from'],
123
+                'date_end'   => $this->year->get('year').'-'.$value['date_to'],
124 124
             );
125 125
             $vatperiod = $this->findFromId();
126 126
             $vatperiod->save($input, 'insert');
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
     function findFromId($id = 0)
133 133
     {
134
-        require_once dirname(__FILE__) . '/VatPeriod.php';
134
+        require_once dirname(__FILE__).'/VatPeriod.php';
135 135
         return new VatPeriod($this->year);
136 136
     }
137 137
 }
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/standardaccounts.php 1 patch
Spacing   +109 added lines, -109 removed lines patch added patch discarded remove patch
@@ -23,52 +23,52 @@  discard block
 block discarded – undo
23 23
 
24 24
 $i++;
25 25
 
26
-$standardaccounts[$i]['number']     = '1110';
27
-$standardaccounts[$i]['name']           = 'Salg med moms';
26
+$standardaccounts[$i]['number'] = '1110';
27
+$standardaccounts[$i]['name'] = 'Salg med moms';
28 28
 $standardaccounts[$i]['type_key']           = '2';
29 29
 $standardaccounts[$i]['use_key']            = '2';
30
-$standardaccounts[$i]['vat_key']    = '2';
30
+$standardaccounts[$i]['vat_key'] = '2';
31 31
 
32 32
 $i++;
33 33
 
34
-$standardaccounts[$i]['number']     = '1120';
35
-$standardaccounts[$i]['name']           = 'Salg uden moms';
34
+$standardaccounts[$i]['number'] = '1120';
35
+$standardaccounts[$i]['name'] = 'Salg uden moms';
36 36
 $standardaccounts[$i]['type_key']           = '2';
37 37
 $standardaccounts[$i]['use_key']            = '2';
38
-$standardaccounts[$i]['vat_key']    = '0';
38
+$standardaccounts[$i]['vat_key'] = '0';
39 39
 
40 40
 $i++;
41 41
 
42 42
 $standardaccounts[$i]['number']     = '1990';
43
-$standardaccounts[$i]['name']           = 'Nettoomsætning';
44
-$standardaccounts[$i]['type_key']           = '5';
43
+$standardaccounts[$i]['name'] = 'Nettoomsætning';
44
+$standardaccounts[$i]['type_key'] = '5';
45 45
 $standardaccounts[$i]['vat_key']    = '0';
46 46
 $standardaccounts[$i]['sum_from']   = '2';
47 47
 $standardaccounts[$i]['sum_to']     = '1989';
48
-$standardaccounts[$i]['use_key']            = '1';
48
+$standardaccounts[$i]['use_key'] = '1';
49 49
 
50 50
 $i++;
51 51
 
52 52
 /**********************************************/
53 53
 
54
-$standardaccounts[$i]['number']     = '2000';
55
-$standardaccounts[$i]['name']           = 'Udgifter';
54
+$standardaccounts[$i]['number'] = '2000';
55
+$standardaccounts[$i]['name'] = 'Udgifter';
56 56
 $standardaccounts[$i]['type_key']           = '1';
57 57
 $standardaccounts[$i]['use_key']            = '1';
58
-$standardaccounts[$i]['vat_key']    = '0';
58
+$standardaccounts[$i]['vat_key'] = '0';
59 59
 
60 60
 $i++;
61 61
 
62
-$standardaccounts[$i]['number']     = '2100';
63
-$standardaccounts[$i]['name']           = 'Vareforbrug fra varelager';
62
+$standardaccounts[$i]['number'] = '2100';
63
+$standardaccounts[$i]['name'] = 'Vareforbrug fra varelager';
64 64
 $standardaccounts[$i]['type_key']           = '2';
65 65
 $standardaccounts[$i]['use_key']            = '3';
66
-$standardaccounts[$i]['vat_key']    = '0';
66
+$standardaccounts[$i]['vat_key'] = '0';
67 67
 
68 68
 $i++;
69 69
 
70
-$standardaccounts[$i]['number']     = '4100';
71
-$standardaccounts[$i]['name']           = 'EU-purchases';
70
+$standardaccounts[$i]['number'] = '4100';
71
+$standardaccounts[$i]['name'] = 'EU-purchases';
72 72
 $standardaccounts[$i]['type_key']           = '2';
73 73
 $standardaccounts[$i]['use_key']            = '3';
74 74
 $standardaccounts[$i]['vat_key']    = '0';
@@ -76,154 +76,154 @@  discard block
 block discarded – undo
76 76
 
77 77
 $i++;
78 78
 
79
-$standardaccounts[$i]['number']     = '4700';
80
-$standardaccounts[$i]['name']           = 'Varekøb uden for EU';
79
+$standardaccounts[$i]['number'] = '4700';
80
+$standardaccounts[$i]['name'] = 'Varekøb uden for EU';
81 81
 $standardaccounts[$i]['type_key']           = '2';
82 82
 $standardaccounts[$i]['use_key']            = '3';
83
-$standardaccounts[$i]['vat_key']    = '0';
84
-$standardaccounts[$i]['buy_abroad']     = 1;
83
+$standardaccounts[$i]['vat_key'] = '0';
84
+$standardaccounts[$i]['buy_abroad'] = 1;
85 85
 
86 86
 $i++;
87 87
 
88 88
 $standardaccounts[$i]['number']     = '4990';
89
-$standardaccounts[$i]['name']           = 'Dækningsbidrag';
90
-$standardaccounts[$i]['type_key']           = '5';
89
+$standardaccounts[$i]['name'] = 'Dækningsbidrag';
90
+$standardaccounts[$i]['type_key'] = '5';
91 91
 $standardaccounts[$i]['vat_key']    = '0';
92 92
 $standardaccounts[$i]['sum_from']   = '1';
93 93
 $standardaccounts[$i]['sum_to']     = '4989';
94
-$standardaccounts[$i]['use_key']            = '1';
94
+$standardaccounts[$i]['use_key'] = '1';
95 95
 
96 96
 $i++;
97 97
 
98 98
 $standardaccounts[$i]['number']     = '7000';
99
-$standardaccounts[$i]['name']           = 'Kontorartikler';
99
+$standardaccounts[$i]['name'] = 'Kontorartikler';
100 100
 $standardaccounts[$i]['type_key']           = '2';
101 101
 $standardaccounts[$i]['vat_key']    = '1';
102 102
 $standardaccounts[$i]['use_key']            = '3';
103 103
 
104 104
 $i++;
105 105
 
106
-$standardaccounts[$i]['number']     = '7200';
107
-$standardaccounts[$i]['name']           = 'Porto';
106
+$standardaccounts[$i]['number'] = '7200';
107
+$standardaccounts[$i]['name'] = 'Porto';
108 108
 $standardaccounts[$i]['type_key']           = '2';
109 109
 $standardaccounts[$i]['use_key']            = '3';
110
-$standardaccounts[$i]['vat_key']    = '0';
110
+$standardaccounts[$i]['vat_key'] = '0';
111 111
 
112 112
 $i++;
113 113
 
114
-$standardaccounts[$i]['number']     = '7400';
115
-$standardaccounts[$i]['name']           = 'Småanskaffelser';
114
+$standardaccounts[$i]['number'] = '7400';
115
+$standardaccounts[$i]['name'] = 'Småanskaffelser';
116 116
 $standardaccounts[$i]['type_key']           = '2';
117 117
 $standardaccounts[$i]['use_key']            = '3';
118
-$standardaccounts[$i]['vat_key']    = '1';
118
+$standardaccounts[$i]['vat_key'] = '1';
119 119
 
120 120
 $i++;
121 121
 
122
-$standardaccounts[$i]['number']     = '7600';
123
-$standardaccounts[$i]['name']           = 'Telefon';
122
+$standardaccounts[$i]['number'] = '7600';
123
+$standardaccounts[$i]['name'] = 'Telefon';
124 124
 $standardaccounts[$i]['type_key']           = '2';
125 125
 $standardaccounts[$i]['use_key']            = '3';
126
-$standardaccounts[$i]['vat_key']    = '1';
126
+$standardaccounts[$i]['vat_key'] = '1';
127 127
 
128 128
 $i++;
129 129
 
130
-$standardaccounts[$i]['number']     = '7650';
131
-$standardaccounts[$i]['name']           = 'Internet og webhotel';
130
+$standardaccounts[$i]['number'] = '7650';
131
+$standardaccounts[$i]['name'] = 'Internet og webhotel';
132 132
 $standardaccounts[$i]['type_key']           = '2';
133 133
 $standardaccounts[$i]['use_key']            = '3';
134
-$standardaccounts[$i]['vat_key']    = '1';
134
+$standardaccounts[$i]['vat_key'] = '1';
135 135
 
136 136
 $i++;
137 137
 
138
-$standardaccounts[$i]['number']     = '7800';
139
-$standardaccounts[$i]['name']           = 'Diverse incl. moms';
138
+$standardaccounts[$i]['number'] = '7800';
139
+$standardaccounts[$i]['name'] = 'Diverse incl. moms';
140 140
 $standardaccounts[$i]['type_key']           = '2';
141 141
 $standardaccounts[$i]['use_key']            = '3';
142
-$standardaccounts[$i]['vat_key']    = '1';
142
+$standardaccounts[$i]['vat_key'] = '1';
143 143
 
144 144
 $i++;
145 145
 
146
-$standardaccounts[$i]['number']     = '7900';
147
-$standardaccounts[$i]['name']           = 'Diverse excl. moms';
146
+$standardaccounts[$i]['number'] = '7900';
147
+$standardaccounts[$i]['name'] = 'Diverse excl. moms';
148 148
 $standardaccounts[$i]['type_key']           = '2';
149 149
 $standardaccounts[$i]['use_key']            = '3';
150
-$standardaccounts[$i]['vat_key']    = '0';
150
+$standardaccounts[$i]['vat_key'] = '0';
151 151
 
152 152
 $i++;
153 153
 
154 154
 
155 155
 $standardaccounts[$i]['number']     = '39990';
156
-$standardaccounts[$i]['name']           = 'Resultat før renter';
157
-$standardaccounts[$i]['type_key']           = '5';
156
+$standardaccounts[$i]['name'] = 'Resultat før renter';
157
+$standardaccounts[$i]['type_key'] = '5';
158 158
 $standardaccounts[$i]['vat_key']    = '0';
159 159
 $standardaccounts[$i]['sum_from']   = '1';
160 160
 $standardaccounts[$i]['sum_to']     = '39989';
161
-$standardaccounts[$i]['use_key']            = '1';
161
+$standardaccounts[$i]['use_key'] = '1';
162 162
 
163 163
 $i++;
164 164
 
165 165
 /**********************************************/
166 166
 
167
-$standardaccounts[$i]['number']     = '40000';
168
-$standardaccounts[$i]['name']           = 'Finansieringsindtægter';
167
+$standardaccounts[$i]['number'] = '40000';
168
+$standardaccounts[$i]['name'] = 'Finansieringsindtægter';
169 169
 $standardaccounts[$i]['type_key']           = '1';
170 170
 $standardaccounts[$i]['use_key']            = '1';
171
-$standardaccounts[$i]['vat_key']    = '0';
171
+$standardaccounts[$i]['vat_key'] = '0';
172 172
 
173 173
 
174 174
 $i++;
175 175
 
176
-$standardaccounts[$i]['number']     = '41000';
177
-$standardaccounts[$i]['name']           = 'Renteindtægter';
176
+$standardaccounts[$i]['number'] = '41000';
177
+$standardaccounts[$i]['name'] = 'Renteindtægter';
178 178
 $standardaccounts[$i]['type_key']           = '2';
179 179
 $standardaccounts[$i]['use_key']            = '1';
180
-$standardaccounts[$i]['vat_key']    = '0';
180
+$standardaccounts[$i]['vat_key'] = '0';
181 181
 
182 182
 $i++;
183 183
 
184
-$standardaccounts[$i]['number']     = '43000';
185
-$standardaccounts[$i]['name']           = 'Finansieringsudgifter';
184
+$standardaccounts[$i]['number'] = '43000';
185
+$standardaccounts[$i]['name'] = 'Finansieringsudgifter';
186 186
 $standardaccounts[$i]['type_key']           = '1';
187 187
 $standardaccounts[$i]['use_key']            = '1';
188
-$standardaccounts[$i]['vat_key']    = '0';
188
+$standardaccounts[$i]['vat_key'] = '0';
189 189
 
190 190
 $i++;
191 191
 
192
-$standardaccounts[$i]['number']     = '43100';
193
-$standardaccounts[$i]['name']           = 'Renteudgifter';
192
+$standardaccounts[$i]['number'] = '43100';
193
+$standardaccounts[$i]['name'] = 'Renteudgifter';
194 194
 $standardaccounts[$i]['type_key']           = '2';
195 195
 $standardaccounts[$i]['use_key']            = '1';
196
-$standardaccounts[$i]['vat_key']    = '0';
196
+$standardaccounts[$i]['vat_key'] = '0';
197 197
 
198 198
 $i++;
199 199
 
200 200
 
201
-$standardaccounts[$i]['number']     = '43850';
202
-$standardaccounts[$i]['name']           = 'Bankgebyr';
201
+$standardaccounts[$i]['number'] = '43850';
202
+$standardaccounts[$i]['name'] = 'Bankgebyr';
203 203
 $standardaccounts[$i]['type_key']           = '2';
204 204
 $standardaccounts[$i]['use_key']            = '1';
205
-$standardaccounts[$i]['vat_key']    = '0';
205
+$standardaccounts[$i]['vat_key'] = '0';
206 206
 
207 207
 $i++;
208 208
 
209 209
 $standardaccounts[$i]['number']     = '43990';
210
-$standardaccounts[$i]['name']           = 'Finansieringsudgifter';
211
-$standardaccounts[$i]['type_key']           = '5';
210
+$standardaccounts[$i]['name'] = 'Finansieringsudgifter';
211
+$standardaccounts[$i]['type_key'] = '5';
212 212
 $standardaccounts[$i]['vat_key']    = '0';
213 213
 $standardaccounts[$i]['sum_from']   = '43000';
214 214
 $standardaccounts[$i]['sum_to']     = '43995';
215
-$standardaccounts[$i]['use_key']            = '1';
215
+$standardaccounts[$i]['use_key'] = '1';
216 216
 
217 217
 $i++;
218 218
 
219 219
 $standardaccounts[$i]['number']     = '49990';
220
-$standardaccounts[$i]['name']           = 'Periodens resultat';
221
-$standardaccounts[$i]['type_key']           = '5';
220
+$standardaccounts[$i]['name'] = 'Periodens resultat';
221
+$standardaccounts[$i]['type_key'] = '5';
222 222
 $standardaccounts[$i]['vat_key']    = '0';
223 223
 $standardaccounts[$i]['sum_from']   = '1';
224 224
 $standardaccounts[$i]['sum_to']     = '43989';
225
-$standardaccounts[$i]['use_key']            = '1';
226
-$standardaccounts[$i]['result_account_id_end']          = true;
225
+$standardaccounts[$i]['use_key'] = '1';
226
+$standardaccounts[$i]['result_account_id_end'] = true;
227 227
 
228 228
 
229 229
 $i++;
@@ -231,18 +231,18 @@  discard block
 block discarded – undo
231 231
 /**********************************************/
232 232
 
233 233
 $standardaccounts[$i]['number']     = '50000';
234
-$standardaccounts[$i]['name']           = 'Balance';
234
+$standardaccounts[$i]['name'] = 'Balance';
235 235
 $standardaccounts[$i]['type_key']           = '1';
236 236
 $standardaccounts[$i]['vat_key']    = '0';
237 237
 $standardaccounts[$i]['use_key']            = '1';
238
-$standardaccounts[$i]['balance_account_id_start']           = true;
238
+$standardaccounts[$i]['balance_account_id_start'] = true;
239 239
 
240 240
 $i++;
241 241
 
242 242
 /**********************************************/
243 243
 
244 244
 $standardaccounts[$i]['number']     = '50010';
245
-$standardaccounts[$i]['name']           = 'Aktiver';
245
+$standardaccounts[$i]['name'] = 'Aktiver';
246 246
 $standardaccounts[$i]['type_key']           = '1';
247 247
 $standardaccounts[$i]['vat_key']    = '0';
248 248
 $standardaccounts[$i]['use_key']            = '1';
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 
252 252
 
253 253
 $standardaccounts[$i]['number']     = '50800';
254
-$standardaccounts[$i]['name']           = 'Driftssmidler';
254
+$standardaccounts[$i]['name'] = 'Driftssmidler';
255 255
 $standardaccounts[$i]['type_key']           = '3';
256 256
 $standardaccounts[$i]['vat_key']    = '1';
257 257
 $standardaccounts[$i]['use_key']            = '1';
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 $i++;
260 260
 
261 261
 $standardaccounts[$i]['number']     = '50810';
262
-$standardaccounts[$i]['name']           = 'Tilgang i årets løb';
262
+$standardaccounts[$i]['name'] = 'Tilgang i årets løb';
263 263
 $standardaccounts[$i]['type_key']           = '3';
264 264
 $standardaccounts[$i]['vat_key']    = '1';
265 265
 $standardaccounts[$i]['use_key']            = '1';
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 $i++;
268 268
 
269 269
 $standardaccounts[$i]['number']     = '50820';
270
-$standardaccounts[$i]['name']           = 'Afgang i året';
270
+$standardaccounts[$i]['name'] = 'Afgang i året';
271 271
 $standardaccounts[$i]['type_key']           = '3';
272 272
 $standardaccounts[$i]['vat_key']    = '2';
273 273
 $standardaccounts[$i]['use_key']            = '1';
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 $i++;
276 276
 
277 277
 $standardaccounts[$i]['number']     = '50830';
278
-$standardaccounts[$i]['name']           = 'Akkumulerede afskrivning på driftssmidler';
278
+$standardaccounts[$i]['name'] = 'Akkumulerede afskrivning på driftssmidler';
279 279
 $standardaccounts[$i]['type_key']           = '3';
280 280
 $standardaccounts[$i]['vat_key']    = '0';
281 281
 $standardaccounts[$i]['use_key']            = '1';
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 
285 285
 
286 286
 $standardaccounts[$i]['number']     = '55100';
287
-$standardaccounts[$i]['name']           = 'Varelager';
287
+$standardaccounts[$i]['name'] = 'Varelager';
288 288
 $standardaccounts[$i]['type_key']           = '3';
289 289
 $standardaccounts[$i]['vat_key']    = '1';
290 290
 $standardaccounts[$i]['use_key']            = '1';
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 $i++;
293 293
 
294 294
 $standardaccounts[$i]['number']     = '56100';
295
-$standardaccounts[$i]['name']           = 'Debitor';
295
+$standardaccounts[$i]['name'] = 'Debitor';
296 296
 $standardaccounts[$i]['type_key']           = '3';
297 297
 $standardaccounts[$i]['vat_key']    = '0';
298 298
 $standardaccounts[$i]['use_key']            = '4';
@@ -302,40 +302,40 @@  discard block
 block discarded – undo
302 302
 $i++;
303 303
 
304 304
 $standardaccounts[$i]['number']     = '58000';
305
-$standardaccounts[$i]['name']           = 'Bank, folio';
305
+$standardaccounts[$i]['name'] = 'Bank, folio';
306 306
 $standardaccounts[$i]['type_key']           = '3';
307 307
 $standardaccounts[$i]['vat_key']    = '0';
308 308
 $standardaccounts[$i]['use_key']            = '4';
309
-$standardaccounts[$i]['balance_account']            = 1;
309
+$standardaccounts[$i]['balance_account'] = 1;
310 310
 
311 311
 $i++;
312 312
 
313 313
 $standardaccounts[$i]['number']     = '58200';
314
-$standardaccounts[$i]['name']           = 'Kassen';
314
+$standardaccounts[$i]['name'] = 'Kassen';
315 315
 $standardaccounts[$i]['type_key']           = '3';
316 316
 $standardaccounts[$i]['vat_key']    = '0';
317 317
 $standardaccounts[$i]['use_key']            = '4';
318
-$standardaccounts[$i]['balance_account']            = 1;
318
+$standardaccounts[$i]['balance_account'] = 1;
319 319
 
320 320
 $i++;
321 321
 
322 322
 $standardaccounts[$i]['number']     = '58990';
323
-$standardaccounts[$i]['name']           = 'Likvide beholdninger';
324
-$standardaccounts[$i]['type_key']           = '3';
323
+$standardaccounts[$i]['name'] = 'Likvide beholdninger';
324
+$standardaccounts[$i]['type_key'] = '3';
325 325
 $standardaccounts[$i]['vat_key']    = '0';
326 326
 $standardaccounts[$i]['sum_from']   = '58000';
327 327
 $standardaccounts[$i]['sum_to']     = '58995';
328
-$standardaccounts[$i]['use_key']            = '1';
328
+$standardaccounts[$i]['use_key'] = '1';
329 329
 
330 330
 $i++;
331 331
 
332 332
 $standardaccounts[$i]['number']     = '58995';
333
-$standardaccounts[$i]['name']           = 'Aktiver i alt';
334
-$standardaccounts[$i]['type_key']           = '5';
333
+$standardaccounts[$i]['name'] = 'Aktiver i alt';
334
+$standardaccounts[$i]['type_key'] = '5';
335 335
 $standardaccounts[$i]['vat_key']    = '0';
336 336
 $standardaccounts[$i]['sum_from']   = '50000';
337 337
 $standardaccounts[$i]['sum_to']     = '58995';
338
-$standardaccounts[$i]['use_key']            = '1';
338
+$standardaccounts[$i]['use_key'] = '1';
339 339
 
340 340
 $i++;
341 341
 
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 /**********************************************/
344 344
 
345 345
 $standardaccounts[$i]['number']     = '60000';
346
-$standardaccounts[$i]['name']           = 'Passiver';
346
+$standardaccounts[$i]['name'] = 'Passiver';
347 347
 $standardaccounts[$i]['type_key']           = '1';
348 348
 $standardaccounts[$i]['vat_key']    = '0';
349 349
 $standardaccounts[$i]['use_key']            = '1';
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
 $i++;
352 352
 
353 353
 $standardaccounts[$i]['number']     = '60500';
354
-$standardaccounts[$i]['name']           = 'Kapitalkonto';
354
+$standardaccounts[$i]['name'] = 'Kapitalkonto';
355 355
 $standardaccounts[$i]['type_key']           = '4';
356 356
 $standardaccounts[$i]['vat_key']    = '0';
357 357
 $standardaccounts[$i]['use_key']            = '1';
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
 $i++;
361 361
 
362 362
 $standardaccounts[$i]['number']     = '60800';
363
-$standardaccounts[$i]['name']           = 'Årets resultat';
363
+$standardaccounts[$i]['name'] = 'Årets resultat';
364 364
 $standardaccounts[$i]['type_key']           = '4';
365 365
 $standardaccounts[$i]['vat_key']    = '0';
366 366
 $standardaccounts[$i]['use_key']            = '1';
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
 $i++;
370 370
 
371 371
 $standardaccounts[$i]['number']     = '61000';
372
-$standardaccounts[$i]['name']           = 'Privatkonto';
372
+$standardaccounts[$i]['name'] = 'Privatkonto';
373 373
 $standardaccounts[$i]['type_key']           = '4';
374 374
 $standardaccounts[$i]['vat_key']    = '0';
375 375
 $standardaccounts[$i]['use_key']            = '1';
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 
379 379
 
380 380
 $standardaccounts[$i]['number']     = '63100';
381
-$standardaccounts[$i]['name']           = 'Kortfristet gæld';
381
+$standardaccounts[$i]['name'] = 'Kortfristet gæld';
382 382
 $standardaccounts[$i]['type_key']           = '4';
383 383
 $standardaccounts[$i]['vat_key']    = '0';
384 384
 $standardaccounts[$i]['use_key']            = '1';
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
 $i++;
387 387
 
388 388
 $standardaccounts[$i]['number']     = '65100';
389
-$standardaccounts[$i]['name']           = 'Langfristet gæld';
389
+$standardaccounts[$i]['name'] = 'Langfristet gæld';
390 390
 $standardaccounts[$i]['type_key']           = '4';
391 391
 $standardaccounts[$i]['vat_key']    = '0';
392 392
 $standardaccounts[$i]['use_key']            = '1';
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
 /**********************************************/
398 398
 
399 399
 $standardaccounts[$i]['number']     = '66000';
400
-$standardaccounts[$i]['name']           = 'Momskonti';
400
+$standardaccounts[$i]['name'] = 'Momskonti';
401 401
 $standardaccounts[$i]['type_key']           = '1';
402 402
 $standardaccounts[$i]['vat_key']    = '0';
403 403
 $standardaccounts[$i]['use_key']            = '1';
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 $i++;
406 406
 
407 407
 $standardaccounts[$i]['number']     = '66100';
408
-$standardaccounts[$i]['name']           = 'Moms, indgående, køb';
408
+$standardaccounts[$i]['name'] = 'Moms, indgående, køb';
409 409
 $standardaccounts[$i]['type_key']           = '4';
410 410
 $standardaccounts[$i]['vat_key']    = '0';
411 411
 $standardaccounts[$i]['use_key']            = '1';
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
 $i++;
415 415
 
416 416
 $standardaccounts[$i]['number']     = '66150';
417
-$standardaccounts[$i]['name']           = 'Moms af varekøb i udlandet';
417
+$standardaccounts[$i]['name'] = 'Moms af varekøb i udlandet';
418 418
 $standardaccounts[$i]['type_key']           = '4';
419 419
 $standardaccounts[$i]['vat_key']    = '0';
420 420
 $standardaccounts[$i]['use_key']            = '1';
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
 $i++;
424 424
 
425 425
 $standardaccounts[$i]['number']     = '66200';
426
-$standardaccounts[$i]['name']           = 'Moms, udgående, salg';
426
+$standardaccounts[$i]['name'] = 'Moms, udgående, salg';
427 427
 $standardaccounts[$i]['type_key']           = '4';
428 428
 $standardaccounts[$i]['vat_key']    = '0';
429 429
 $standardaccounts[$i]['use_key']            = '1';
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
 $i++;
433 433
 
434 434
 $standardaccounts[$i]['number']     = '66900';
435
-$standardaccounts[$i]['name']           = 'Moms, tilsvar';
435
+$standardaccounts[$i]['name'] = 'Moms, tilsvar';
436 436
 $standardaccounts[$i]['type_key']           = '4';
437 437
 $standardaccounts[$i]['vat_key']    = '0';
438 438
 $standardaccounts[$i]['use_key']            = '1';
@@ -441,30 +441,30 @@  discard block
 block discarded – undo
441 441
 $i++;
442 442
 
443 443
 $standardaccounts[$i]['number']     = '66990';
444
-$standardaccounts[$i]['name']           = 'Passiver i alt';
445
-$standardaccounts[$i]['type_key']           = '5';
444
+$standardaccounts[$i]['name'] = 'Passiver i alt';
445
+$standardaccounts[$i]['type_key'] = '5';
446 446
 $standardaccounts[$i]['vat_key']    = '0';
447 447
 $standardaccounts[$i]['sum_from']   = '60000';
448 448
 $standardaccounts[$i]['sum_to']     = '70000';
449
-$standardaccounts[$i]['use_key']            = '1';
450
-$standardaccounts[$i]['balance_account_id_end']             = true;
449
+$standardaccounts[$i]['use_key'] = '1';
450
+$standardaccounts[$i]['balance_account_id_end'] = true;
451 451
 
452 452
 
453 453
 $i++;
454 454
 
455 455
 $standardaccounts[$i]['number']     = '98000';
456
-$standardaccounts[$i]['name']           = 'Balancen i alt';
457
-$standardaccounts[$i]['type_key']           = '5';
456
+$standardaccounts[$i]['name'] = 'Balancen i alt';
457
+$standardaccounts[$i]['type_key'] = '5';
458 458
 $standardaccounts[$i]['vat_key']    = '0';
459 459
 $standardaccounts[$i]['sum_from']   = '50000';
460 460
 $standardaccounts[$i]['sum_to']     = '97999';
461
-$standardaccounts[$i]['use_key']            = '1';
461
+$standardaccounts[$i]['use_key'] = '1';
462 462
 
463 463
 
464 464
 $i++;
465 465
 
466 466
 $standardaccounts[$i]['number']     = '99000';
467
-$standardaccounts[$i]['name']           = 'Kontrol';
467
+$standardaccounts[$i]['name'] = 'Kontrol';
468 468
 $standardaccounts[$i]['type_key']           = '1';
469 469
 $standardaccounts[$i]['vat_key']    = '0';
470 470
 $standardaccounts[$i]['use_key']            = '1';
@@ -473,11 +473,11 @@  discard block
 block discarded – undo
473 473
 $i++;
474 474
 
475 475
 $standardaccounts[$i]['number']     = '99990';
476
-$standardaccounts[$i]['name']           = 'Balancekontrol';
477
-$standardaccounts[$i]['type_key']           = '5';
476
+$standardaccounts[$i]['name'] = 'Balancekontrol';
477
+$standardaccounts[$i]['type_key'] = '5';
478 478
 $standardaccounts[$i]['vat_key']    = '0';
479 479
 $standardaccounts[$i]['sum_from']   = '1';
480 480
 $standardaccounts[$i]['sum_to']     = '99990';
481
-$standardaccounts[$i]['use_key']            = '1';
481
+$standardaccounts[$i]['use_key'] = '1';
482 482
 
483 483
 $i++;
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/VatPeriod.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@
 block discarded – undo
277 277
         $var['amount'] = abs(round($this->get('saldo_vat_in')));
278 278
 
279 279
         if (!$voucher->saveInDaybook($var, $skip_daybook)) {
280
-             $this->error->set('Systemet kunne ikke opdatere indgående moms');
280
+                $this->error->set('Systemet kunne ikke opdatere indgående moms');
281 281
         }
282 282
 
283 283
         if ($this->error->isError()) {
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     public function __construct($year_object, $id = 0)
18 18
     {
19 19
         $this->year  = $year_object;
20
-        $this->id    = (int) $id;
20
+        $this->id    = (int)$id;
21 21
         $this->error = new Intraface_Error;
22 22
         if ($this->id > 0) {
23 23
             $this->load();
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     private function load()
28 28
     {
29 29
         $db = new DB_Sql;
30
-        $db->query("SELECT *, DATE_FORMAT(date_start, '%d-%m-%Y') AS date_start_dk, DATE_FORMAT(date_end, '%d-%m-%Y') AS date_end_dk FROM accounting_vat_period WHERE id = " . $this->id . " AND intranet_id = " . $this->year->kernel->intranet->get('id'));
30
+        $db->query("SELECT *, DATE_FORMAT(date_start, '%d-%m-%Y') AS date_start_dk, DATE_FORMAT(date_end, '%d-%m-%Y') AS date_end_dk FROM accounting_vat_period WHERE id = ".$this->id." AND intranet_id = ".$this->year->kernel->intranet->get('id'));
31 31
 
32 32
         if (!$db->nextRecord()) {
33 33
             return false;
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     public function isStated()
52 52
     {
53 53
         $db = new DB_Sql;
54
-        $db->query("SELECT status FROM accounting_vat_period WHERE status = 2 AND id = " . $this->id . " AND intranet_id=" . $this->year->kernel->intranet->get('id'). " AND active = 1");
54
+        $db->query("SELECT status FROM accounting_vat_period WHERE status = 2 AND id = ".$this->id." AND intranet_id=".$this->year->kernel->intranet->get('id')." AND active = 1");
55 55
         if ($db->nextRecord()) {
56 56
             return $db->numRows();
57 57
         }
@@ -84,15 +84,15 @@  discard block
 block discarded – undo
84 84
             return 0;
85 85
         }
86 86
         $db = new DB_Sql;
87
-        if ($this->id == 0 or $type=='insert') {
87
+        if ($this->id == 0 or $type == 'insert') {
88 88
             $sql_type = "INSERT INTO ";
89 89
             $sql_end  = ", date_created = NOW()";
90 90
         } else {
91 91
             $sql_type = "UPDATE ";
92
-            $sql_end  = " WHERE id = " . $this->id;
92
+            $sql_end  = " WHERE id = ".$this->id;
93 93
         }
94 94
 
95
-        $sql = $sql_type . "accounting_vat_period SET user_id = ".$this->year->kernel->user->get('id').", label = '".$input['label']."', date_start = '".$input['date_start']."', date_end='".$input['date_end']."', date_updated=NOW(), intranet_id=".$this->year->kernel->intranet->get('id').", year_id=".$this->year->get('id')."" . $sql_end;
95
+        $sql = $sql_type."accounting_vat_period SET user_id = ".$this->year->kernel->user->get('id').", label = '".$input['label']."', date_start = '".$input['date_start']."', date_end='".$input['date_end']."', date_updated=NOW(), intranet_id=".$this->year->kernel->intranet->get('id').", year_id=".$this->year->get('id')."".$sql_end;
96 96
 
97 97
         $db->query($sql);
98 98
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     protected function setStated($voucher_id)
113 113
     {
114 114
         $db = new DB_Sql;
115
-        $db->query("UPDATE accounting_vat_period SET voucher_id = '".(int)$voucher_id."', status = 2 WHERE id = ".$this->id." AND intranet_id = " . $this->year->kernel->intranet->get('id') . " AND year_id=". $this->year->get('id'));
115
+        $db->query("UPDATE accounting_vat_period SET voucher_id = '".(int)$voucher_id."', status = 2 WHERE id = ".$this->id." AND intranet_id = ".$this->year->kernel->intranet->get('id')." AND year_id=".$this->year->get('id'));
116 116
         return true;
117 117
     }
118 118
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
             $this->error->set('Du kan ikke slette en periode, der er bogf�rt');
127 127
             return false;
128 128
         }
129
-        $db->query("UPDATE accounting_vat_period SET active = 0, date_updated = NOW() WHERE id = " . $this->id . " AND intranet_id = " . $this->year->kernel->intranet->get('id'));
129
+        $db->query("UPDATE accounting_vat_period SET active = 0, date_updated = NOW() WHERE id = ".$this->id." AND intranet_id = ".$this->year->kernel->intranet->get('id'));
130 130
         return true;
131 131
     }
132 132
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 
148 148
         // ganges med -1 for at få rigtigt fortegn til udregning
149 149
         $this->value['saldo_vat_out'] = $account_vat_in->get('saldo');
150
-        $saldo_total += -1 * $this->value['saldo_vat_out']; // total
150
+        $saldo_total += -1*$this->value['saldo_vat_out']; // total
151 151
 
152 152
         // Moms af varekøb i udlandet
153 153
         // Dette beløb er et udregnet beløb, som udregnes under bogføringen
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
         // ganges med -1 for at få rigtigt fortegn til udregning
159 159
         $this->value['saldo_vat_abroad'] = $account_vat_abroad->get('saldo');
160
-        $saldo_total += -1 * $this->value['saldo_vat_abroad'];
160
+        $saldo_total += -1*$this->value['saldo_vat_abroad'];
161 161
 
162 162
         // Købsmoms
163 163
         // Købsmomsen inkluderer også den udregnede moms af moms af varekøb i udlandet.
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 
289 289
         $voucher_file = new VoucherFile($voucher);
290 290
         if (!$voucher_file->save(array(
291
-            'description' => 'Momsafregning ' . $this->get('date_start_dk') . ' til ' . $this->get('date_end_dk'),
291
+            'description' => 'Momsafregning '.$this->get('date_start_dk').' til '.$this->get('date_end_dk'),
292 292
             'belong_to' => 'vat',
293 293
             'belong_to_id' => $this->getId()))) {
294 294
             $this->error->merge($voucher_file->error->getMessage());
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/include_frontpage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 if (count($year->getList()) == 0) :
16 16
     $_advice[] = array(
17 17
         'msg' => 'no accounting year has been created',
18
-        'link' => $year_module->getPath() . 'year?create',
18
+        'link' => $year_module->getPath().'year?create',
19 19
         'module' => $year_module->getName()
20 20
     );
21 21
 endif;
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/VoucherFile.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
             throw new Exception('VoucherFile:: Voucher ikke gyldig');
24 24
         }
25 25
         $this->voucher = $voucher;
26
-        $this->id      = (int) $id;
26
+        $this->id      = (int)$id;
27 27
         $this->error   = new Intraface_Error;
28 28
     }
29 29
 
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
 
50 50
         $db = new DB_Sql();
51 51
         $sql = "SELECT id FROM accounting_voucher_file
52
-            WHERE intranet_id = " . $this->voucher->year->kernel->intranet->get('id') . "
52
+            WHERE intranet_id = " . $this->voucher->year->kernel->intranet->get('id')."
53 53
                 AND belong_to_key = ".array_search($var['belong_to'], $this->what_can_i_belong_to)."
54 54
                 AND belong_to_id = ".$var['belong_to_id']."
55
-                AND voucher_id = ".$this->voucher->getId() . " AND active = 1";
55
+                AND voucher_id = ".$this->voucher->getId()." AND active = 1";
56 56
         $db->query($sql);
57 57
         if ($db->nextRecord()) {
58 58
             // hvis filen allerede er tilknyttet lader vi som om alt gik godt, og vi siger go
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
         if ($this->id > 0) {
64 64
             $sql_type = "UPDATE ";
65
-            $sql_end = " WHERE id = " . $this->id;
65
+            $sql_end = " WHERE id = ".$this->id;
66 66
         } else {
67 67
             $sql_type = "INSERT INTO ";
68 68
             $sql_end = " , date_created = NOW()";
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             $var['description'] = '';
73 73
         }
74 74
 
75
-        $sql = $sql_type . " accounting_voucher_file SET
75
+        $sql = $sql_type." accounting_voucher_file SET
76 76
             date_updated = NOW(),
77 77
             intranet_id = ".$this->voucher->year->kernel->intranet->get('id').",
78 78
             voucher_id = ".$this->voucher->get('id').",
@@ -90,14 +90,14 @@  discard block
 block discarded – undo
90 90
     function delete()
91 91
     {
92 92
         $db = new DB_Sql;
93
-        $db->query("UPDATE accounting_voucher_file SET active = 0 WHERE id = " . $this->id);
93
+        $db->query("UPDATE accounting_voucher_file SET active = 0 WHERE id = ".$this->id);
94 94
         return 1;
95 95
     }
96 96
 
97 97
     function undelete()
98 98
     {
99 99
         $db = new DB_Sql;
100
-        $db->query("UPDATE accounting_voucher_file SET active = 1 WHERE id = " . $this->id);
100
+        $db->query("UPDATE accounting_voucher_file SET active = 1 WHERE id = ".$this->id);
101 101
         return 1;
102 102
     }
103 103
 
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/Controller/templates/vat/period.tpl.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,9 +28,12 @@
 block discarded – undo
28 28
             <input type="submit" value="Opret perioder" name="create_periods" />
29 29
         </fieldset>
30 30
     </form>
31
-<?php else : ?>
31
+<?php else {
32
+    : ?>
32 33
     <table>
33
-    <caption>Momsperioder i perioden <?php e($context->getYear()->get('from_date_dk')); ?> til <?php e($context->getYear()->get('to_date_dk')); ?></caption>
34
+    <caption>Momsperioder i perioden <?php e($context->getYear()->get('from_date_dk'));
35
+}
36
+?> til <?php e($context->getYear()->get('to_date_dk')); ?></caption>
34 37
     <thead>
35 38
         <tr>
36 39
             <th>Periode</th>
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/Controller/templates/vat/show.tpl.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     <?php echo $context->getError()->view(); ?>
12 12
 
13 13
     <?php if ($context->getVatPeriod()->get('status') == 'stated') : ?>
14
-        <p class="message">Denne momsopgivelse er bogført. <a href="<?php e(url('../../voucher/' . $context->getVatPeriod()->get('voucher_id'))); ?>">Se bilag</a></p>
14
+        <p class="message">Denne momsopgivelse er bogført. <a href="<?php e(url('../../voucher/'.$context->getVatPeriod()->get('voucher_id'))); ?>">Se bilag</a></p>
15 15
     <?php endif; ?>
16 16
 
17 17
     <?php if (!$context->getVatPeriod()->compareAmounts() and $context->getVatPeriod()->get('status_key') > 0) : // beløb skal vøre gemt ?>
@@ -45,22 +45,22 @@  discard block
 block discarded – undo
45 45
     </thead>
46 46
     <tbody>
47 47
         <tr class="vat-sale">
48
-            <td><a href="<?php e(url('../../account/' . $account_vat_out->get('id'))); ?>"><?php e($account_vat_out->get('number')); ?></a></td>
48
+            <td><a href="<?php e(url('../../account/'.$account_vat_out->get('id'))); ?>"><?php e($account_vat_out->get('number')); ?></a></td>
49 49
             <td><?php e($account_vat_out->get('name')); ?></td>
50 50
             <td></td>
51
-            <td class="amount debet"><?php e(amountToOutput($account_vat_out->get('saldo') * -1)); ?></td>
51
+            <td class="amount debet"><?php e(amountToOutput($account_vat_out->get('saldo')*-1)); ?></td>
52 52
         </tr>
53 53
         <tr class="vat-sale">
54
-            <td><a href="<?php e(url('../../account/' . $account_vat_abroad->get('id'))); ?>"><?php e($account_vat_abroad->get('number')); ?></a></td>
54
+            <td><a href="<?php e(url('../../account/'.$account_vat_abroad->get('id'))); ?>"><?php e($account_vat_abroad->get('number')); ?></a></td>
55 55
             <td><?php e($account_vat_abroad->get('name')); ?></td>
56 56
             <td></td>
57
-            <td class="amount debet"><?php e(amountToOutput($account_vat_abroad->get('saldo') * -1)); ?></td>
57
+            <td class="amount debet"><?php e(amountToOutput($account_vat_abroad->get('saldo')*-1)); ?></td>
58 58
         </tr>
59 59
         <tr class="headline">
60 60
             <td colspan="6"><h3>Fradrag</h3></td>
61 61
         </tr>
62 62
         <tr class="vat-buy">
63
-            <td><a href="<?php e(url('../../account/' . $account_vat_in->get('id'))); ?>"><?php e($account_vat_in->get('number')); ?></a></td>
63
+            <td><a href="<?php e(url('../../account/'.$account_vat_in->get('id'))); ?>"><?php e($account_vat_in->get('number')); ?></a></td>
64 64
             <td><?php e($account_vat_in->get('name')); ?></td>
65 65
             <td class="amount debet"><?php e(amountToOutput($account_vat_in->get('saldo'))); ?></td>
66 66
             <td></td>
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,9 +6,12 @@  discard block
 block discarded – undo
6 6
 
7 7
 <?php if (!$context->getYear()->vatAccountIsSet()) : ?>
8 8
     <p class="message-dependent">Der er ikke angivet nogen momskonti. Du kan angive momskonti under <a href="<?php e(url('../../settings')); ?>">indstillingerne</a>.</p>
9
-<?php else : ?>
9
+<?php else {
10
+    : ?>
10 11
 
11
-    <?php echo $context->getError()->view(); ?>
12
+    <?php echo $context->getError()->view();
13
+}
14
+?>
12 15
 
13 16
     <?php if ($context->getVatPeriod()->get('status') == 'stated') : ?>
14 17
         <p class="message">Denne momsopgivelse er bogført. <a href="<?php e(url('../../voucher/' . $context->getVatPeriod()->get('voucher_id'))); ?>">Se bilag</a></p>
@@ -108,9 +111,12 @@  discard block
 block discarded – undo
108 111
                 <?php if ($context->getVatPeriod()->get('status') == 'stated') : ?>
109 112
                     <label for="voucher_number">Bilagsnummer</label> <input type="text" name="voucher_number" id="voucher_number" value="<?php e($context->getVatPeriod()->get('voucher_number')); ?>" /> Perioden er tidligere bogført på dette bilag
110 113
                 </div>
111
-                <?php else : ?>
114
+                <?php else {
115
+    : ?>
112 116
                 <div class="formrow">
113
-                    <label for="voucher_number">Bilagsnummer</label> <input type="text" name="voucher_number" id="voucher_number" value="<?php e($context->getVoucher()->getMaxNumber() + 1); ?>" />
117
+                    <label for="voucher_number">Bilagsnummer</label> <input type="text" name="voucher_number" id="voucher_number" value="<?php e($context->getVoucher()->getMaxNumber() + 1);
118
+}
119
+?>" />
114 120
                 </div>
115 121
                 <?php endif; ?>
116 122
                 <div style="clear:both;">
Please login to merge, or discard this patch.