X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_payments.php;h=c93db3a1a704ae1a20da8336d48ef718764194e0;hb=e8623dd6746abb8eec4eb3ddd583d208e531b8e7;hp=de86600d802e644e54bbb13bc11ff25f732437bb;hpb=6183e9450dcd7e4c747889c10903f6ff1b0add33;p=fa-stable.git
diff --git a/sales/customer_payments.php b/sales/customer_payments.php
index de86600d..c93db3a1 100644
--- a/sales/customer_payments.php
+++ b/sales/customer_payments.php
@@ -99,7 +99,10 @@ if (isset($_POST['AddPaymentItem'])) {
unset($_POST['AddPaymentItem']);
}
}
-
+if (isset($_POST['_customer_id_button'])) {
+// unset($_POST['branch_id']);
+ $Ajax->activate('branch_id');
+}
//----------------------------------------------------------------------------------------------
if (isset($_POST['AddPaymentItem'])) {
@@ -148,7 +151,6 @@ function display_item_form()
}
}
customer_list_row(_("From Customer:"), 'customer_id', null, false, true);
-
if (db_customer_has_branches($_POST['customer_id'])) {
customer_branches_list_row(_("Branch:"), $_POST['customer_id'], 'BranchID', null, false, true, true);
} else {
@@ -202,7 +204,7 @@ function display_item_form()
echo"
";
- submit_center('AddPaymentItem', _("Add Payment"));
+ submit_center('AddPaymentItem', _("Add Payment"), true, '', true);
}
echo "
";