2023-06-14 14:31:41 -07:00
|
|
|
<?php echo $javascript->link('customer_edit'); ?>
|
|
|
|
|
|
|
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
<div class="customers form">
|
|
|
|
|
<?php echo $form->create('Customer');?>
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend><?php __('Edit Customer');?></legend>
|
|
|
|
|
<?php
|
|
|
|
|
echo $form->input('id');
|
|
|
|
|
echo $form->input('name');
|
|
|
|
|
echo $form->input('abn');
|
2023-06-14 14:31:41 -07:00
|
|
|
//echo $this->element('payment_terms_box');
|
|
|
|
|
?>
|
|
|
|
|
<div class="input select"><label for="CustomerPaymentTermsOptions">Payment Terms</label><select name="data[Customer][payment_terms]" id="CustomerPaymentTermsOptions">
|
|
|
|
|
<option value="">Select the Terms of Payment</option>
|
|
|
|
|
<option value="100% Payment with Order">100% Payment with Order</option>
|
|
|
|
|
<option value="Net 7 Days for Approved Accounts">Net 7 Days for Approved Accounts</option>
|
|
|
|
|
<option value="Net 14 Days for Approved Accounts">Net 14 Days for Approved Accounts</option>
|
|
|
|
|
<option value="Net 30 Days for Approved Accounts">Net 30 Days for Approved Accounts</option>
|
|
|
|
|
</select></div>
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
echo $form->input('payment_terms');
|
2009-02-03 21:28:46 -08:00
|
|
|
echo $form->input('discount_pricing_policies', array('label'=>'Discount and Pricing Policies'));
|
2009-07-12 23:55:17 -07:00
|
|
|
echo $form->input('notes');
|
|
|
|
|
echo $form->input('url', array('label'=>'Website URL'));
|
2009-02-11 20:02:05 -08:00
|
|
|
echo '<div class="input select">';
|
|
|
|
|
echo $form->label('Customer.customer_category_id', 'Customer Category');
|
2009-02-26 16:58:33 -08:00
|
|
|
echo $form->select('customer_category_id', $customer_categories, $this->data['Customer']['customer_category_id'], array('label'=>'Customer Category'), false);
|
2009-02-11 20:02:05 -08:00
|
|
|
echo '</div>';
|
2009-07-06 19:11:10 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-07-09 00:09:59 -07:00
|
|
|
echo $form->input('Industry.Industry', array('multiple'=>'checkbox', 'showParents'=> false, 'options' => $industries));
|
2009-07-06 19:11:10 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
</fieldset>
|
|
|
|
|
<?php echo $form->end('Submit');?>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="actions">
|
|
|
|
|
<ul>
|
|
|
|
|
<li><?php echo $html->link(__('List Customers', true), array('action'=>'index'));?></li>
|
|
|
|
|
<li><?php echo $html->link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?> </li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
2009-07-06 19:11:10 -07:00
|
|
|
|