import pdf

This commit is contained in:
venbatechnologies@gmail.com 2017-07-24 18:26:46 +05:30
parent b6b3907f99
commit 32e02f1149

View File

@ -526,27 +526,27 @@ body {
<legend>Payment Details</legend>
<!-- Text input-->
<div class="col-md-3">
<span for="payablefrom">Payable Terms</span>
<select class="form-control required" id="PaymentTerms" name="PaymentTerms">
<option value="" ><?php echo $Terms;?></option>
<!-- <select class="form-control required" id="PaymentTerms" name="PaymentTerms">
<option value="" > --><!-- <?php echo $Terms;?> --></option>
<!-- <option value=<?php echo $Deatail?> > Payment method</option> -->
<?php
if(!empty($Currency))
{
foreach ($PaymentTerms as $Pay):
foreach ($Payment as $Pay):
if($PaymentTerms==$Pay->PaymentTerms){
$options1[$Pay->PaymentTerms] = $Pay->PaymentTerms;
$options2[$Pay->PaymentTerms] = $Pay->PaymentTerms;
}
endforeach;
foreach ($PaymentTerms as $Pay):
if($PaymentTerms!=$Pay->PaymentTerms){
$options1[$Pay->PaymentTerms] = $Pay->PaymentTerms;
if(!empty($Payment))
{
foreach ($Payment as $Pay1):
if($PaymentTerms!=$Pay1->PaymentTerms){
$options2[$Pay1->PaymentTerms] = $Pay1->PaymentTerms;
}
@ -554,6 +554,7 @@ body {
}
// echo form_dropdown('currencytype', $options1,set_value('currencytype',$Currency_Type),'id="currencytype"','class="form-control select2"' , 'required="true"');
echo form_dropdown('PaymentTerms', $options2,set_value('PaymentTerms',$PaymentTerms),'id="PaymentTerms"' ,'required="true"' ,'class="form-control select2');
?>
@ -4958,18 +4959,6 @@ if(validate())
});
});
var Detail = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
//console.log(Detail);
$.each(Detail, function (index, value)
{
$("#PaymentTerms").append( $('<option></option>').val(value.PaymentTerms).html(value.PaymentTerms) );
} );
</script>