projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New extensions system, a couple of other smaller fixes.
[fa-stable.git]
/
sales
/
manage
/
customer_branches.php
diff --git
a/sales/manage/customer_branches.php
b/sales/manage/customer_branches.php
index 91973cc6c1b7c9411818ccc3b4093f02c2a29d76..e80b9007afa0c5204d11e0394f581dac6fb80267 100644
(file)
--- a/
sales/manage/customer_branches.php
+++ b/
sales/manage/customer_branches.php
@@
-217,7
+217,6
@@
function branch_settings($selected_id) {
$_POST['br_ref'] = $myrow["debtor_ref"];
$_POST['contact_name'] = _('Main Branch');
$_POST['br_address'] = $_POST['br_post_address'] = $myrow["address"];
$_POST['br_ref'] = $myrow["debtor_ref"];
$_POST['contact_name'] = _('Main Branch');
$_POST['br_address'] = $_POST['br_post_address'] = $myrow["address"];
- $_POST['email'] = $myrow['email'];
}
$_POST['branch_code'] = "";
if (!isset($_POST['sales_account']) || !isset($_POST['sales_discount_account']))
}
$_POST['branch_code'] = "";
if (!isset($_POST['sales_account']) || !isset($_POST['sales_discount_account']))
@@
-316,6
+315,9
@@
$table->set_inactive_ctrl('cust_branch', 'branch_code');
//$table->width = "85%";
display_db_pager($table);
//$table->width = "85%";
display_db_pager($table);
+}
+else
+ display_note(_("The selected customer does not have any branches. Please create at least one branch."));
tabbed_content_start('tabs', array(
'settings' => array('&General settings', $selected_id!=-1),
tabbed_content_start('tabs', array(
'settings' => array('&General settings', $selected_id!=-1),
@@
-338,9
+340,6
@@
tabbed_content_start('tabs', array(
hidden('selected_id', $selected_id);
br();
tabbed_content_end();
hidden('selected_id', $selected_id);
br();
tabbed_content_end();
-}
-else
- display_note(_("The selected customer does not have any branches. Please create at least one branch."));
end_form();
end_form();