Added date selector to quotes
This commit is contained in:
parent
4cc13184c5
commit
cb69ba2f86
|
|
@ -18,17 +18,18 @@
|
|||
<tbody>
|
||||
<?foreach($document['LineItem'] as $li):?>
|
||||
<tr nobr="true">
|
||||
<td width="<?=$colWidths['item'];?>" align="center">
|
||||
<td width="<?=$colWidths['item'];?>" align="center" valign="top">
|
||||
<? if($li['option'] == 1) {
|
||||
echo 'Option<br>';
|
||||
echo 'Option';
|
||||
}
|
||||
?>
|
||||
<?=$li['item_number'];?></td>
|
||||
<td width="<?=$colWidths['qty'];?>" align="center"><?=$li['quantity'];?></td>
|
||||
<?=$li['item_number'];?>
|
||||
</td>
|
||||
<td width="<?=$colWidths['qty'];?>" align="center" valign="top"><?=$li['quantity'];?></td>
|
||||
<td width="<?=$colWidths['desc'];?>"><?=$li['title'];?>
|
||||
<?=$li['description'];?>
|
||||
</td>
|
||||
<td width="<?=$colWidths['unit'];?>" align="center">
|
||||
<td width="<?=$colWidths['unit'];?>" align="center" valign="top">
|
||||
|
||||
<?=$number->currency($li['gross_unit_price'], $currencyCode);?>
|
||||
<? if($li['discount_percent']):?>
|
||||
|
|
@ -39,7 +40,7 @@
|
|||
<?=$number->currency($li['net_unit_price'], $currencyCode);?>
|
||||
<?endif;?>
|
||||
</td>
|
||||
<td width="<?=$colWidths['total'];?>" align="center">
|
||||
<td width="<?=$colWidths['total'];?>" align="center" valign="top">
|
||||
<?=$number->currency($li['gross_price'], $currencyCode);?>
|
||||
<? if($li['discount_percent']):?>
|
||||
<br>less<br><?=$li['discount_percent']?>%<br>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,26 @@
|
|||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$("button").button();
|
||||
|
||||
$('#date_issued_display').datepicker({
|
||||
showButtonPanel: true,
|
||||
dateFormat: 'd M yy',
|
||||
altFormat: 'yy-mm-dd',
|
||||
altField: '#date_issued'
|
||||
|
||||
});
|
||||
|
||||
|
||||
$('#valid_until_display').datepicker({
|
||||
showButtonPanel: true,
|
||||
dateFormat: 'd M yy',
|
||||
altFormat: 'yy-mm-dd',
|
||||
altField: '#valid_until'
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
@ -14,13 +34,14 @@ echo $form->input('revision', array('type'=>'hidden'));
|
|||
echo $form->input('delivery_time');
|
||||
echo $form->input('payment_terms');
|
||||
echo $form->input('days_valid');
|
||||
echo $form->input('date_issued');
|
||||
echo $form->input('valid_until');
|
||||
echo $form->input('date_issued_display', array('id'=>'date_issued_display', 'label'=>'Date Issued'));
|
||||
echo $form->input('date_issued', array('type'=>'hidden', 'id'=>'date_issued'));
|
||||
echo $form->input('valid_until_display', array('id'=>'valid_until_display', 'label'=>'Valid Until'));
|
||||
echo $form->input('valid_until', array('type'=>'hidden', 'id'=>'valid_until'));
|
||||
echo $form->input('delivery_point');
|
||||
echo $form->input('exchange_rate');
|
||||
echo $form->input('customs_duty');
|
||||
echo $form->input('document_id',array('type'=>'hidden'));
|
||||
echo $form->input('commercial_comments', array('between'=>'<button class="generateCommercialComments">(re)Generate Commercial Comments</button>'));
|
||||
|
||||
echo $form->end();
|
||||
?>
|
||||
Loading…
Reference in a new issue