diff --git a/Customers.php b/Customers.php
index 49e1d57fa..5b1503064 100644
--- a/Customers.php
+++ b/Customers.php
@@ -22,18 +22,6 @@
include(__DIR__ . '/includes/SQL_CommonFunctions.php');
include(__DIR__ . '/includes/CountriesArray.php');
-$IndustryOptions = array();
-$SQL = "SELECT industryname
- FROM crmindustries
- WHERE active='1'
- ORDER BY industryname";
-$Result = DB_query($SQL, '', '', false, false);
-if ($Result) {
- while ($MyRow = DB_fetch_array($Result)) {
- $IndustryOptions[] = $MyRow['industryname'];
- }
-}
-
echo '
' . ' ' . __('Customer Maintenance') . '
@@ -172,13 +160,7 @@
taxref='" . $_POST['TaxRef'] . "',
customerpoline='" . $_POST['CustomerPOLine'] . "',
typeid='" . $_POST['typeid'] . "',
- language_id='" . $_POST['LanguageID'] . "',
- industry='" . $_POST['Industry'] . "',
- website='" . $_POST['Website'] . "',
- leadsource='" . $_POST['LeadSource'] . "',
- lifecycle='" . $_POST['Lifecycle'] . "',
- employeecount='" . $_POST['EmployeeCount'] . "',
- annualrevenue='" . filter_number_format($_POST['AnnualRevenue']) . "'
+ language_id='" . $_POST['LanguageID'] . "'
WHERE debtorno = '" . $_POST['DebtorNo'] . "'";
} else {
@@ -208,13 +190,7 @@
taxref='" . $_POST['TaxRef'] . "',
customerpoline='" . $_POST['CustomerPOLine'] . "',
typeid='" . $_POST['typeid'] . "',
- language_id='" . $_POST['LanguageID'] . "',
- industry='" . $_POST['Industry'] . "',
- website='" . $_POST['Website'] . "',
- leadsource='" . $_POST['LeadSource'] . "',
- lifecycle='" . $_POST['Lifecycle'] . "',
- employeecount='" . $_POST['EmployeeCount'] . "',
- annualrevenue='" . filter_number_format($_POST['AnnualRevenue']) . "'
+ language_id='" . $_POST['LanguageID'] . "'
WHERE debtorno = '" . $_POST['DebtorNo'] . "'";
if ($OldCurrency != $_POST['CurrCode']) {
@@ -259,13 +235,7 @@
taxref,
customerpoline,
typeid,
- language_id,
- industry,
- website,
- leadsource,
- lifecycle,
- employeecount,
- annualrevenue)
+ language_id)
VALUES ('" . $_POST['DebtorNo'] ."',
'" . $_POST['CustName'] ."',
'" . $_POST['Address1'] ."',
@@ -287,13 +257,7 @@
'" . $_POST['TaxRef'] . "',
'" . $_POST['CustomerPOLine'] . "',
'" . $_POST['typeid'] . "',
- '" . $_POST['LanguageID'] . "',
- '" . $_POST['Industry'] . "',
- '" . $_POST['Website'] . "',
- '" . $_POST['LeadSource'] . "',
- '" . $_POST['Lifecycle'] . "',
- '" . $_POST['EmployeeCount'] . "',
- '" . filter_number_format($_POST['AnnualRevenue']) . "')";
+ '" . $_POST['LanguageID'] . "')";
$ErrMsg = __('This customer could not be added because');
$Result = DB_query($SQL, $ErrMsg);
@@ -481,7 +445,8 @@
$DataError =0;
echo '
- ', __('Create Customer Details'), ' ';
+ ', __('Create Customer Details'), '
+ ';
/* if $AutoDebtorNo in config.php has not been set or if it has been set to a number less than one,
then provide an input box for the DebtorNo to manually assigned */
@@ -579,9 +544,11 @@
echo '
' . __('Customer Since') . ' (' . $_SESSION['DefaultDateFormat'] . '):
- ';
+
+ ';
- echo '
+ echo '
+
' . __('Discount Percent') . ':
@@ -700,51 +667,6 @@
-
- ' . __('CRM Details') . '
-
- ' . __('Industry') . ':
-
- ';
- $IndustryFound = false;
- foreach ($IndustryOptions as $IndustryName) {
- $Selected = '';
- if (isset($_POST['Industry']) and $_POST['Industry'] == $IndustryName) {
- $Selected = ' selected="selected"';
- $IndustryFound = true;
- }
- echo '' . htmlspecialchars($IndustryName, ENT_QUOTES, 'UTF-8') . ' ';
- }
- if (isset($_POST['Industry']) and $_POST['Industry'] != '' and !$IndustryFound) {
- echo '' . htmlspecialchars($_POST['Industry'], ENT_QUOTES, 'UTF-8') . ' ';
- }
- echo '
-
-
- ' . __('Website') . ':
-
-
-
- ' . __('Lead Source') . ':
-
-
-
- ' . __('Lifecycle Stage') . ':
- ';
- $LifecycleVal = isset($_POST['Lifecycle']) ? $_POST['Lifecycle'] : 'lead';
- foreach (['lead' => __('Lead'), 'prospect' => __('Prospect'), 'customer' => __('Customer'), 'churned' => __('Churned')] as $LcKey => $LcLabel) {
- echo '' . $LcLabel . ' ';
- }
- echo '
-
-
- ' . __('Employee Count') . ':
-
-
-
- ' . __('Annual Revenue') . ':
-
-
';
if ($DataError ==0){
echo '
@@ -785,13 +707,7 @@
taxref,
customerpoline,
typeid,
- language_id,
- industry,
- website,
- leadsource,
- lifecycle,
- employeecount,
- annualrevenue
+ language_id
FROM debtorsmaster
WHERE debtorno = '" . $DebtorNo . "'";
@@ -828,12 +744,6 @@
$_POST['CustomerPOLine'] = $MyRow['customerpoline'];
$_POST['typeid'] = $MyRow['typeid'];
$_POST['LanguageID'] = $MyRow['language_id'];
- $_POST['Industry'] = $MyRow['industry'];
- $_POST['Website'] = $MyRow['website'];
- $_POST['LeadSource'] = $MyRow['leadsource'];
- $_POST['Lifecycle'] = $MyRow['lifecycle'];
- $_POST['EmployeeCount'] = $MyRow['employeecount'];
- $_POST['AnnualRevenue'] = $MyRow['annualrevenue'];
echo '
';
@@ -1175,51 +1085,6 @@
echo '
-
- ' . __('CRM Details') . '
-
- ' . __('Industry') . ':
-
- ';
- $IndustryFound = false;
- foreach ($IndustryOptions as $IndustryName) {
- $Selected = '';
- if (isset($_POST['Industry']) and $_POST['Industry'] == $IndustryName) {
- $Selected = ' selected="selected"';
- $IndustryFound = true;
- }
- echo '' . htmlspecialchars($IndustryName, ENT_QUOTES, 'UTF-8') . ' ';
- }
- if (isset($_POST['Industry']) and $_POST['Industry'] != '' and !$IndustryFound) {
- echo '' . htmlspecialchars($_POST['Industry'], ENT_QUOTES, 'UTF-8') . ' ';
- }
- echo '
-
-
- ' . __('Website') . ':
-
-
-
- ' . __('Lead Source') . ':
-
-
-
- ' . __('Lifecycle Stage') . ':
- ';
- foreach (['lead' => __('Lead'), 'prospect' => __('Prospect'), 'customer' => __('Customer'), 'churned' => __('Churned')] as $LcKey => $LcLabel) {
- echo '' . $LcLabel . ' ';
- }
- echo '
-
-
- ' . __('Employee Count') . ':
-
-
-
- ' . __('Annual Revenue') . ':
-
-
-
';
if (isset($_GET['delete'])) { //User hit delete link on customer contacts
diff --git a/SelectCustomer.php b/SelectCustomer.php
index ba46980ad..68021a38a 100644
--- a/SelectCustomer.php
+++ b/SelectCustomer.php
@@ -11,10 +11,6 @@
include(__DIR__ . '/includes/SQL_CommonFunctions.php');
-echo '
- ', __('Customers'), '
-
';
-
if (isset($_GET['Select'])) {
$_SESSION['CustomerID'] = $_GET['Select'];
} // isset($_GET['Select'])
@@ -43,6 +39,7 @@
}
$Msg = '';
+$CustomerMenuSection = '';
if (isset($_POST['Go1']) or isset($_POST['Go2'])) {
$_POST['PageOffset'] = (isset($_POST['Go1']) ? $_POST['PageOffset1'] : $_POST['PageOffset2']);
@@ -144,96 +141,60 @@
echo '
', // Icon title.
- __('Customer'), ' : ', stripslashes($_SESSION['CustomerID']), ' - ', $CustomerName, ' - ', $PhoneNo, __(' has been selected'), '
+ '',
+ __('Customer'), ': ', stripslashes($_SESSION['CustomerID']), ' - ', $CustomerName,
+ '
'; // Page title.
- echo '
', __('Select a menu option to operate using this customer'), '.
';
-
- echo '
';
- // Customer inquiries options:
- echo '';
-
- echo '