payment terms

This commit is contained in:
venbatechnologies@gmail.com 2017-07-24 10:46:58 +05:30
parent 6a967c20d5
commit 25b627d759
3 changed files with 13 additions and 18 deletions

View File

@ -121,6 +121,7 @@ class purchaseorder extends BaseController
$data['FreightType'] = $this->purchaseorder_model->getConfigValue('C018');
$data['Suplist'] = $this->purchaseorder_model->getSupplierName();
$data['Payment']=$this->purchaseorder_model->getPaymentTermsDetails();
// print_r($data['Payment']);
$data['WorkStatus']=$this->purchaseorder_model->getStatus(7);

View File

@ -409,14 +409,14 @@ function vaildateBeforeOpenModal()
</div>
</div>
<div class="col-md-12">
<legend>Payment Details</legend>
<legend>Payment Details</legend>
<!-- Text input-->
<div class="col-md-3">
<div class="col-md-3">
<span for="payablefrom">Payable Terms</span>
<?php
<?php
$options1 = array("0"=>'Select Payment method');
//print_r( $options);
@ -425,7 +425,7 @@ function vaildateBeforeOpenModal()
{
foreach ($payment as $payment):
$options1[$rl->ConfigValue] = $rl->ConfigValue.' '.' - '.' '.$rl->ConfigValue;
$options1[$rl->PaymentTerms] = $rl->ConfigValue.' '.' - '.' '.$rl->PaymentTerms;
endforeach;
}
@ -433,8 +433,8 @@ function vaildateBeforeOpenModal()
echo form_dropdown('PaymentMethod', $options1,set_value('PaymentMethod'),'id="PaymentMethod"' ,'class="form-control"');
?>
</div>
</div>
</div>
@ -2010,15 +2010,13 @@ function vaildateBeforeOpenModal()
$.each(paymentList, function(idx1, obj1) {
if(obj1.ConfigValue == supPaymentTerms )
if(obj1.PaymentTerms == supPaymentTerms )
{
$("#PaymentMethod").append( $('<option></option>').val(obj1.ConfigValue).html(obj1.ConfigValue));
$("#PaymentMethod").append( $('<option></option>').val(obj1.PaymentTerms).html(obj1.PaymentTerms));
$("#PayableAT").val(supPaymentAT);
}
}
});
@ -2026,9 +2024,9 @@ function vaildateBeforeOpenModal()
$.each(paymentList, function(idx, obj) {
if(obj.ConfigValue != supPaymentTerms )
if(obj.PaymentTerms != supPaymentTerms )
{
$("#PaymentMethod").append( $('<option></option>').val(obj.ConfigValue).html(obj.ConfigValue));
$("#PaymentMethod").append( $('<option></option>').val(obj.PaymentTerms).html(obj.PaymentTerms));
$("#PayableAT").val(supPaymentAT);
@ -2041,10 +2039,6 @@ function vaildateBeforeOpenModal()
}
else
{

View File

@ -3915,7 +3915,7 @@ var Detail = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
{
$("#PaymentTerms").append( $('<option></option>').val(value.ConfigValue).html(value.ConfigValue) );
$("#PaymentTerms").append( $('<option></option>').val(value.PaymentTerms).html(value.PaymentTerms) );