X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gl%2Fview%2Fgl_trans_view.php;h=4e61fef91349cf9967a12ef5815ccb6a07bacdfa;hb=76ca9fef9bb510236a6a7740fa0f60eb7db384c9;hp=70103026da85967d4ee3d66bc936a566ac9b4920;hpb=e735f0a06f8a43ed4885ff51a5c0b4332c130b40;p=fa-stable.git diff --git a/gl/view/gl_trans_view.php b/gl/view/gl_trans_view.php index 70103026..4e61fef9 100644 --- a/gl/view/gl_trans_view.php +++ b/gl/view/gl_trans_view.php @@ -100,20 +100,22 @@ while ($myrow = db_fetch($result)) else $credit += $myrow['amount']; } -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); label_cell(''); -amount_cell($debit); -amount_cell(-$credit); -label_cell(''); -end_row(); + end_row(); + end_table(1); +} //end of while loop -if ($heading_shown) - end_table(1); is_voided_display($_GET['type_id'], $_GET['trans_no'], _("This transaction has been voided."));