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