Refs #3817 - Adds a CLIENTID token parsed only for the "Add Client" form from a Reseller
| | |
| | | if($reseller['customer_no_template'] != '') { |
| | | //* Set customer no default |
| | | $customer_no = $app->functions->intval($reseller['customer_no_start']+$reseller['customer_no_counter']); |
| | | $customer_no_string = str_replace('[CUSTOMER_NO]',$customer_no,$reseller['customer_no_template']); |
| | | $customer_no_string = str_replace(array('[CUSTOMER_NO]','[CLIENTID]'),array($customer_no, $reseller['client_id']),$reseller['customer_no_template']); |
| | | $app->tpl->setVar('customer_no',$customer_no_string); |
| | | } |
| | | } |