| | |
| | | $app->tpl->setVar('template_additional_list', $text); |
| | | $app->tpl->setVar('app_module', 'client'); |
| | | |
| | | |
| | | //* Set the 'customer no' default value |
| | | if($this->id == 0) { |
| | | |
| | |
| | | //* 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(); |
| | | |
| | | } |