- start_table("$table_style width=80%");
- $th = array(_("Account Code"), _("Account Description"),
- _("Amount"), _("Memo"));
+ start_table(TABLESTYLE, "width=80%");
+ $dim = get_company_pref('use_dimension');
+ if ($dim == 2)
+ $th = array(_("Account Code"), _("Account Description"), _("Dimension")." 1", _("Dimension")." 2",
+ _("Amount"), _("Memo"));
+ else if ($dim == 1)
+ $th = array(_("Account Code"), _("Account Description"), _("Dimension"),
+ _("Amount"), _("Memo"));
+ else
+ $th = array(_("Account Code"), _("Account Description"),
+ _("Amount"), _("Memo"));