X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=sales%2Fview%2Fview_receipt.php;h=458e9071d9f460d93653c944c888e4dadda73cfd;hb=8f7ac519b7aaf8ec219862597e878d3a28316ac6;hp=cf0ae3f865a4b2fa596c1a544c3810b01a83268f;hpb=45e45a854c40a7a2f9cc8f11e07a259c6923babd;p=fa-stable.git diff --git a/sales/view/view_receipt.php b/sales/view/view_receipt.php index cf0ae3f8..458e9071 100644 --- a/sales/view/view_receipt.php +++ b/sales/view/view_receipt.php @@ -1,15 +1,28 @@ . +***********************************************************************/ $page_security = 1; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); -page(_("View Customer Payment"), true); - include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/sales/includes/sales_db.inc"); +$js = ""; +if ($use_popup_windows) + $js .= get_js_open_window(900, 600); + +page(_("View Customer Payment"), true, false, "", $js); + if (isset($_GET["trans_no"])) { $trans_id = $_GET["trans_no"]; @@ -28,7 +41,7 @@ label_cells(_("Date of Deposit"), sql2date($receipt['tran_date']), "class='table end_row(); start_row(); label_cells(_("Payment Currency"), $receipt['curr_code'], "class='tableheader2'"); -label_cells(_("Amount"), price_format($receipt['ov_amount']), "class='tableheader2'"); +label_cells(_("Amount"), price_format($receipt['Total'] - $receipt['ov_discount']), "class='tableheader2'"); label_cells(_("Discount"), price_format($receipt['ov_discount']), "class='tableheader2'"); end_row(); start_row();