Skip to content

Commit b2f54aa

Browse files
authored
Merge pull request #97 from ggoffy/master
fixed bug in numbering transactions
2 parents 0daec7a + c01d07a commit b2f54aa

22 files changed

+49
-14876
lines changed

class/TransactionsHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public static function getFormFilter($filterFrom, $filterTo, $allId, $asId, $acc
213213
}
214214
$form->addElement($traCliidSelect);
215215
}
216-
if ($permApprove) {
216+
if ($permApprove && 'list' === $op) {
217217
//linebreak
218218
$form->addElement(new \XoopsFormHidden('linebreak', ''));
219219
// Form Select Status traStatus

docs/changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
==============================================================
2+
1.3.1 Stable [2023/03/11]
3+
==============================================================
4+
- fixed bug in numbering transactions (goffy)
5+
16
==============================================================
27
1.3.0 Stable [2023/02/28]
38
==============================================================

navbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
$nav_items2[] = ['href' => 'transactions.php?op=list', 'icon' => '<i class="fa fa-list-ol fa-fw fa-lg"></i>','label' => \_MA_WGSIMPLEACC_TRANSACTIONS_LIST, 'sub_items3' => []];
8282
$nav_items2[] = ['href' => 'transactions.php?op=new&tra_type=3', 'icon' => '<i class="fa fa-plus-square fa-fw fa-lg"></i>', 'label' => \_MA_WGSIMPLEACC_TRANSACTION_SUBMIT_INCOME, 'sub_items3' => []];
8383
$nav_items2[] = ['href' => 'transactions.php?op=new&tra_type=2', 'icon' => '<i class="fa fa-plus-square fa-fw fa-lg"></i>', 'label' => \_MA_WGSIMPLEACC_TRANSACTION_SUBMIT_EXPENSE, 'sub_items3' => []];
84-
if ($permissionsHandler->getPermGlobalApprove()) {
84+
if ($permissionsHandler->getPermTransactionsApprove()) {
8585
$nav_items2[] = ['href' => 'transactions.php?op=listhist', 'icon' => '<i class="fa fa-trash fa-fw fa-lg"></i>', 'label' => \_MA_WGSIMPLEACC_TRAHISTORY_DELETED, 'sub_items3' => []];
8686
}
8787
$nav_items1[] = ['href' => '#', 'icon' => '<i class="fa fa-files-o fa-fw fa-lg"></i>', 'label' => \_MA_WGSIMPLEACC_TRANSACTIONS, 'sub_items2' => $nav_items2];

templates/admin/wgsimpleacc_admin_trahistories.tpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@
5454
<td class='center'><{$transaction.amountout}></td>
5555
<td class='center'><{$transaction.taxid}></td>
5656
<td class='center'><{$transaction.asset}></td>
57-
<td class='center'><img src="<{$modPathIcon16}>status<{$transaction.status}>.png" alt="<{$transaction.status_text}>" title="<{$transaction.status_text}>"></td>
57+
<td class='center'>
58+
<img src="<{$modPathIcon16}>status<{$transaction.status}>.png" alt="<{$transaction.status_text}>" title="<{$transaction.status_text}>">
59+
(<{$transaction.status}> <{$transaction.status_text}>)
60+
</td>
5861
<td class='center'><{$transaction.comments}></td>
5962
<td class='center'><{$transaction.class_text}></td>
6063
<td class='center'><{$transaction.balid}></td>

templates/admin/wgsimpleacc_admin_transactions.tpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@
4848
<td class='center'><{$transaction.taxid}></td>
4949
<td class='center'><{$transaction.asset}></td>
5050
<td class='center'><{$transaction.client}></td>
51-
<td class='center'><img src="<{$modPathIcon16}>status<{$transaction.status}>.png" alt="<{$transaction.status_text}>" title="<{$transaction.status_text}>"></td>
51+
<td class='center'>
52+
<img src="<{$modPathIcon16}>status<{$transaction.status}>.png" alt="<{$transaction.status_text}>" title="<{$transaction.status_text}>">
53+
(<{$transaction.status}> <{$transaction.status_text}>)
54+
</td>
5255
<td class='center'><{$transaction.comments}></td>
5356
<td class='center'><{$transaction.class_text}></td>
5457
<td class='center'><{$transaction.balid}></td>

testdata/german/group_permission.yml

Lines changed: 0 additions & 105 deletions
This file was deleted.

testdata/german/index.php

Lines changed: 0 additions & 2 deletions
This file was deleted.

testdata/german/wgsimpleacc_accounts.yml

Lines changed: 0 additions & 140 deletions
This file was deleted.

0 commit comments

Comments
 (0)