Skip to content

Commit

Permalink
Merge pull request #97 from ggoffy/master
Browse files Browse the repository at this point in the history
fixed bug in numbering transactions
  • Loading branch information
ggoffy authored Mar 11, 2023
2 parents 0daec7a + c01d07a commit b2f54aa
Show file tree
Hide file tree
Showing 22 changed files with 49 additions and 14,876 deletions.
2 changes: 1 addition & 1 deletion class/TransactionsHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public static function getFormFilter($filterFrom, $filterTo, $allId, $asId, $acc
}
$form->addElement($traCliidSelect);
}
if ($permApprove) {
if ($permApprove && 'list' === $op) {
//linebreak
$form->addElement(new \XoopsFormHidden('linebreak', ''));
// Form Select Status traStatus
Expand Down
5 changes: 5 additions & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
==============================================================
1.3.1 Stable [2023/03/11]
==============================================================
- fixed bug in numbering transactions (goffy)

==============================================================
1.3.0 Stable [2023/02/28]
==============================================================
Expand Down
2 changes: 1 addition & 1 deletion navbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
$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' => []];
$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' => []];
$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' => []];
if ($permissionsHandler->getPermGlobalApprove()) {
if ($permissionsHandler->getPermTransactionsApprove()) {
$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' => []];
}
$nav_items1[] = ['href' => '#', 'icon' => '<i class="fa fa-files-o fa-fw fa-lg"></i>', 'label' => \_MA_WGSIMPLEACC_TRANSACTIONS, 'sub_items2' => $nav_items2];
Expand Down
5 changes: 4 additions & 1 deletion templates/admin/wgsimpleacc_admin_trahistories.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@
<td class='center'><{$transaction.amountout}></td>
<td class='center'><{$transaction.taxid}></td>
<td class='center'><{$transaction.asset}></td>
<td class='center'><img src="<{$modPathIcon16}>status<{$transaction.status}>.png" alt="<{$transaction.status_text}>" title="<{$transaction.status_text}>"></td>
<td class='center'>
<img src="<{$modPathIcon16}>status<{$transaction.status}>.png" alt="<{$transaction.status_text}>" title="<{$transaction.status_text}>">
(<{$transaction.status}> <{$transaction.status_text}>)
</td>
<td class='center'><{$transaction.comments}></td>
<td class='center'><{$transaction.class_text}></td>
<td class='center'><{$transaction.balid}></td>
Expand Down
5 changes: 4 additions & 1 deletion templates/admin/wgsimpleacc_admin_transactions.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
<td class='center'><{$transaction.taxid}></td>
<td class='center'><{$transaction.asset}></td>
<td class='center'><{$transaction.client}></td>
<td class='center'><img src="<{$modPathIcon16}>status<{$transaction.status}>.png" alt="<{$transaction.status_text}>" title="<{$transaction.status_text}>"></td>
<td class='center'>
<img src="<{$modPathIcon16}>status<{$transaction.status}>.png" alt="<{$transaction.status_text}>" title="<{$transaction.status_text}>">
(<{$transaction.status}> <{$transaction.status_text}>)
</td>
<td class='center'><{$transaction.comments}></td>
<td class='center'><{$transaction.class_text}></td>
<td class='center'><{$transaction.balid}></td>
Expand Down
105 changes: 0 additions & 105 deletions testdata/german/group_permission.yml

This file was deleted.

2 changes: 0 additions & 2 deletions testdata/german/index.php

This file was deleted.

140 changes: 0 additions & 140 deletions testdata/german/wgsimpleacc_accounts.yml

This file was deleted.

Loading

0 comments on commit b2f54aa

Please sign in to comment.