Skip to content

Commit

Permalink
Merge pull request #18 from ggoffy/master
Browse files Browse the repository at this point in the history
 - added class to transaction templates
  • Loading branch information
ggoffy authored Jan 26, 2021
2 parents dd5d089 + da87d8b commit c500a89
Show file tree
Hide file tree
Showing 19 changed files with 147 additions and 59 deletions.
20 changes: 14 additions & 6 deletions admin/transactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,22 @@
$transactionDateObj = \DateTime::createFromFormat(_SHORTDATESTRING, Request::getString('tra_date'));
$transactionsObj->setVar('tra_date', $transactionDateObj->getTimestamp());
$transactionsObj->setVar('tra_curid', Request::getInt('tra_curid', 0));
$traAmountin = Utility::StringToFloat(Request::getString('tra_amountin'));
$transactionsObj->setVar('tra_amountin', $traAmountin);
$traAmountout = Utility::StringToFloat(Request::getString('tra_amountout'));
$transactionsObj->setVar('tra_amountout', $traAmountout);
$traClass = Request::getInt('tra_class', 0);
$traAmount = Utility::StringToFloat(Request::getString('tra_amount'));
if (Constants::CLASS_INCOME == $traClass) {
$transactionsObj->setVar('tra_amountin', $traAmount);
$transactionsObj->setVar('tra_amountout', 0);
} elseif (Constants::CLASS_EXPENSES == $traClass) {
$transactionsObj->setVar('tra_amountout', $traAmount);
$transactionsObj->setVar('tra_amountin', 0);
} else {
$transactionsObj->setVar('tra_amountin', 0);
$transactionsObj->setVar('tra_amountout', 0);
}
$transactionsObj->setVar('tra_taxid', Request::getInt('tra_taxid', 0));
$transactionsObj->setVar('tra_status', Request::getInt('tra_status', 0));
$transactionsObj->setVar('tra_comments', Request::getInt('tra_comments', 0));
$transactionsObj->setVar('tra_class', Request::getInt('tra_class', 0));
$transactionsObj->setVar('tra_class', $traClass);
$transactionsObj->setVar('tra_asid', Request::getString('tra_asid', ''));
$transactionsObj->setVar('tra_balid', Request::getString('tra_balid', ''));
$transactionsObj->setVar('tra_hist', $traHist);
Expand All @@ -133,7 +141,7 @@
$GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
// Get Form
$transactionsObj = $transactionsHandler->get($traId);
$form = $transactionsObj->getFormTransactions(false, true, Constants::CLASS_BOTH, $start, $limit);
$form = $transactionsObj->getFormTransactions(false, true, 0, $start, $limit);
$GLOBALS['xoopsTpl']->assign('form', $form->render());
break;
case 'delete':
Expand Down
1 change: 1 addition & 0 deletions admin/tratemplates.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
$tratemplatesObj->setVar('ttpl_accid', Request::getInt('ttpl_accid', 0));
$tratemplatesObj->setVar('ttpl_allid', Request::getInt('ttpl_allid', 0));
$tratemplatesObj->setVar('ttpl_asid', Request::getInt('ttpl_asid', 0));
$tratemplatesObj->setVar('ttpl_class', Request::getInt('ttpl_class', 0));
$ttplAmountin = Request::getString('ttpl_amountin');
$tratemplatesObj->setVar('ttpl_amountin', Utility::StringToFloat($ttplAmountin));
$ttplAmountout = Request::getString('ttpl_amountout');
Expand Down
2 changes: 1 addition & 1 deletion class/PermissionsHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function getPermTransactionsEdit($traSubmitter, $traStatus)
{
global $xoopsUser, $xoopsModule;

if ($this->getPermGlobalSubmit()) {
if ($this->getPermGlobalApprove()) {
return true;
}
if (Constants::STATUS_LOCKED == $traStatus) {
Expand Down
47 changes: 19 additions & 28 deletions class/Transactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ public function getFormTransactions($action = false, $admin = false, $type = 0,
$form->addElement(new \XoopsFormHidden('ttpl_amountout[0]', '0'));
$crTratemplates = new \CriteriaCompo();
$crTratemplates->add(new \Criteria('ttpl_online', 1));
$crTratemplates->add(new \Criteria('ttpl_class', Constants::CLASS_BOTH));
$crTratemplates->add(new \Criteria('ttpl_class', $traClass), 'OR');
$tratemplatesAll = $helper->getHandler('Tratemplates')->getAll($crTratemplates);
foreach ($tratemplatesAll as $tratemplate) {
$tplId = $tratemplate->getVar('ttpl_id');
Expand All @@ -140,7 +142,7 @@ public function getFormTransactions($action = false, $admin = false, $type = 0,
}
$tratemplatesSelect = new \XoopsFormRadio(\_MA_WGSIMPLEACC_TRANSACTION_TEMPLATE, 'tra_template', 0);
$tratemplatesSelect->addOption(0, \_MA_WGSIMPLEACC_TEMPLATE_NONE);
$tratemplatesSelect->addOptionArray($tratemplatesHandler->getList());
$tratemplatesSelect->addOptionArray($tratemplatesHandler->getList($crTratemplates));
$tratemplatesSelect->setExtra(" onchange='presetTraField()' ");
$form->addElement($tratemplatesSelect, true);
}
Expand Down Expand Up @@ -177,11 +179,6 @@ public function getFormTransactions($action = false, $admin = false, $type = 0,
$form->addElement($traDesc);
// Form Editor DhtmlTextArea traRemarks
$editorConfigs = [];
if ($isAdmin) {
$editor = $helper->getConfig('editor_admin');
} else {
$editor = $helper->getConfig('editor_user');
}
$editorConfigs['name'] = 'tra_remarks';
$editorConfigs['value'] = $this->getVar('tra_remarks', 'e');
$editorConfigs['rows'] = 5;
Expand Down Expand Up @@ -222,19 +219,20 @@ public function getFormTransactions($action = false, $admin = false, $type = 0,
$traAmountin = $this->isNew() ? $default0 : Utility::FloatToString($this->getVar('tra_amountin'));
// Form Text traAmountout
$traAmountout = $this->isNew() ? $default0 : Utility::FloatToString($this->getVar('tra_amountout'));
if ($admin) {
$form->addElement(new \XoopsFormText(\_MA_WGSIMPLEACC_TRANSACTION_AMOUNTIN, 'tra_amountin', 20, 150, $traAmountin));
$form->addElement(new \XoopsFormText(\_MA_WGSIMPLEACC_TRANSACTION_AMOUNTOUT, 'tra_amountout', 20, 150, $traAmountout));
} else {
if (Constants::CLASS_INCOME == $type || Constants::CLASS_INCOME == $traClass || Constants::CLASS_BOTH == $type) {
$form->addElement(new \XoopsFormText(\_MA_WGSIMPLEACC_TRANSACTION_AMOUNTIN, 'tra_amountin', 20, 150, $traAmountin));
$form->addElement(new \XoopsFormHidden('tra_amountout', 0));
}
if (Constants::CLASS_EXPENSES == $type || Constants::CLASS_EXPENSES == $traClass || Constants::CLASS_BOTH == $type) {
$form->addElement(new \XoopsFormText(\_MA_WGSIMPLEACC_TRANSACTION_AMOUNTOUT, 'tra_amountout', 20, 150, $traAmountout));
$form->addElement(new \XoopsFormHidden('tra_amountin', 0));
}
// Form Select traClass
$traClassSelect = new \XoopsFormRadio(\_MA_WGSIMPLEACC_TRANSACTION_CLASS, 'tra_class', $traClass);
$traClassSelect->addOption(Constants::CLASS_EXPENSES, \_MA_WGSIMPLEACC_CLASS_EXPENSES);
$traClassSelect->addOption(Constants::CLASS_INCOME, \_MA_WGSIMPLEACC_CLASS_INCOME);
$form->addElement($traClassSelect);
// Form Text traAmount
$traAmount = 0;
if (Constants::CLASS_INCOME == $type || Constants::CLASS_INCOME == $traClass || Constants::CLASS_BOTH == $type) {
$traAmount = $traAmountin;
}
if (Constants::CLASS_EXPENSES == $type || Constants::CLASS_EXPENSES == $traClass || Constants::CLASS_BOTH == $type) {
$traAmount = $traAmountout;
}
$form->addElement(new \XoopsFormText(\_MA_WGSIMPLEACC_TRANSACTION_AMOUNT, 'tra_amount', 20, 150, $traAmount));
if ($helper->getConfig('use_taxes')) {
// Form Table taxes
$taxesHandler = $helper->getHandler('Taxes');
Expand All @@ -249,8 +247,6 @@ public function getFormTransactions($action = false, $admin = false, $type = 0,
$traAsidSelect = new \XoopsFormSelect(\_MA_WGSIMPLEACC_TRANSACTION_ASID, 'tra_asid', $traAsid);
$traAsidSelect->addOptionArray($assetsHandler->getList());
$form->addElement($traAsidSelect);
// Form Text traClass
$traClass = $this->isNew() ? 0 : $this->getVar('tra_class');
// Form Text traComments
$traComments = $this->isNew() ? 0 : $this->getVar('tra_comments');
// Form Text traBalid
Expand All @@ -272,13 +268,7 @@ public function getFormTransactions($action = false, $admin = false, $type = 0,
$traStatusSelect->addOption(Constants::STATUS_APPROVED, \_MA_WGSIMPLEACC_STATUS_APPROVED);
$traStatusSelect->addOption(Constants::STATUS_LOCKED, \_MA_WGSIMPLEACC_STATUS_LOCKED);
$form->addElement($traStatusSelect);
// Form Select traClass
$traClassSelect = new \XoopsFormSelect(\_MA_WGSIMPLEACC_TRANSACTION_CLASS, 'tra_class', $traClass);
$traClassSelect->addOption(Constants::CLASS_BOTH, \_MA_WGSIMPLEACC_CLASS_BOTH);
$traClassSelect->addOption(Constants::CLASS_EXPENSES, \_MA_WGSIMPLEACC_CLASS_EXPENSES);
$traClassSelect->addOption(Constants::CLASS_INCOME, \_MA_WGSIMPLEACC_CLASS_INCOME);
$form->addElement($traClassSelect);
// Form Select traClass
// Form Select traBalid
$traBalidSelect = new \XoopsFormSelect(\_MA_WGSIMPLEACC_TRANSACTION_BALID, 'tra_balid', $traBalid);
$balancesHandler = $helper->getHandler('Balances');
$traBalidSelect->addOption(0, '');
Expand All @@ -300,7 +290,6 @@ public function getFormTransactions($action = false, $admin = false, $type = 0,
$form->addElement(new \XoopsFormLabel(_MA_WGSIMPLEACC_TRANSACTION_STATUS, Utility::getStatusText($traStatus)));
}
$form->addElement(new \XoopsFormHidden('tra_status', $traStatusNew));
$form->addElement(new \XoopsFormHidden('tra_class', $traClass));
$form->addElement(new \XoopsFormHidden('tra_balid', $traBalid));
$form->addElement(new \XoopsFormHidden('tra_comments', $traComments));
$form->addElement(new \XoopsFormHidden('tra_hist', $traHist));
Expand All @@ -312,6 +301,8 @@ public function getFormTransactions($action = false, $admin = false, $type = 0,
$form->addElement(new \XoopsFormHidden('op', 'save'));
if ($approve) {
$form->addElement(new \XoopsFormButtonTray('', \_MA_WGSIMPLEACC_APPROVE, 'submit', '', false));
} elseif (Constants::STATUS_OFFLINE == $traStatus) {
$form->addElement(new \XoopsFormButtonTray('', \_MA_WGSIMPLEACC_REACTIVATE, 'submit', '', false));
} else {
$form->addElement(new \XoopsFormButtonTray('', \_SUBMIT, 'submit', '', false));
}
Expand Down
23 changes: 23 additions & 0 deletions class/Tratemplates.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function __construct()
$this->initVar('ttpl_accid', \XOBJ_DTYPE_INT);
$this->initVar('ttpl_allid', \XOBJ_DTYPE_INT);
$this->initVar('ttpl_asid', \XOBJ_DTYPE_INT);
$this->initVar('ttpl_class', \XOBJ_DTYPE_INT);
$this->initVar('ttpl_amountin', \XOBJ_DTYPE_DECIMAL);
$this->initVar('ttpl_amountout', \XOBJ_DTYPE_DECIMAL);
$this->initVar('ttpl_online', \XOBJ_DTYPE_INT);
Expand Down Expand Up @@ -118,6 +119,13 @@ public function getFormTratemplates($action = false)
$ttplAsidSelect = new \XoopsFormSelect(\_MA_WGSIMPLEACC_TRATEMPLATE_ASID, 'ttpl_asid', $this->getVar('ttpl_asid'));
$ttplAsidSelect->addOptionArray($assetsHandler->getList());
$form->addElement($ttplAsidSelect);
// Form Select ttplClass
$ttplClass = $this->isNew() ? Constants::CLASS_BOTH : $this->getVar('ttpl_class');
$traClassSelect = new \XoopsFormRadio(\_MA_WGSIMPLEACC_TRANSACTION_CLASS, 'ttpl_class', $ttplClass);
$traClassSelect->addOption(Constants::CLASS_BOTH, \_MA_WGSIMPLEACC_CLASS_BOTH);
$traClassSelect->addOption(Constants::CLASS_EXPENSES, \_MA_WGSIMPLEACC_CLASS_EXPENSES);
$traClassSelect->addOption(Constants::CLASS_INCOME, \_MA_WGSIMPLEACC_CLASS_INCOME);
$form->addElement($traClassSelect);
// Form Text tplAmountin
$default0 = '0' . $helper->getConfig('sep_comma') . '00';
$ttplAmountin = $this->isNew() ? $default0 : Utility::FloatToString($this->getVar('ttpl_amountin'));
Expand Down Expand Up @@ -162,6 +170,21 @@ public function getValuesTratemplates($keys = null, $format = null, $maxDepth =
$assetsHandler = $helper->getHandler('Assets');
$assetsObj = $assetsHandler->get($this->getVar('ttpl_asid'));
$ret['asid'] = $assetsObj->getVar('as_name');
$ttplClass = $this->getVar('ttpl_class');
$ret['class'] = $ttplClass;
switch ($ttplClass) {
case Constants::CLASS_BOTH:
default:
$class_text = \_MA_WGSIMPLEACC_CLASS_BOTH;
break;
case Constants::CLASS_EXPENSES:
$class_text = \_MA_WGSIMPLEACC_CLASS_EXPENSES;
break;
case Constants::CLASS_INCOME:
$class_text = \_MA_WGSIMPLEACC_CLASS_INCOME;
break;
}
$ret['class_text'] = $class_text;
$ret['amountin'] = Utility::FloatToString($this->getVar('ttpl_amountin'));
$ret['amountout'] = Utility::FloatToString($this->getVar('ttpl_amountout'));
$ret['online'] = (int)$this->getVar('ttpl_online') > 0 ? _YES : _NO;
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
- changes in status (goffy)
- cleaned missing smarty defaults (goffy)
- updated breadcrumbs (goffy)
- added class to transaction templates (goffy)
- fixed problems in permissions (goffy)

==============================================================
1.1 [2020/12/31 10:10]
Expand Down
12 changes: 12 additions & 0 deletions include/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,18 @@ function wgsimpleacc_check_db($module)
}
}

$table = $GLOBALS['xoopsDB']->prefix('wgsimpleacc_tratemplates');
$field = 'ttpl_class';
$check = $GLOBALS['xoopsDB']->queryF('SHOW COLUMNS FROM `' . $table . "` LIKE '" . $field . "'");
$numRows = $GLOBALS['xoopsDB']->getRowsNum($check);
if (!$numRows) {
$sql = "ALTER TABLE `$table` ADD `$field` INT(1) NOT NULL DEFAULT '0' AFTER `ttpl_asid`;";
if (!$result = $GLOBALS['xoopsDB']->queryF($sql)) {
xoops_error($GLOBALS['xoopsDB']->error() . '<br>' . $sql);
$module->setErrors("Error when adding '$field' to table '$table'.");
$ret = false;
}
}
return $ret;
}

Expand Down
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
if (!$permissionsHandler->getPermGlobalView()) {
$GLOBALS['xoopsTpl']->assign('error', _NOPERM);
require __DIR__ . '/footer.php';
exit;
}

$keywords = [];
Expand Down
2 changes: 2 additions & 0 deletions language/english/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
\define('_MA_WGSIMPLEACC_APPROVE', 'Approve');
\define('_MA_WGSIMPLEACC_DASHBOARD', 'Dashboard');
\define('_MA_WGSIMPLEACC_DOWNLOAD', 'Download');
\define('_MA_WGSIMPLEACC_REACTIVATE', 'Reactivate (add transaction to list of valid transactions again');
// ---------------- Contents ----------------
// There aren't
\define('_MA_WGSIMPLEACC_THEREARENT_ACCOUNTS', "There aren't accounts at the moment");
Expand Down Expand Up @@ -280,6 +281,7 @@
\define('_MA_WGSIMPLEACC_TRATEMPLATE_ACCID', 'Accounts');
\define('_MA_WGSIMPLEACC_TRATEMPLATE_ALLID', 'Allocations');
\define('_MA_WGSIMPLEACC_TRATEMPLATE_ASID', 'Assets');
\define('_MA_WGSIMPLEACC_TRATEMPLATE_CLASS', 'Class');
\define('_MA_WGSIMPLEACC_TRATEMPLATE_AMOUNTIN', 'Amount in');
\define('_MA_WGSIMPLEACC_TRATEMPLATE_AMOUNTOUT', 'Amount out');
\define('_MA_WGSIMPLEACC_TRATEMPLATE_ONLINE', 'Online');
Expand Down
2 changes: 2 additions & 0 deletions language/german/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
\define('_MA_WGSIMPLEACC_APPROVE', 'Freigeben');
\define('_MA_WGSIMPLEACC_DASHBOARD', 'Dashboard');
\define('_MA_WGSIMPLEACC_DOWNLOAD', 'Download');
\define('_MA_WGSIMPLEACC_REACTIVATE', 'Reaktivieren (Transaktion wieder zu gültigen Transaktionen hinzufügen');
// ---------------- Contents ----------------
// There aren't
\define('_MA_WGSIMPLEACC_THEREARENT_ACCOUNTS', 'Es gibt derzeit keine Konten in der Datenbank');
Expand Down Expand Up @@ -264,6 +265,7 @@
\define('_MA_WGSIMPLEACC_TRATEMPLATE_ACCID', 'Konto');
\define('_MA_WGSIMPLEACC_TRATEMPLATE_ALLID', 'Zuordnung');
\define('_MA_WGSIMPLEACC_TRATEMPLATE_ASID', 'Vermögenswert');
\define('_MA_WGSIMPLEACC_TRATEMPLATE_CLASS', 'Klasse');
\define('_MA_WGSIMPLEACC_TRATEMPLATE_AMOUNTIN', 'Betrag Eingang');
\define('_MA_WGSIMPLEACC_TRATEMPLATE_AMOUNTOUT', 'Betrag Ausgang');
\define('_MA_WGSIMPLEACC_TRATEMPLATE_ONLINE', 'Online');
Expand Down
7 changes: 7 additions & 0 deletions navbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,10 @@

//$GLOBALS['xoopsTpl']->assign('pathIcons32', WGSIMPLEACC_ICONS_URL . '/32/');
$GLOBALS['xoopsTpl']->assign('wgsimpleacc_icon_url_32', WGSIMPLEACC_ICONS_URL . '/32/');

$currentUser = '';
$uid = isset($GLOBALS['xoopsUser']) && \is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getVar('uid') : 0;
if ($uid > 0) {
$currentUser = $GLOBALS['xoopsUser']::getUnameFromId($uid);
}
$GLOBALS['xoopsTpl']->assign('currentUser', $currentUser);
2 changes: 2 additions & 0 deletions templates/admin/wgsimpleacc_admin_tratemplates.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<th class="center"><{$smarty.const._MA_WGSIMPLEACC_TRATEMPLATE_ACCID}></th>
<th class="center"><{$smarty.const._MA_WGSIMPLEACC_TRATEMPLATE_ALLID}></th>
<th class="center"><{$smarty.const._MA_WGSIMPLEACC_TRATEMPLATE_ASID}></th>
<th class="center"><{$smarty.const._MA_WGSIMPLEACC_TRATEMPLATE_CLASS}></th>
<th class="center"><{$smarty.const._MA_WGSIMPLEACC_TRATEMPLATE_AMOUNTIN}></th>
<th class="center"><{$smarty.const._MA_WGSIMPLEACC_TRATEMPLATE_AMOUNTOUT}></th>
<th class="center"><{$smarty.const._MA_WGSIMPLEACC_TRATEMPLATE_ONLINE}></th>
Expand All @@ -29,6 +30,7 @@
<td class='center'><{$template.accid}></td>
<td class='center'><{$template.allid}></td>
<td class='center'><{$template.asid}></td>
<td class='center'><{$template.class_text}></td>
<td class='center'><{$template.amountin}></td>
<td class='center'><{$template.amountout}></td>
<td class='center'><{$template.online}></td>
Expand Down
2 changes: 1 addition & 1 deletion templates/wgsimpleacc_main_startmin.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<{if $xoops_isadmin|default:false}>
<a class="wgsa-startminheader-link" href="<{$xoops_url}>/admin.php"><span class="glyphicon glyphicon-wrench" alt="<{$smarty.const._MA_WGSIMPLEACC_MENUADMIN}>" title="<{$smarty.const._MA_WGSIMPLEACC_MENUADMIN}>"></span></a>
<{/if}>
<a class="wgsa-startminheader-link" href="<{$xoops_url}>/user.php"><span class="glyphicon glyphicon-user" alt="<{$smarty.const._MA_WGSIMPLEACC_MENUUSER}>" title="<{$smarty.const._MA_WGSIMPLEACC_MENUUSER}>"></span></a>
<a class="wgsa-startminheader-link" href="<{$xoops_url}>/user.php"><span class="glyphicon glyphicon-user" alt="<{$smarty.const._MA_WGSIMPLEACC_MENUUSER}>" title="<{$smarty.const._MA_WGSIMPLEACC_MENUUSER}>"> <{$currentUser}></span></a>
<a class="wgsa-startminheader-link" href="<{$xoops_url}>/notifications.php"><span class="glyphicon glyphicon-info-sign" alt="<{$smarty.const._MA_WGSIMPLEACC_MENUNOTIF}>" title="<{$smarty.const._MA_WGSIMPLEACC_MENUNOTIF}>"></span></a>
<{xoInboxCount assign="unreadCount"}> <a class="wgsa-startminheader-link <{if $unreadCount > 0}>wgsa-startminheader-link-important<{/if}>" href="<{$xoops_url}>/viewpmsg.php"><span class="glyphicon glyphicon-envelope" alt="<{$smarty.const._MA_WGSIMPLEACC_MENUINBOX}>" title="<{$smarty.const._MA_WGSIMPLEACC_MENUINBOX}>"></span> <{if $unreadCount > 0}><span class="badge wgsa-startminheader-bagde"><{$unreadCount}></span><{/if}></a>
<a class="wgsa-startminheader-link" href="<{$xoops_url}>/user.php?op=logout"><span class="glyphicon glyphicon-off" alt="<{$smarty.const._LOGOUT}>" title="<{$smarty.const._LOGOUT}>"></span></a>
Expand Down
5 changes: 4 additions & 1 deletion templates/wgsimpleacc_transactions_item.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<div class='table-responsive'>
<table class='table table-striped'>
<tbody>
Expand Down Expand Up @@ -30,6 +29,10 @@
<th><{$smarty.const._MA_WGSIMPLEACC_TRANSACTION_DATE}></th>
<td><{$transaction.date}></td>
</tr>
<tr>
<th><{$smarty.const._MA_WGSIMPLEACC_TRANSACTION_CLASS}></th>
<td><{$transaction.curid}> <{$transaction.class_text}></td>
</tr>
<tr>
<th><{$smarty.const._MA_WGSIMPLEACC_TRANSACTION_AMOUNT}></th>
<td><{$transaction.curid}> <{$transaction.amount}></td>
Expand Down
1 change: 1 addition & 0 deletions templates/wgsimpleacc_tratemplates.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<th><{$smarty.const._MA_WGSIMPLEACC_TRATEMPLATE_ACCID}></th>
<th><{$smarty.const._MA_WGSIMPLEACC_TRATEMPLATE_ALLID}></th>
<th><{$smarty.const._MA_WGSIMPLEACC_TRATEMPLATE_ASID}></th>
<th><{$smarty.const._MA_WGSIMPLEACC_TRATEMPLATE_CLASS}></th>
<th><{$smarty.const._MA_WGSIMPLEACC_TRATEMPLATE_AMOUNTIN}></th>
<th><{$smarty.const._MA_WGSIMPLEACC_TRATEMPLATE_AMOUNTOUT}></th>
<th><{$smarty.const._MA_WGSIMPLEACC_TRATEMPLATE_ONLINE}></th>
Expand Down
Loading

0 comments on commit c500a89

Please sign in to comment.