include_once($path_to_root . "/reporting/includes/reporting.inc");
$js = "";
-if ($use_popup_windows) {
+if ($SysPrefs->use_popup_windows) {
$js .= get_js_open_window(900, 500);
}
-if ($use_date_picker) {
+if (user_use_date_picker()) {
$js .= get_js_date_picker();
}
add_js_file('payalloc.js');
if($inv) {
$_SESSION['alloc']->person_id = $_POST['customer_id'] = $inv['debtor_no'];
$_SESSION['alloc']->read();
+ $_POST['BranchID'] = $inv['branch_code'];
$_POST['DateBanked'] = sql2date($inv['tran_date']);
foreach($_SESSION['alloc']->allocs as $line => $trans) {
if ($trans->type == ST_SALESINVOICE && $trans->type_no == $_GET['SInvoice']) {
hidden('trans_no');
hidden('old_ref', $old_ref);
- start_outer_table(TABLESTYLE2, "width=60%", 5);
+ start_outer_table(TABLESTYLE2, "width='60%'", 5);
table_section(1);
show_allocatable(false);
div_end();
- start_table(TABLESTYLE, "width=60%");
+ start_table(TABLESTYLE, "width='60%'");
label_row(_("Customer prompt payment discount :"), $display_discount_percent);
end_form();
end_page();
-?>