Added all paid and all sent cols to jobs index
|
|
@ -32,8 +32,15 @@ class JobsController extends AppController {
|
|||
/** Called via AJAX to get an editable row */
|
||||
function getEditableRow($id) {
|
||||
$this->layout = 'ajax';
|
||||
$this->set('job', $this->Job->find('first', array('conditions'=>array('Job.id'=>$id))));
|
||||
|
||||
$job = $this->Job->find('first', array('conditions'=>array('Job.id'=>$id)));
|
||||
|
||||
$this->set('job', $job);
|
||||
|
||||
$this->data = $job;
|
||||
|
||||
|
||||
$this->set('yesNo', array(0=>'No', 1=>'Yes'));
|
||||
$this->set('currencies', $this->Job->Currency->find('list'));
|
||||
$this->set('sale_category_options', $this->sale_category_options());
|
||||
$this->set('sale_category_array', $this->sale_category_array());
|
||||
|
|
@ -161,13 +168,14 @@ class JobsController extends AppController {
|
|||
function job_status_options() {
|
||||
$options = array('ORDER RECEIVED FROM CUSTOMER',
|
||||
'ORDER PLACED ON PRINCIPLE - WAITING ON DELIVERY',
|
||||
'GOODS SHIPPED TO CUSTOMER - CMC WAITING ON PAYMENT',
|
||||
'WAITING ON PAYMENT AND ANOTHER DELIVERY',
|
||||
'GOODS DELIVERED TO CUSTOMER - CMC PAID IN FULL',
|
||||
'PAID IN FULL WAITING ON DELIVERY',
|
||||
'GOODS SHIPPED TO CUSTOMER',
|
||||
'WAITING ON DELIVERY',
|
||||
'MULTIPLE SHIPMENTS CMC WAITING ON ANOTHER DELIVERY',
|
||||
'GOODS DELIVERED TO CUSTOMER',
|
||||
'JOB CANCELLED',
|
||||
'JOB ON HOLD',
|
||||
'CUSTOMER TO PAY 100% WITH ORDER');
|
||||
'CUSTOMER TO PAY 100% WITH ORDER'
|
||||
);
|
||||
$options = $this->buildEnumOpts($options);
|
||||
return $options;
|
||||
}
|
||||
|
|
|
|||
5
views/elements/booleanTick.ctp
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?
|
||||
if($bool == 1) {
|
||||
echo $html->image('tick.png');
|
||||
}
|
||||
?>
|
||||
|
|
@ -56,11 +56,14 @@ else {
|
|||
}*/
|
||||
|
||||
?>
|
||||
|
||||
<?=$form->input('id', array('type'=>'hidden', 'value'=>$job['Job']['id'])); ?>
|
||||
<td><button class="saveButton">Save</button> <button class="cancelButton">Cancel</button></td>
|
||||
<td><?=$form->input('date_order_received_display', array('value'=>$this->element('isEmptyDate', array('date'=>$job['Job']['date_order_received'])), 'label'=>false, 'id'=>$job['Job']['id'].'_date_order_received_display'));?>
|
||||
<?=$form->input('date_order_received', array('type'=>'hidden', 'id'=>$job['Job']['id'].'_date_order_received', 'value'=>$job['Job']['date_order_received']));?>
|
||||
</td>
|
||||
<td><?=$form->input('all_paid', array('type'=>'select','options'=>array($yesNo), 'label'=>false, 'selected'=>$job['Job']['all_paid'], 'class'=>'yesNo'));?></td>
|
||||
<td><?=$form->input('all_sent', array('type'=>'select','options'=>array($yesNo), 'label'=>false, 'selected'=>$job['Job']['all_sent'], 'class'=>'yesNo'));?></td>
|
||||
<td><?=$form->input('job_status', array('type'=>'select', 'options'=>$job_status_options, 'value'=>$job['Job']['job_status'], 'label'=>false, 'class'=>''));?></td>
|
||||
<td>
|
||||
<?=$form->input('sale_category', array('options'=>$sale_category_options, 'type'=>'select', 'label'=>false, 'value'=>$job['Job']['sale_category'], 'class'=>'sale_category'));?>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,15 @@
|
|||
<tr id="<?=$job['Job']['id']?>">
|
||||
<td><button class="editButton">Edit</button></td>
|
||||
<td><?=$this->element('isEmptyDate', array('date'=>$job['Job']['date_order_received']));?></td>
|
||||
|
||||
<td>
|
||||
<?=$this->element('booleanTick', array('bool'=>$job['Job']['all_paid'])); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?=$this->element('booleanTick', array('bool'=>$job['Job']['all_sent'])); ?>
|
||||
</td>
|
||||
|
||||
|
||||
<td><?=$job['Job']['job_status'];?></td>
|
||||
<td>
|
||||
<?=$sale_category_array[$job['Job']['sale_category']];?>
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@ echo $paginator->counter(array(
|
|||
|
||||
<th class="actions">Actions</th>
|
||||
<th><?php echo $paginator->sort('Order Received', 'date_order_received');?></th>
|
||||
<th><?php echo $paginator->sort('All Paid', 'all_paid');?></th>
|
||||
<th><?php echo $paginator->sort('All Sent', 'all_sent');?></th>
|
||||
<th><?php echo $paginator->sort('Status', 'job_status');?></th>
|
||||
<th class="sale_category"><?php echo $paginator->sort('Sale Category');?></th>
|
||||
<th><?php echo $paginator->sort('Job Type', 'job_type');?></th>
|
||||
|
|
@ -81,6 +83,12 @@ echo $paginator->counter(array(
|
|||
<td><button class="editButton">Edit</button></td>
|
||||
<td>
|
||||
<?=$this->element('isEmptyDate', array('date'=>$job['Job']['date_order_received']));?></td>
|
||||
<td>
|
||||
<?=$this->element('booleanTick', array('bool'=>$job['Job']['all_paid'])); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?=$this->element('booleanTick', array('bool'=>$job['Job']['all_sent'])); ?>
|
||||
</td>
|
||||
<td class=""><?=$job['Job']['job_status'];?></td>
|
||||
<td class="sale_category nowrap">
|
||||
<?=$sale_category_array[$job['Job']['sale_category']];?>
|
||||
|
|
|
|||
|
|
@ -46,19 +46,10 @@
|
|||
<div class="actions">
|
||||
<ul>
|
||||
<li><?php echo $html->link(__('Edit PurchaseOrder', true), array('action' => 'edit', $purchaseOrder['PurchaseOrder']['id'])); ?> </li>
|
||||
<li><?php echo $html->link(__('Delete PurchaseOrder', true), array('action' => 'delete', $purchaseOrder['PurchaseOrder']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $purchaseOrder['PurchaseOrder']['id'])); ?> </li>
|
||||
<li><?php echo $html->link(__('List PurchaseOrders', true), array('action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New PurchaseOrder', true), array('action' => 'add')); ?> </li>
|
||||
<li><?php echo $html->link(__('List Principles', true), array('controller' => 'principles', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Principle', true), array('controller' => 'principles', 'action' => 'add')); ?> </li>
|
||||
<li><?php echo $html->link(__('List Documents', true), array('controller' => 'documents', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Document', true), array('controller' => 'documents', 'action' => 'add')); ?> </li>
|
||||
<li><?php echo $html->link(__('List Jobs', true), array('controller' => 'jobs', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Job', true), array('controller' => 'jobs', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="related">
|
||||
<h3><?php __('Related Jobs');?></h3>
|
||||
<h3>PO for these Jobs</h3>
|
||||
<?php if (!empty($purchaseOrder['Job'])):?>
|
||||
<table cellpadding = "0" cellspacing = "0">
|
||||
<tr>
|
||||
|
|
|
|||
|
|
@ -374,7 +374,7 @@ div.quoteproducts {
|
|||
padding-top: 3%;
|
||||
}
|
||||
|
||||
Tables
|
||||
/* Tables */
|
||||
table {
|
||||
background: #fff;
|
||||
border:1px solid #ccc;
|
||||
|
|
@ -1313,6 +1313,11 @@ select.sale_category {
|
|||
width: 300px;
|
||||
}
|
||||
|
||||
|
||||
select.yesNo {
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
select.job_status {
|
||||
width: 300px;
|
||||
}
|
||||
|
|
@ -1330,6 +1335,9 @@ select.job_status {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* CSS for the Job Reporting */
|
||||
|
||||
#yearMonths {
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 504 B |
|
Before Width: | Height: | Size: 408 B |
|
Before Width: | Height: | Size: 540 B |
|
Before Width: | Height: | Size: 498 B |
|
Before Width: | Height: | Size: 449 B |
|
Before Width: | Height: | Size: 464 B |
|
Before Width: | Height: | Size: 323 B |
|
Before Width: | Height: | Size: 170 B |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 625 B |
|
Before Width: | Height: | Size: 240 B |
|
Before Width: | Height: | Size: 240 B |
|
Before Width: | Height: | Size: 631 B |
|
Before Width: | Height: | Size: 289 B |
|
Before Width: | Height: | Size: 347 B |
|
Before Width: | Height: | Size: 207 B |
|
Before Width: | Height: | Size: 209 B |
|
Before Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 846 B |
|
Before Width: | Height: | Size: 257 B |
|
Before Width: | Height: | Size: 59 B |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 851 B |
|
Before Width: | Height: | Size: 872 B |
|
Before Width: | Height: | Size: 836 B |
|
Before Width: | Height: | Size: 823 B |
|
Before Width: | Height: | Size: 510 B |
|
Before Width: | Height: | Size: 80 B |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 914 B |
|
Before Width: | Height: | Size: 823 B |
|
Before Width: | Height: | Size: 830 B |
|
Before Width: | Height: | Size: 163 B |
|
Before Width: | Height: | Size: 833 B |
|
Before Width: | Height: | Size: 161 B |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 592 B |
|
Before Width: | Height: | Size: 537 B |
|
Before Width: | Height: | Size: 905 B |
|
Before Width: | Height: | Size: 546 B |
BIN
webroot/img/tick.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |