Marius Cramer
2013-11-25 c99650a6cd6920626e5cc65a3361ec0ed92234a0
interface/web/client/client_edit.php
@@ -172,6 +172,7 @@
      $app->tpl->setVar('template_additional_list', $text);
      $app->tpl->setVar('app_module', 'client');
      
      //* Set the 'customer no' default value
      if($this->id == 0) {
         
@@ -207,11 +208,10 @@
               //* save new counter value
               $customer_no_counter = $app->functions->intval($reseller['customer_no_counter']+1);
               $app->db->query("UPDATE client SET customer_no_counter = $customer_no_counter WHERE client_id = ".$app->functions->intval($reseller['client_id']));
               echo "UPDATE client SET customer_no_counter = $customer_no_counter WHERE client_id = ".$app->functions->intval($reseller['client_id']);
            }
         }
      }
      parent::onShowEnd();
   }