@@ -14,8 +14,10 @@ discard block |
||
| 14 | 14 | <label for="number"><?php e(t('Product number')); ?></label> |
| 15 | 15 | <input type="text" name="number" id="number" value="<?php if (isset($product)) : |
| 16 | 16 | e($product->getDetails()->getNumber()); |
| 17 | -else : |
|
| 17 | +else { |
|
| 18 | + : |
|
| 18 | 19 | e($context->getGateway()->getMaxNumber() + 1); |
| 20 | +} |
|
| 19 | 21 | endif; ?>" /> |
| 20 | 22 | </div> |
| 21 | 23 | <div class="formrow"> |
@@ -94,9 +96,12 @@ discard block |
||
| 94 | 96 | <?php endforeach; ?> |
| 95 | 97 | </select> |
| 96 | 98 | </div> |
| 97 | - <?php else : ?> |
|
| 99 | + <?php else { |
|
| 100 | + : ?> |
|
| 98 | 101 | <div class="formrow"> |
| 99 | - <label for="has_variation"><?php e(t('Product has variations')); ?></label> |
|
| 102 | + <label for="has_variation"><?php e(t('Product has variations')); |
|
| 103 | +} |
|
| 104 | +?></label> |
|
| 100 | 105 | <input type="hidden" name="has_variation" value="<?php if (isset($product)) { |
| 101 | 106 | e($product->hasVariation()); |
| 102 | 107 | } ?>" /> |
@@ -160,10 +165,13 @@ discard block |
||
| 160 | 165 | |
| 161 | 166 | <?php if (count($accounts) == 0) : ?> |
| 162 | 167 | <p><?php e(t('You will need to create an accounting year and create accounts for that year, to be able to set the account for which this product will be stated.')); ?> <a href="<?php e($mainAccounting->getPath()); ?>"><?php e(t('Create accounting year and accounts')); ?></a></p> |
| 163 | - <?php else : ?> |
|
| 168 | + <?php else { |
|
| 169 | + : ?> |
|
| 164 | 170 | |
| 165 | 171 | <div class="formrow"> |
| 166 | - <label for="state_account"><?php e(t('State on account')); ?></label> |
|
| 172 | + <label for="state_account"><?php e(t('State on account')); |
|
| 173 | +} |
|
| 174 | +?></label> |
|
| 167 | 175 | <select id="state_account" name="state_account_id"> |
| 168 | 176 | <option value=""><?php e(t('Choose...')); ?></option> |
| 169 | 177 | <?php |
@@ -32,9 +32,12 @@ |
||
| 32 | 32 | |
| 33 | 33 | <?php if (count($context->getSubscribers()) == 0) : ?> |
| 34 | 34 | <p><?php e(t('No subscribers added yet.')); ?></p> |
| 35 | -<?php else : ?> |
|
| 35 | +<?php else { |
|
| 36 | + : ?> |
|
| 36 | 37 | |
| 37 | - <?php echo $context->getSubscriber()->getDBQuery()->display('character'); ?> |
|
| 38 | + <?php echo $context->getSubscriber()->getDBQuery()->display('character'); |
|
| 39 | +} |
|
| 40 | +?> |
|
| 38 | 41 | <table class="stripe"> |
| 39 | 42 | <caption><?php e(t('Letters')); ?></caption> |
| 40 | 43 | <thead> |
@@ -10,9 +10,12 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | <?php if (count($context->getLetters()) == 0) : ?> |
| 12 | 12 | <p><?php e(t('No letters has been created.')); ?></p> |
| 13 | -<?php else : ?> |
|
| 13 | +<?php else { |
|
| 14 | + : ?> |
|
| 14 | 15 | <table class="stripe"> |
| 15 | - <caption><?php e(t('Letters')); ?></caption> |
|
| 16 | + <caption><?php e(t('Letters')); |
|
| 17 | +} |
|
| 18 | +?></caption> |
|
| 16 | 19 | <thead> |
| 17 | 20 | <tr> |
| 18 | 21 | <th><?php e(t('Subject')); ?></th> |
@@ -30,8 +33,10 @@ discard block |
||
| 30 | 33 | <?php |
| 31 | 34 | if ($letter['status'] == 'sent') : |
| 32 | 35 | e($letter['sent_to_receivers']); |
| 33 | - else : |
|
| 36 | + else { |
|
| 37 | + : |
|
| 34 | 38 | e(t('Not sent')); |
| 39 | + } |
|
| 35 | 40 | endif; |
| 36 | 41 | ?> |
| 37 | 42 | </td> |
@@ -28,9 +28,12 @@ |
||
| 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> |
@@ -6,9 +6,12 @@ discard block |
||
| 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 |
||
| 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;"> |
@@ -11,10 +11,13 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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> |
@@ -112,9 +112,12 @@ |
||
| 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 | |
@@ -10,8 +10,11 @@ |
||
| 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> |
@@ -69,6 +69,9 @@ |
||
| 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 |