X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fview%2Faccrual_trans.php;h=72dda431ea540aac26c3fcc73a566a8c679a65b4;hb=b14f304532b7d124e79ee2a03d60a0850c8a417d;hp=525c1b2e1309b8033eca0553690d9b3620d28b84;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/gl/view/accrual_trans.php b/gl/view/accrual_trans.php index 525c1b2e..72dda431 100644 --- a/gl/view/accrual_trans.php +++ b/gl/view/accrual_trans.php @@ -52,7 +52,7 @@ $dim = get_company_pref('use_dimension'); $first_cols = array(_("Type"), "#", _("Date")); if ($dim == 2) $dim_cols = array(_("Dimension")." 1", _("Dimension")." 2"); -else if ($dim == 1) +elseif ($dim == 1) $dim_cols = array(_("Dimension")); else $dim_cols = array(); @@ -64,7 +64,7 @@ $th = array_merge($first_cols, $dim_cols, $remaining_cols); table_header($th); $end = $_GET['date']; $account = $_GET['act']; -$begin = add_days($end, -$_SESSION["wa_current_user"]->prefs->transaction_days()); +$begin = add_days($end, -user_transaction_days()); $result = get_gl_transactions($begin, $end, -1, $account, 0, 0, null); $j = 0;