Changed logic on jobs JS for exports. Dissalow AUD values
This commit is contained in:
parent
f66b0bebc3
commit
800cec1a0d
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
$(function() {
|
||||
|
||||
/** This could be cleaner. However, this will work with multiple rows being edited */
|
||||
getSelectIDs();
|
||||
|
|
@ -97,7 +97,8 @@
|
|||
if(currencyID == 2) {//Export Sale. AUD
|
||||
$('.export_sale_aud').attr("readonly",false);
|
||||
$(".export_sale_aud").addClass("highlighted");
|
||||
$(".aust_sale_aud").addClass("highlighted");
|
||||
//$(".aust_sale_aud").addClass("highlighted");
|
||||
$(".aust_sale_aud").attr("readonly", true);
|
||||
$('.exchange_rate').attr("readonly",true);
|
||||
$(".aust_sale_fc").attr("readonly",true);
|
||||
$('.export_sale_fc').attr("readonly",true);
|
||||
|
|
@ -137,7 +138,7 @@
|
|||
}
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
|
@ -175,38 +176,38 @@ else {
|
|||
</td>
|
||||
<td>
|
||||
<?=$form->input('job_type', array('options'=>$job_type_options, 'label' => false, 'selected'=>$job['Job']['job_type']));?></td>
|
||||
<td><?=$form->input('shipment_category', array('options'=>$shipment_category_options,
|
||||
<td><?=$form->input('shipment_category', array('options'=>$shipment_category_options,
|
||||
'type'=>'select','label'=>false,'value'=>$job['Job']['shipment_category']));?>
|
||||
</td>
|
||||
<td><?=$html->link($job['Job']['title'], array('controller'=>'jobs', 'action'=>'view', $job['Job']['id']));?></td>
|
||||
<td><?=$html->link($job['Enquiry']['title'], array('controller'=>'enquiries','action'=>'view', $job['Enquiry']['id']));?></td>
|
||||
<td><?=$html->link($principleList[$job['Enquiry']['principle_id']], '/principles/view/'.$job['Enquiry']['principle_id']);?></td>
|
||||
<td><?
|
||||
$poString = '';
|
||||
foreach($job['PurchaseOrder'] as $po) {
|
||||
$poString = '';
|
||||
foreach($job['PurchaseOrder'] as $po) {
|
||||
$poString .= ' '.$html->link($po['title'], array('controller'=>'purchase_orders', 'action'=>'view', $po['id']));
|
||||
}
|
||||
echo $poString;
|
||||
?>
|
||||
}
|
||||
echo $poString;
|
||||
?>
|
||||
</td>
|
||||
<td class="nowrap"><?
|
||||
foreach($job['PurchaseOrder'] as $po) {
|
||||
foreach($job['PurchaseOrder'] as $po) {
|
||||
echo $this->element('isEmptyDate', array('date'=>$po['issue_date']));
|
||||
echo "<br>";
|
||||
}
|
||||
?>
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td><?=$html->link($job['Customer']['name'], array('controller'=>'customers','action'=>'view', $job['Customer']['id']));?></td>
|
||||
<td>
|
||||
<?=$form->input('customer_order_number', array('value'=>$job['Job']['customer_order_number'], 'label'=>false));?>
|
||||
</td>
|
||||
<td> <?
|
||||
foreach($job['PurchaseOrder'] as $po) {
|
||||
<td> <?
|
||||
foreach($job['PurchaseOrder'] as $po) {
|
||||
echo $po['principle_reference'];
|
||||
echo "<br>";
|
||||
}
|
||||
?>
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
|
|
|||
Loading…
Reference in a new issue