- start_table("$table_style width=95%");
- label_row(_("Sub-total:"), price_format( $supp_trans->ov_amount), "align=right", "align=right");
+ $dim = get_company_pref('use_dimension');
+ $colspan = ($dim == 2 ? 7 : ($dim == 1 ? 6 : 5));
+ div_start('tax_table');
+ start_table(TABLESTYLE, "width=95%");
+ label_row(_("Sub-total:"), price_format( $supp_trans->ov_amount), "colspan=$colspan align=right", "align=right");