-start_row("class='inquirybg' style='font-weight:bold'");
-label_cell(_("Total"), "colspan=2");
-if ($dim >= 1)
- label_cell('');
-if ($dim > 1)
+if ($heading_shown)
+{
+ start_row("class='inquirybg' style='font-weight:bold'");
+ label_cell(_("Total"), "colspan=2");
+ if ($dim >= 1)
+ label_cell('');
+ if ($dim > 1)
+ label_cell('');
+ amount_cell($debit);
+ amount_cell(-$credit);