Falko Timme
2013-11-21 14fe6d43f307c01684008ddd2d3270409b169326
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,10 +208,12 @@
               //* 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']);
            }
         }
      }
      $app->tpl->setVar('btn_save_txt',$app->lng('btn_save_txt'));
      $app->tpl->setVar('btn_cancel_txt',$app->lng('btn_cancel_txt'));
      parent::onShowEnd();