'Amendmentchanges'
This commit is contained in:
parent
b5e2cb7a3a
commit
c995d1b8ba
@ -3,18 +3,21 @@ $AvlAmount = 0;
|
||||
$ReqType ='';
|
||||
$Value='';
|
||||
$EXCRATE=0;
|
||||
|
||||
$Rowcount = 0;
|
||||
$Value=$unicode;
|
||||
|
||||
|
||||
$Currencycode=$currencycode;
|
||||
|
||||
|
||||
$Cur = '';
|
||||
$CurCode= '';
|
||||
|
||||
foreach ($CurrencyDetail as $Detail)
|
||||
{
|
||||
$Cur=$Detail->Currency_Code.' '.' - '.' '.$Detail->Country_and_Currency;
|
||||
$CurCode = $Detail->Currency_Code;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
foreach ($PaymentTerms as $TER)
|
||||
{
|
||||
@ -55,21 +58,21 @@ $DeliveryAddress ='';
|
||||
$PONOStatus='';
|
||||
$PONO = '';
|
||||
$ServiceDescription = '';
|
||||
$TotalLanding='';
|
||||
$tothighseas='';
|
||||
$totcustom='';
|
||||
$totexciseduty='';
|
||||
$totexcisedutyED='';
|
||||
$totexciseSH='';
|
||||
$totcustomED='';
|
||||
$totcustomSH='';
|
||||
$totaddtnlexcise='';
|
||||
$totgrossduty='';
|
||||
$totavlmodvat='';
|
||||
$totgrossexpense='';
|
||||
$totordervalue='';
|
||||
$ExchangeRate='';
|
||||
$totorder='';
|
||||
$TotalLanding=0.00;
|
||||
$tothighseas=0.00;
|
||||
$totcustom=0.00;
|
||||
$totexciseduty=0.00;
|
||||
$totexcisedutyED=0.00;
|
||||
$totexciseSH=0.00;
|
||||
$totcustomED=0.00;
|
||||
$totcustomSH=0.00;
|
||||
$totaddtnlexcise=0.00;
|
||||
$totgrossduty=0.00;
|
||||
$totavlmodvat=0.00;
|
||||
$totgrossexpense=0.00;
|
||||
$totordervalue=0.00;
|
||||
$ExchangeRate=0.00;
|
||||
$totorder=0.00;
|
||||
//$ExchangeRate
|
||||
$ExchangeRateCalculatedon='';
|
||||
$StatusName='';
|
||||
@ -252,7 +255,7 @@ body {
|
||||
<label>Currency Type</label>
|
||||
|
||||
<?php
|
||||
$options = array($Cur=>$Cur);
|
||||
$options = array($CurCode=>$Cur);
|
||||
//$options = array("0"=>'Select Currency');
|
||||
|
||||
//print_r( $options);
|
||||
@ -457,25 +460,12 @@ body {
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<span>Payable AT</span>
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'PayableAT','value' => set_value('PayableAT',$PayableAT),'id'=>'PayableAT', 'class' => 'form-control' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
Payment Date <br/>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo form_label('Before', 'Before') ." ". form_radio(array("name"=>"Payment", "id"=>"Before", "value"=>"0", 'checked'=>set_radio('Payment', '0', TRUE))); ?> </td>
|
||||
<td>
|
||||
<?php echo form_label('After', 'After') ." ". form_radio(array("name"=>"Payment", "id"=>"After", "value"=>"1", 'checked'=>set_radio('Payment', '1', FALSE))); ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -492,565 +482,7 @@ body {
|
||||
|
||||
|
||||
|
||||
<!--<a data-toggle="modal"><button type="submit" onclick="myFunction();" class="btn btn-primary" id="abcd" >Select Line Item</button> </a>-->
|
||||
|
||||
|
||||
<!-- <div class="modal fade" id="importpomodel" role="dialog">-->
|
||||
|
||||
<div id="importpomodel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<form>
|
||||
<div class="modal-content" style="width:900px;">
|
||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4>Add Import Purchase Order Item </h4></center>
|
||||
</div>
|
||||
<div align="left">
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>Req No</label>
|
||||
<div>
|
||||
<?php
|
||||
$options = array("0"=>'Req No');
|
||||
//echo form_dropdown('ImportMaterialCode', $options,set_value('ImportMaterialCode'),'id="ImportMaterialCode"' ,'class="form-control required"');
|
||||
$RL = array("0"=>'Select Req No');
|
||||
if(!empty($RequistionDetails))
|
||||
{
|
||||
foreach ($RequistionDetails as $SID):
|
||||
$RL[$SID->ReqNo] = $SID->ReqNo.' '.' - '.' '.$SID->DepartmentName;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
echo form_dropdown('ReqNo', $RL,set_value('ReqNo'),'id="ReqNo"' ,'class="form-control"');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Department Name</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
//$data = array('name' => 'ImportDepartmentName','value' => set_value('ImportDepartmentName'),'id'=>'ImportDepartmentName', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
$data = array('name' => 'deptName','value' => set_value('deptName'),'id'=>'deptName', 'class' => 'form-control','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Cost Center Name</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
//$options = array("0"=>'Select Cost Center');
|
||||
|
||||
//echo form_dropdown('CostCenter', $options,set_value('CostCenter'),'id="CostCenter"' ,'class="form-control"');
|
||||
|
||||
$data = array('name' => 'CostCenter','value' => set_value('CostCenter'),'id'=>'CostCenter', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Available Budget Amount</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AvlBudAmt','value' => set_value('AvlBudAmt'),'id'=>'AvlBudAmt', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-2">
|
||||
<label>Item Code</label>
|
||||
|
||||
<!--In this item code the value should come from DB , so it getting error , so i am disabling this div , once get the data from DB uncommand this div-->
|
||||
<div>
|
||||
<?php
|
||||
// $options = array("0"=>'Item Code');
|
||||
|
||||
//if(!empty($MaterialList))
|
||||
//{
|
||||
// foreach ($MaterialList as $SID):
|
||||
|
||||
|
||||
// $options[$SID->MaterialCode] = $SID->MaterialCode.' '.' - '.' '.$SID->MaterialName;
|
||||
|
||||
//endforeach;
|
||||
//}
|
||||
|
||||
//echo form_dropdown('ImportMaterialCode', $options,set_value('ImportMaterialCode'),'id="ImportMaterialCode"' ,'class="form-control"');
|
||||
|
||||
$options = array("0"=>'Item Code');
|
||||
//print_r( $options);
|
||||
|
||||
|
||||
|
||||
echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control"');
|
||||
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>Item Name</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ItemName','value' => set_value('ItemName'),'id'=>'ItemName', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>UOM</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'UOM','value' => set_value('UOM'),'id'=>'UOM', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>Quantity</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange()');
|
||||
echo form_input($data);
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<!-- <label>Rate </label>
|
||||
-->
|
||||
|
||||
<P id=labelRate> <label><?php echo "Rate in $Currencycode ($Value)";?> </label></P>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Rate','value' => set_value('Rate'),'id'=>'Rate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Ratechange()' );
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<!-- <label>Basic Amount </label>-->
|
||||
<!-- <p id=labelBasicvalue><label><?php echo "Basic Value In $Currencycode ($Value)";?></label></p>
|
||||
-->
|
||||
|
||||
<p id=label2> <label><?php echo "Basic Value In $Currencycode";?></label></p>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
//$data = array('name' => 'imTotalAmount','value' => set_value('imTotalAmount'),'id'=>'imTotalAmount', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
|
||||
$data = array('name' => 'txtBasicValue','value' => set_value('txtBasicValue'),'id'=>'txtBasicValue', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-3">
|
||||
|
||||
<!-- Basic Price in US $ per Ton : -->
|
||||
<p id=labelBasicpriceus><b><?php echo "Basic Price in $Currencycode ($Value)"?></p>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'imBasicPrice','value' => set_value('imBasicPrice'),'id'=>'imBasicPrice', 'class' => 'form-control' ,'placeholder '=>'basic price','onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
|
||||
<!-- Exchange Rate : -->
|
||||
|
||||
<p id=label1><b><?php echo "Exchange Rate"?></p>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ExchangeRt','value' => set_value('ExchangeRt'),'id'=>'ExchangeRt', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
|
||||
<!-- Basic value in INR : -->
|
||||
<P id=labelBasicINR> <label><?php echo "Basic value in INR";?> </label></P>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'INRBasicvalue','value' => set_value('INRBasicvalue'),'id'=>'INRBasicvalue', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="col-md-3">
|
||||
<a href="http://www.xe.com/" target="_blank"><u>Click nere to check Today's Foreign Exchange value</u></a>
|
||||
</div>-->
|
||||
|
||||
<div class="col-md-12" style="border:1px solid #000;padding:0px;">
|
||||
<br/>
|
||||
<div class="col-md-6" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4" >
|
||||
Basic Price:
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'BasicPriceTax','value' => set_value('BasicPriceTax'),'id'=>'BasicPriceTax', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterBasicPriceTax','value' => set_value('AfterBasicPriceTax'),'id'=>'AfterBasicPriceTax', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
Landing charge
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'LandingCharge','value' => set_value('LandingCharge'),'id'=>'LandingCharge', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Calculateloadingcharge()');
|
||||
echo form_input($data);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterLandingCharge','value' => set_value('AfterLandingCharge'),'id'=>'AfterLandingCharge', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
High seas sales charge
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Highseas ','value' => set_value('Highseas'),'id'=>'Highseas', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateHighseassalescharge()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterHighseas','value' => set_value('AfterHighseas'),'id'=>'AfterHighseas', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
Custom duty : (a)
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Customduty','value' => set_value('Customduty'),'id'=>'Customduty', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateCustomduty()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterCustomduty','value' => set_value('AfterCustomduty'),'id'=>'AfterCustomduty', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
Excise duty : (b)
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ExcisedutyTax','value' => set_value('ExcisedutyTax'),'id'=>'ExcisedutyTax', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateExciseDuty()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterExcisedutyTax','value' => set_value('AfterExcisedutyTax'),'id'=>'AfterExcisedutyTax', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
Excise duty ED_cess : (C)
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ExcisedutyEDcess','value' => set_value('ExcisedutyEDcess'),'id'=>'ExcisedutyEDcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateExciseED1()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterExcisedutyEDcess','value' => set_value('AfterExcisedutyEDcess'),'id'=>'AfterExcisedutyEDcess', 'class' => 'form-control','readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
Excise duty S & H cess :(d)
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ExcisedutySHcess','value' => set_value('ExcisedutySHcess'),'id'=>'ExcisedutySHcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateexciseSHcess()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterExcisedutySHcess','value' => set_value('AfterExcisedutySHcess'),'id'=>'AfterExcisedutySHcess', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
Custom ED_cess : (e)
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CustomEDcess','value' => set_value('CustomEDcess'),'id'=>'CustomEDcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateCustomEdcess()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterCustomEDcess','value' => set_value('AfterCustomEDcess'),'id'=>'AfterCustomEDcess', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
Custom S & H cess : (f)
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CustomSHcess','value' => set_value('CustomSHcess'),'id'=>'CustomSHcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateCustomSHcess()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterCustomSHcess','value' => set_value('AfterCustomSHcess'),'id'=>'AfterCustomSHcess', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
Additional Excise duty : (g)
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AdditionalExciseduty ','value' => set_value('AdditionalExciseduty'),'id'=>'AdditionalExciseduty', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateaddlExciseDuty(),CalculateAvlModvat(),CalculateGrossExpense()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AfterAdditionalExciseduty','value' => set_value('AfterAdditionalExciseduty'),'id'=>'AfterAdditionalExciseduty', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-8">
|
||||
Gross duty payable
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Grossdutypayable ','value' => set_value('Grossdutypayable'),'id'=>'Grossdutypayable', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateAvlModvat()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-8">
|
||||
Available Modvat set-off on import :
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AvailableModvat','value' => set_value('AvailableModvat'),'id'=>'AvailableModvat', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?> (b + c + d + g)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-8">
|
||||
Gross expenses due to custom duty:
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Grossexpenses','value' => set_value('Grossexpenses'),'id'=>'Grossexpenses', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<center> <label>Cost of the product Per KG</label></center>
|
||||
<hr/>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
purchase rate [Basic]
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'purchaserate','value' => set_value('purchaserate'),'id'=>'purchaserate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" style="margin-top: -4.8%">
|
||||
<span>Quantity</span>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'PurQuantity','value' => set_value('PurQuantity'),'id'=>'PurQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'CalculateCtable()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-4">
|
||||
Custom Duty Expenses
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CustomDutyExpenses ','value' => set_value('CustomDutyExpenses'),'id'=>'CustomDutyExpenses', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
RMC Including Customers
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'RMCIncludingCustomers','value' => set_value('RMCIncludingCustomers'),'id'=>'RMCIncludingCustomers', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
Total Amount:
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'TotalExp','value' => set_value('TotalExp'),'id'=>'TotalExp', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-info font AddImport" ID="AddImport" ><i class="fa fa-plus"></i> <span class="bold">Add Import</span></a>
|
||||
<!--<a class="btn btn-primary font AddService" ID="AddService" ><i class="fa fa-plus"></i> <span class="bold">Add Service</span></a>-->
|
||||
|
||||
<a class="btn btn-info" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!--Edit modal body-->
|
||||
|
||||
@ -1116,22 +548,9 @@ body {
|
||||
<!--In this item code the value should come from DB , so it getting error , so i am disabling this div , once get the data from DB uncommand this div-->
|
||||
<div>
|
||||
<?php
|
||||
// $options = array("0"=>'Item Code');
|
||||
|
||||
|
||||
//if(!empty($MaterialList))
|
||||
//{
|
||||
// foreach ($MaterialList as $SID):
|
||||
|
||||
|
||||
// $options[$SID->MaterialCode] = $SID->MaterialCode.' '.' - '.' '.$SID->MaterialName;
|
||||
|
||||
//endforeach;
|
||||
//}
|
||||
|
||||
//echo form_dropdown('ImportMaterialCode', $options,set_value('ImportMaterialCode'),'id="ImportMaterialCode"' ,'class="form-control"');
|
||||
|
||||
$options = array("0"=>'Item Code');
|
||||
//print_r( $options);
|
||||
$options = array("0"=>'Item Code');
|
||||
|
||||
|
||||
|
||||
@ -1753,7 +1172,8 @@ body {
|
||||
|
||||
|
||||
}
|
||||
?> <input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $index;?>">
|
||||
$Rowcount = $index;
|
||||
?>
|
||||
<?php
|
||||
|
||||
}
|
||||
@ -1903,7 +1323,7 @@ body {
|
||||
<input type="hidden" name="txtPoRange" id="txtPoRange" />
|
||||
<input type="hidden" name="isEdit" id="isEdit" value="0" />
|
||||
<input type="hidden" name="txtStatus" id="txtStatus" />
|
||||
<input type="hidden" name="txtRowCount" id="txtRowCount" />
|
||||
<input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $Rowcount;?>" />
|
||||
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>"/>
|
||||
<input type="hidden" name="txtTotalorderValue" id="txtTotalorderValue" />
|
||||
|
||||
@ -1949,26 +1369,7 @@ body {
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<script type="text/html" id="ImportList">
|
||||
<tr id="<%=index%>">
|
||||
<td align="left"><%=index%></td>
|
||||
<td align="left"><%=ReqNo%></td>
|
||||
|
||||
<td align="left"><%=ItemName%></td>
|
||||
<td align="left"><%=Quantity%></td>
|
||||
<td align="left"><%=UOM%></td>
|
||||
<td align="left"><%=Rate%></td>
|
||||
<td align="left"><%=BasicAmount%></td>
|
||||
<!-- <td align="left"><%=Taxvalue%></td>
|
||||
<td align="left"><%=TotalValue%></td> -->
|
||||
|
||||
<td>
|
||||
<a data-target='#editimportpomodel' data-id="<%=index%>" data-userid="<%=index%>" data-toggle="modal" href="#editimportpomodel"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the <%=ReqNo%> Requisition details"></i> </a> <!-- <a href='#' onclick = "DeleteRow(<%=index%>)" class="link" data-id="<%=index%>" data-userid="<%=index%>" id="Del" ><span class="glyphicon glyphicon-trash"></span></a>-->
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
@ -1988,16 +1389,7 @@ var NilType = '<?php echo NILTYPE;?>';
|
||||
};
|
||||
|
||||
|
||||
var paymentday=<?php echo json_encode($PaymentDays,JSON_PRETTY_PRINT)?>;
|
||||
if (paymentday=="After")
|
||||
{
|
||||
|
||||
document.getElementById("After").checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("Before").checked = true;
|
||||
}
|
||||
|
||||
|
||||
$('#EditAvlBudAmt').val(<?php echo $AvlAmount; ?>);
|
||||
@ -2062,20 +1454,10 @@ $('#drpSupplier').change(function() {
|
||||
if(obj.SupplierID === id)
|
||||
{
|
||||
$("#SupAddress").val(obj.Address);
|
||||
$("#PayableAT").val(obj.PayableAT);
|
||||
//$("#PayableAT").val(obj.PayableAT);
|
||||
var a=obj.PaymentDays;
|
||||
console.log(a);
|
||||
if (a=="After")
|
||||
{
|
||||
//alert();
|
||||
document.getElementById("After").checked = true;
|
||||
|
||||
}
|
||||
else
|
||||
document.getElementById("Before").checked = true;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
@ -3073,13 +2455,13 @@ function EditCalculateCtable()
|
||||
var txtcustomdutyexp=0;
|
||||
var txtrmc=0;
|
||||
var total=0;
|
||||
var basicamt=0;
|
||||
basicamt=parseFloat($('#EdittxtBasicValue').val());
|
||||
$('#EditTotalExp').val(basicamt);
|
||||
var basicprice=0;
|
||||
basicprice=parseFloat($('#EdittxtBasicValue').val());
|
||||
$('#EditTotalExp').val(basicprice);
|
||||
var a=parseFloat($('#EditTotalExp').val());
|
||||
//console.log(a);
|
||||
//alert(basicamt);
|
||||
txtCtablequantity=parseFloat($('#EditPurQuantity').val());
|
||||
quantity=parseFloat($('#EditPurQuantity').val());
|
||||
txtbasicinrprice=parseFloat($('#EditAfterBasicPriceTax').val());
|
||||
//txtpurchaserate=txtbasicinrprice/txtCtablequantity;
|
||||
txtpurchaserate=<?php echo PURCHASE_RATE;?>;
|
||||
@ -3094,9 +2476,8 @@ function EditCalculateCtable()
|
||||
txtrmc=<?php echo RMC_CAL;?>;
|
||||
$('#EditRMCIncludingCustomers').val(txtrmc);
|
||||
total=<?php echo CALCULATE_TOTAL;?>;
|
||||
$('#EditTotalExp').val(basicamt);
|
||||
//var a=parseFloat($('#EditTotalExp').val());
|
||||
//console.log(basicamt);
|
||||
$('#EditTotalExp').val(basicprice);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -3207,10 +2588,10 @@ $('#txtToatlOrder').val((parseFloat(TotalOrder) + parseFloat(totalexp)).toFixed(
|
||||
|
||||
|
||||
|
||||
$("#editimportpomodel").on("shown.bs.modal", function(e) {
|
||||
$('#editimportpomodel').on("shown.bs.modal", function(e) {
|
||||
|
||||
userid = $(e.relatedTarget).data('userid');
|
||||
|
||||
// alert('test'+userid);
|
||||
|
||||
var tr = document.getElementById(userid);
|
||||
|
||||
@ -3491,15 +2872,9 @@ TotalGrossExpense = parseFloat(TotalGrossExpense ) + parseFloat(Grossexpenses);
|
||||
|
||||
function Save(status)
|
||||
{
|
||||
//alert('Inside Save');
|
||||
if(status == '0')
|
||||
{
|
||||
stat = '<?php echo PO_DRAFT; ?>';
|
||||
}
|
||||
else
|
||||
{
|
||||
stat = '<?php echo PO_CREATED; ?>';
|
||||
}
|
||||
|
||||
stat = '<?php echo PO_RELEASED; ?>';
|
||||
|
||||
|
||||
$('#txtStatus').val(stat);
|
||||
|
||||
@ -3522,7 +2897,7 @@ if(validate())
|
||||
|
||||
$('#content').loader('show');
|
||||
$.ajax({
|
||||
data:$('.ImportPO').serialize()+"&txtRowCount="+txtRowCount+"&txtDeletedRow="+txtDeletedRow+"&textStatus="+stat,
|
||||
data:$('.ImportPO').serialize(),
|
||||
|
||||
//data:$('.CreatealterPO').serialize()+"&TextRowCount="+TextRowCount+"&TextDeQletedRowCount="+TextDeletedRowCount+"&TextTotalOrderValueSummaryService="+TextTotalOrderValueSummaryService+"&TextSpcialInstruction="+TextSpcialInstruction+"&TextExchangerate"+ExcLandingCharge="+hangerate+"Status="+TextStatus,
|
||||
type:"POST",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user