Show packing lists on enquiry view. Closes #46
This commit is contained in:
parent
72ca27a8be
commit
5592c6500b
|
|
@ -170,6 +170,7 @@
|
||||||
|
|
||||||
<th class="actions"><?php __('Actions');?></th>
|
<th class="actions"><?php __('Actions');?></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($jobs as $job):
|
foreach ($jobs as $job):
|
||||||
|
|
@ -340,6 +341,44 @@
|
||||||
<h4>Note: View an OrderAcknowledgement to create an Invoice pre-filled with the same data</h4>
|
<h4>Note: View an OrderAcknowledgement to create an Invoice pre-filled with the same data</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="related">
|
||||||
|
<h3>Packing Lists for this Enquiry</h3>
|
||||||
|
|
||||||
|
<table cellpadding="0" cellspacing="0">
|
||||||
|
<tr>
|
||||||
|
<th>Packing List</th>
|
||||||
|
<th>Issue Date</th>
|
||||||
|
<th class="actions">Actions</th>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i = 0;
|
||||||
|
foreach ($jobs as $job):
|
||||||
|
foreach($job['PackingList'] as $packingList):
|
||||||
|
$class = null;
|
||||||
|
if ($i++ % 2 == 0) {
|
||||||
|
$class = ' class="altrow"';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<tr<?php echo $class;?>>
|
||||||
|
<td>
|
||||||
|
<a href="/documents/view/<?php echo $packingList["document_id"];?>"><?php echo $packingList['title']; ?></a>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<?php echo $packingList['issue_date']; ?>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td class="actions">
|
||||||
|
<?php echo $html->link(__('View', true), array('controller'=>'documents', 'action' => 'view', $packingList['document_id'])); ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="showemail">
|
<div id="showemail">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -353,6 +392,6 @@
|
||||||
<?php //echo $this->element('email_table_ajax', $enquiry, array('cache'=>'+1 day')); ?>
|
<?php //echo $this->element('email_table_ajax', $enquiry, array('cache'=>'+1 day')); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php debug($order_acknowledgements); ?>
|
<?php //debug($order_acknowledgements); ?>
|
||||||
<?php // debug($jobs);?>
|
<?php // debug($jobs);?>
|
||||||
<?php //debug($emails); ?>
|
<?php //debug($emails); ?>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue