Changed Add Customer
This commit is contained in:
parent
d138e3830b
commit
379fefbdfa
|
|
@ -30,6 +30,7 @@ class CustomersController extends AppController {
|
|||
if (!empty($this->data)) {
|
||||
|
||||
|
||||
|
||||
if($this->Customer->saveAll($this->data, array('validate'=>'first')) ) {
|
||||
$newcustomerid = $this->Customer->id;
|
||||
$this->Session->setFlash(__('The Customer has been saved', true));
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ class EnquiriesController extends AppController {
|
|||
$principlecode_offset = array( 15 => 207, //ELMAC, AMAL
|
||||
20 => 51, //T and B Electronic
|
||||
25 => 2062, //ATEX,Brilex,Marston
|
||||
35 => 2068, //Mid-West Instrument, DP
|
||||
35 => 2067, //Mid-West Instrument, DP
|
||||
36 => 47, //Reading Technologies
|
||||
37 => 2040, //Eldridge, Smart Measurement, Alia
|
||||
65 => 2212, //Papenmeier, Herberts Industrieglas
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
echo $form->input('last_name');
|
||||
echo $form->input('email');
|
||||
echo $form->input('phone');
|
||||
echo $form->input('mobile');
|
||||
echo $form->input('fax');
|
||||
echo $form->input('notes');
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
echo $form->input('last_name', array('label' => 'Last Name', 'title'=>'The last name of this Contact'));
|
||||
echo $form->input('email');
|
||||
echo $form->input('phone');
|
||||
echo $form->input('mobile');
|
||||
echo $form->input('fax');
|
||||
echo $form->input('notes');
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -12,16 +12,18 @@
|
|||
echo $form->input('Contact.0.last_name');
|
||||
echo $form->input('Contact.0.email');
|
||||
echo $form->input('Contact.0.phone');
|
||||
echo $form->input('Contact.0.mobile');
|
||||
echo $form->input('Contact.0.fax');
|
||||
echo $form->input('Contact.0.notes');
|
||||
echo '<br><span>Add an Address for this Customer</span>';
|
||||
*/
|
||||
/*echo '<br><span>Add an Address for this Customer</span>';
|
||||
echo $form->input('Address.0.name', array('label'=>'Short Name', 'title' => 'Short Name for this Address. eg. \'Head Quarters\', \'Manufacturing Plant No 7\' '));
|
||||
echo $form->input('Address.0.address');
|
||||
echo $form->input('Address.0.city');
|
||||
echo $form->input('Address.0.state_id');
|
||||
echo $form->input('Address.0.country_id');
|
||||
echo $form->input('Address.0.type', array('label' => 'Address Type (Billing,Shipping or Both)', 'options' => array('Billing','Shipping', 'Both Shipping and Billing')));
|
||||
*/
|
||||
*/
|
||||
echo $form->end('Submit');
|
||||
?>
|
||||
|
||||
|
|
@ -38,3 +40,4 @@
|
|||
<li><?php echo $html->link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?> </li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
echo $form->input('address');
|
||||
echo $form->input('city');
|
||||
echo $form->input('state');
|
||||
echo $form->input('postcode');
|
||||
echo $form->input('country_id');
|
||||
echo $form->input('currency_id');
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue