Changed hardcoded trans days in inquiries (30) to be a user preference.
[fa-stable.git] / sales / view / view_receipt.php
index b2dd53ba14ce92e2c39c32ccbf191a70614cd945..f829fda5f0855d1fdf3573c22d7c12b602383bb7 100644 (file)
@@ -21,7 +21,7 @@ $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 600);
 
-page(_("View Customer Payment"), true, false, "", $js);
+page(_($help_context = "View Customer Payment"), true, false, "", $js);
 
 if (isset($_GET["trans_no"]))
 {
@@ -33,7 +33,7 @@ $receipt = get_customer_trans($trans_id, ST_CUSTPAYMENT);
 display_heading(sprintf(_("Customer Payment #%d"),$trans_id));
 
 echo "<br>";
-start_table("$table_style width=80%");
+start_table(TABLESTYLE, "width=80%");
 start_row();
 label_cells(_("From Customer"), $receipt['DebtorName'], "class='tableheader2'");
 label_cells(_("Into Bank Account"), $receipt['bank_account_name'], "class='tableheader2'");
@@ -60,5 +60,5 @@ if (!$voided)
        display_allocations_from(PT_CUSTOMER, $receipt['debtor_no'], ST_CUSTPAYMENT, $trans_id, $receipt['Total']);
 }
 
-end_page(true);
+end_page(true, false, false, ST_CUSTPAYMENT, $trans_id);
 ?>
\ No newline at end of file