import changes
This commit is contained in:
parent
70c4424389
commit
abe7cf136c
@ -1207,15 +1207,15 @@ function addNewImportPurchaseOrder()
|
||||
$DeliverySchedule = '';
|
||||
}
|
||||
|
||||
$PaymentDate=$this->input->post('Payment');
|
||||
if($PaymentDate==1)
|
||||
{
|
||||
$PaymentDays='After';
|
||||
}
|
||||
else
|
||||
{
|
||||
$PaymentDays='Before';
|
||||
}
|
||||
// $PaymentDate=$this->input->post('Payment');
|
||||
// if($PaymentDate==1)
|
||||
// {
|
||||
// $PaymentDays='After';
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $PaymentDays='Before';
|
||||
// }
|
||||
|
||||
//echo $PaymentDays;
|
||||
//die();
|
||||
@ -1240,11 +1240,11 @@ function addNewImportPurchaseOrder()
|
||||
$CurrencyType=$this->input->post('currencytype');
|
||||
|
||||
$PaymentTerms=$this->input->post('PaymentTerms');
|
||||
$Payableat=$this->input->post('PayableAT');
|
||||
// $Payableat=$this->input->post('PayableAT');
|
||||
|
||||
|
||||
|
||||
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'PayableAT'=>$Payableat,'PaymentDays'=>$PaymentDays,'POType'=>$POType);
|
||||
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'POType'=>$POType);
|
||||
|
||||
//print_r($POList);
|
||||
//die();
|
||||
@ -1392,15 +1392,15 @@ $createddt='';
|
||||
$Deliverydt = $this->getDateformat($dt);
|
||||
$DeliverySchedule = '';
|
||||
}
|
||||
$PaymentDate=$this->input->post('Payment');
|
||||
if($PaymentDate==1)
|
||||
{
|
||||
$PaymentDays='After';
|
||||
}
|
||||
else
|
||||
{
|
||||
$PaymentDays='Before';
|
||||
}
|
||||
// $PaymentDate=$this->input->post('Payment');
|
||||
// if($PaymentDate==1)
|
||||
// {
|
||||
// $PaymentDays='After';
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $PaymentDays='Before';
|
||||
// }
|
||||
|
||||
$SpcialInstruction = $this->input->post('txtSpcialInstruction');
|
||||
$TotalOrder = $this->input->post('txtToatlOrder');
|
||||
@ -1417,10 +1417,10 @@ $createddt='';
|
||||
$updateddt = $dt->format('Y-m-d H:i:s');
|
||||
|
||||
$PaymentTerms=$this->input->post('PaymentTerms');
|
||||
$Payableat=$this->input->post('PayableAT');
|
||||
// $Payableat=$this->input->post('PayableAT');
|
||||
// PO Master
|
||||
// PO Master
|
||||
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$updateddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'PayableAT'=>$Payableat,'PaymentDays'=>$PaymentDays);
|
||||
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$updateddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms);
|
||||
//echo $PONO;
|
||||
//echo $TotalOrder;
|
||||
//print_r($POList);
|
||||
|
||||
@ -692,14 +692,19 @@ function GetImportPurchaseOrderDetails($PONO = '')
|
||||
{
|
||||
|
||||
$subQuery ='SELECT distinct LineItem.LineItemNo,Req.ReqNo,Mat.MaterialCode,Mat.MaterialName,
|
||||
Mat.UOM,Quantity,Rate,Req.Status,ROUND((Quantity *Rate),2 ) as BasicValue ,
|
||||
ROUND((RMCIncludingCustomersPerKG*Quantity),2)as Taxamount,LandingCharge,HighSeasSalesCharge,CustomDuty,ExciseDuty,ExciseDutyEdCess,CustomEdCess,POMast.ExchangeRate,AfterLandingCharge,AfterHighSeasSalesCharge,AfterCustomDuty,AfterExciseDuty,AfterExciseDutyEdCess,AddlExciseDuty,AfterAddlExciseDuty,Grossdutypayable,AvailableModvat,Grossexpensesduetocustomduty,purchaseratePerKG,CustomDutyExpensesPerKG,RMCIncludingCustomersPerKG,QuantityKG,BasicPriceInMTon,ProductPrice,CustomSHCess,AfterCustomSHCess,AfterExciseDutySHCess,ExciseDutySHCess,AfterCustomEdCess,ROUND((Quantity *Rate)+(RMCIncludingCustomersPerKG*Quantity),2)as TotalOrderValue,ROUND((POMast.ExchangeRate*BasicPriceInMTon),2) as BasicINRValue,TotalValue,CurrencyType,
|
||||
Mat.UOM,Quantity,Rate,Req.Status,ROUND((Quantity *Rate),2 ) as BasicValue,ActualQuantityReceived,
|
||||
QuantityRejected,ROUND(ActualQuantityReceived-QuantityRejected)as PendingQty,
|
||||
ROUND((RMCIncludingCustomersPerKG*Quantity),2)as Taxamount,LandingCharge,HighSeasSalesCharge,CustomDuty,ExciseDuty,ExciseDutyEdCess,CustomEdCess,POMast.ExchangeRate,AfterLandingCharge,AfterHighSeasSalesCharge,AfterCustomDuty,AfterExciseDuty,AfterExciseDutyEdCess,AddlExciseDuty,AfterAddlExciseDuty,Grossdutypayable,AvailableModvat,Grossexpensesduetocustomduty,purchaseratePerKG,CustomDutyExpensesPerKG,RMCIncludingCustomersPerKG,QuantityKG,BasicPriceInMTon,ProductPrice,CustomSHCess,AfterCustomSHCess,AfterExciseDutySHCess,ExciseDutySHCess,AfterCustomEdCess,ROUND((Quantity *Rate)+(RMCIncludingCustomersPerKG*Quantity),2)as TotalOrderValue,ROUND((POMast.ExchangeRate*BasicPriceInMTon),2) as BasicINRValue,TotalValue,CurrencyType,ReceivedQuantity,
|
||||
|
||||
Req.CostCenterCode,Dept.DepartmentName FROM T_PurchaseOrder_LineItem LineItem
|
||||
join T_PurchaseOrder_Master POMast on POMast.PONO = LineItem.PONO
|
||||
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
|
||||
join T_Import_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo
|
||||
join T_Requestion_Master Req on Req.ReqNo = LineItem.ReqNo
|
||||
join T_Employee_Details emp on Req.Requestedby = emp.EmpID
|
||||
|
||||
left join T_MRIR_Details Det on Det.MaterialCode=LineItem.MaterialCode
|
||||
|
||||
join T_DepartmentDetails Dept on emp.Departmentcode = Dept.DEPCode where LineItem.PONO =?';
|
||||
//print_r($subQuery);
|
||||
|
||||
|
||||
@ -4,6 +4,7 @@ $ReqType ='';
|
||||
$Value='';
|
||||
$EXCRATE=0;
|
||||
$parentPO= '';
|
||||
$ServiceDescription='';
|
||||
//$Value="$";
|
||||
//echo $ExchangeRate;
|
||||
//echo $Currency;
|
||||
@ -498,7 +499,7 @@ body {
|
||||
<label class="radio-inline"><input type="radio" name="Payment" value="Before">Before</label>
|
||||
<label class="radio-inline"><input type="radio" name="Payment" value="After">After</label>
|
||||
</div> -->
|
||||
<div class="col-md-3">
|
||||
<!-- <div class="col-md-3">
|
||||
<span>Payable AT</span>
|
||||
|
||||
<?php
|
||||
@ -506,9 +507,9 @@ body {
|
||||
echo form_input($data);
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div class="col-md-6">
|
||||
<!-- <div class="col-md-6">
|
||||
Payment Date <br/>
|
||||
<tr>
|
||||
<td>
|
||||
@ -518,7 +519,7 @@ body {
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -529,10 +530,15 @@ body {
|
||||
<table class="table table-bordered" style="border:1px solid #333">
|
||||
<div align="right" style="padding-right:10px">
|
||||
<div align="right">
|
||||
<?php if ($parentPO == '') { ?>
|
||||
<a data-toggle="modal" data-target="#importpomodel" class="btn btn-primary" data-dismiss="modal" onclick="myFunction();" >Add Line Item </a>
|
||||
|
||||
<?php } ?>
|
||||
<?php
|
||||
|
||||
if($PONOStatus == PO_RELEASED)
|
||||
{?>
|
||||
<!-- <a data-toggle="modal" data-target="#importpomodel" class="btn btn-primary" data-dismiss="modal" onclick="myFunction();" >Add Line Item </a> -->
|
||||
<?php
|
||||
} else {?>
|
||||
<a data-toggle="modal" data-target="#importpomodel" class="btn btn-primary" data-dismiss="modal" onclick="myFunction();" >Add Line Item </a><?php
|
||||
}?>
|
||||
|
||||
|
||||
<!--<a data-toggle="modal"><button type="submit" onclick="myFunction();" class="btn btn-primary" id="abcd" >Select Line Item</button> </a>-->
|
||||
@ -1629,6 +1635,542 @@ body {
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- view model body -->
|
||||
<div id="viewimportmodal" 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>View 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
|
||||
|
||||
$data = array('name' => 'ViewReqNo','value' => set_value('ViewReqNo'),'id'=>'ViewReqNo', 'class' => 'form-control','readonly'=>'true');
|
||||
echo form_input($data);?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>Department Name</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewdeptName','value' => set_value('ViewdeptName'),'id'=>'ViewdeptName', '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('EditCostCenter', $options,set_value('EditCostCenter'),'id="EditCostCenter"' ,'class="form-control"');
|
||||
|
||||
$data = array('name' => 'ViewCostCenter','value' => set_value('ViewCostCenter'),'id'=>'ViewCostCenter', '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' => 'ViewAvlBudAmt','value' => set_value('ViewAvlBudAmt'),'id'=>'ViewAvlBudAmt', '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('ViewMaterialCode', $options,set_value('ViewMaterialCode'),'id="ViewMaterialCode"' ,'class="form-control"');
|
||||
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label>Item Name</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewItemName','value' => set_value('ViewItemName'),'id'=>'ViewItemName', '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' => 'ViewUOM','value' => set_value('ViewUOM'),'id'=>'ViewUOM', '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' => 'ViewQuantity','value' => set_value('ViewQuantity'),'id'=>'ViewQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange(),ExceedEditQuantityCheck()');
|
||||
echo form_input($data);
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<!-- <label>Rate </label> -->
|
||||
|
||||
<P id=labelEditRate> <label><?php echo "Rate in $Currencycode ($Value)";?>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewRate','value' => set_value('ViewRate'),'id'=>'ViewRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'EditRatechange()' );
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<!-- <label><?php echo "Basic Value In";?></label>-->
|
||||
<p id=label3><label><?php echo "Basic Value In $Currencycode ($Value)";?></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' => 'ViewtxtBasicValue','value' => set_value('ViewtxtBasicValue'),'id'=>'ViewtxtBasicValue', '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=labelEditBasicPriceUs><b><?php echo "Basic Price in $Currencycode ($Value)"?></p>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewimBasicPrice','value' => set_value('ViewimBasicPrice'),'id'=>'ViewimBasicPrice', 'class' => 'form-control' ,'placeholder '=>'basic price','onkeypress'=>'return isNumberKey(event);','readonly'=>'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
|
||||
Exchange Rate :
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewExchangeRt','value' => set_value('ViewExchangeRt'),'id'=>'ViewExchangeRt', '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=labelEditBasicINR><label><?php echo "Basic value in INR :";?></label></p>
|
||||
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewINRBasicvalue','value' => set_value('ViewINRBasicvalue'),'id'=>'ViewINRBasicvalue', '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' => 'ViewBasicPriceTax','value' => set_value('ViewBasicPriceTax'),'id'=>'ViewBasicPriceTax', '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' => 'ViewAfterBasicPriceTax','value' => set_value('ViewAfterBasicPriceTax'),'id'=>'ViewAfterBasicPriceTax', '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' => 'ViewLandingCharge','value' => set_value('ViewLandingCharge'),'id'=>'ViewLandingCharge', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateloadingcharge()');
|
||||
echo form_input($data);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterLandingCharge','value' => set_value('ViewAfterLandingCharge'),'id'=>'ViewAfterLandingCharge', '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' => 'ViewHighseas ','value' => set_value('ViewHighseas'),'id'=>'ViewHighseas', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateHighseassalescharge()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterHighseas','value' => set_value('ViewAfterHighseas'),'id'=>'ViewAfterHighseas', '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' => 'ViewCustomduty','value' => set_value('ViewCustomduty'),'id'=>'ViewCustomduty', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateCustomduty()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterCustomduty','value' => set_value('ViewAfterCustomduty'),'id'=>'ViewAfterCustomduty', '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' => 'ViewExcisedutyTax','value' => set_value('ViewExcisedutyTax'),'id'=>'ViewExcisedutyTax', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateExciseDuty()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterExcisedutyTax','value' => set_value('ViewAfterExcisedutyTax'),'id'=>'ViewAfterExcisedutyTax', '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' => 'ViewExcisedutyEDcess','value' => set_value('ViewExcisedutyEDcess'),'id'=>'ViewExcisedutyEDcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateExciseED1()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterExcisedutyEDcess','value' => set_value('ViewAfterExcisedutyEDcess'),'id'=>'ViewAfterExcisedutyEDcess', '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' => 'ViewExcisedutySHcess','value' => set_value('ViewExcisedutySHcess'),'id'=>'ViewExcisedutySHcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateexciseSHcess()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterExcisedutySHcess','value' => set_value('ViewAfterExcisedutySHcess'),'id'=>'ViewAfterExcisedutySHcess', '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' => 'ViewCustomEDcess','value' => set_value('ViewCustomEDcess'),'id'=>'ViewCustomEDcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateCustomEdcess()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterCustomEDcess','value' => set_value('ViewAfterCustomEDcess'),'id'=>'ViewAfterCustomEDcess', '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' => 'ViewCustomSHcess','value' => set_value('ViewCustomSHcess'),'id'=>'ViewCustomSHcess', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateCustomSHcess()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterCustomSHcess','value' => set_value('ViewAfterCustomSHcess'),'id'=>'ViewAfterCustomSHcess', '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' => 'ViewAdditionalExciseduty ','value' => set_value('ViewAdditionalExciseduty'),'id'=>'ViewAdditionalExciseduty', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateaddlExciseDuty(),EditCalculateAvlModvat(),EditCalculateGrossExpense()');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ViewAfterAdditionalExciseduty','value' => set_value('ViewAfterAdditionalExciseduty'),'id'=>'ViewAfterAdditionalExciseduty', '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' => 'ViewGrossdutypayable ','value' => set_value('ViewGrossdutypayable'),'id'=>'ViewGrossdutypayable', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);');
|
||||
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' => 'ViewAvailableModvat','value' => set_value('ViewAvailableModvat'),'id'=>'ViewAvailableModvat', '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' => 'ViewGrossexpenses','value' => set_value('ViewGrossexpenses'),'id'=>'ViewGrossexpenses', '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' => 'Viewpurchaserate','value' => set_value('Viewpurchaserate'),'id'=>'Viewpurchaserate', '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' => 'ViewPurQuantity','value' => set_value('ViewPurQuantity'),'id'=>'ViewPurQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditCalculateCtable()');
|
||||
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' => 'ViewCustomDutyExpenses ','value' => set_value('ViewCustomDutyExpenses'),'id'=>'ViewCustomDutyExpenses', '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' => 'ViewRMCIncludingCustomers','value' => set_value('ViewRMCIncludingCustomers'),'id'=>'ViewRMCIncludingCustomers', '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' => 'ViewTotalExp','value' => set_value('ViewTotalExp'),'id'=>'ViewTotalExp', '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 EditImport" ID="EditImport" ><i class="fa fa-plus" ></i> <span class="bold">Edit 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>
|
||||
@ -1645,11 +2187,15 @@ body {
|
||||
<tr>
|
||||
<th>SNo</th>
|
||||
<th>Requisition No</th>
|
||||
<th>Item Name</th>
|
||||
<th>Material Code</th>
|
||||
<th>Description</th>
|
||||
<th>Quantity</th>
|
||||
<th>UOM</th>
|
||||
<th>Rate</th>
|
||||
<th>Basic Amount</th>
|
||||
<th>Received Qty</th>
|
||||
<th>Rejected Qty</th>
|
||||
<th>Pending Qty</th>
|
||||
<!-- <th>Tax Amount</th>
|
||||
<th>Total Order Amount</th> -->
|
||||
<th>Action</th>
|
||||
@ -1671,12 +2217,16 @@ body {
|
||||
?>
|
||||
<tr id="<?php echo $index ; ?>">
|
||||
<td align="left"><?php echo $index ; ?></td>
|
||||
<td><?php echo $record->ReqNo ?></td>
|
||||
<td><?php echo $record->ReqNo ?></td>
|
||||
<td><?php echo $record->MaterialCode ?></td>
|
||||
<td><?php echo $record->MaterialName?></td>
|
||||
<td><?php echo $record->Quantity ?></td>
|
||||
<td><?php echo $record->UOM ?></td>
|
||||
<td><?php echo $record->Rate ?></td>
|
||||
<td><?php echo $record->BasicValue ?></td>
|
||||
<td><?php echo $record->BasicValue ?></td>
|
||||
<td><?php echo $record->ActualQuantityReceived ?></td>
|
||||
<td><?php echo $record->QuantityRejected ?></td>
|
||||
<td><?php echo $record->PendingQty?></td>
|
||||
<!-- <td><?php echo $record->Taxamount?></td>
|
||||
<td><?php echo $record->TotalOrderValue?></td> -->
|
||||
|
||||
@ -1759,16 +2309,18 @@ body {
|
||||
<input type="hidden" name="<?php echo 'BasicINRValue'.$index ?>" id="<?php echo 'BasicINRValue'.$index ?>" value="<?php echo $record->BasicINRValue; ?>" />
|
||||
|
||||
<input type="hidden" name="<?php echo 'TotalValue'.$index ?>" id="<?php echo 'TotalValue'.$index ?>" value="<?php echo $record->ProductPrice; ?>" />
|
||||
<input type="hidden" name="<?php echo 'ExchangeRate'.$index ?>" id="<?php echo 'ExchangeRate'.$index ?>" value="<?php echo $record->ExchangeRate; ?>" />
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
if($PONOStatus == PO_DRAFT)
|
||||
if($PONOStatus != PO_RELEASED)
|
||||
{?>
|
||||
<td> <a data-target='#editimportpomodel' data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" data-toggle="modal" href="#editimportpomodel"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the <?php echo $record->ReqNo ; ?> Requisition details"></i> </a> <a href='#' onclick = "DeleteRow(<?php echo $index ; ?>)" class="link" data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" id="Del" ><span class="glyphicon glyphicon-trash"></span></a>
|
||||
<?php
|
||||
} else {?>
|
||||
<td> <a data-toggle="tooltip" href="#"><i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->ReqNo; ?> - Click here to view Requistion details"></i> </a> </td>
|
||||
<td> <a data-target='#viewimportmodal' data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" data-toggle="modal" href="#viewimportmodal"><i class="fa fa-eye" data-toggle="tooltip" title="Click here to view the <?php echo $record->ReqNo ; ?>Click here to view Requisition details"></i> </a> </td>
|
||||
<?php
|
||||
}?>
|
||||
</tr> <?php
|
||||
@ -1793,6 +2345,7 @@ body {
|
||||
$ExchangeRate=$record->ExchangeRate;
|
||||
//$totorder=$totorder+$record->ProductPrice;
|
||||
$totorder=$totorder+$record->ProductPrice;
|
||||
//$ServiceDescription=$record->ServiceDescription;
|
||||
|
||||
//alert($totorder);
|
||||
|
||||
@ -1964,12 +2517,14 @@ body {
|
||||
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>"/>
|
||||
|
||||
|
||||
<?php if($PONOStatus == PO_DRAFT) {?>
|
||||
<?php if($PONOStatus != PO_RELEASED) {?>
|
||||
<a class="btn btn-primary Save" ID="Save" onclick="Save(0)" > <span class="bold">Save</span></a>
|
||||
<a class="btn btn-primary Submit" ID="Submit" onclick="Save(1)" > <span class="bold">Submit</span></a>
|
||||
<input type="reset" class="btn btn-primary" value="Reset">
|
||||
<?php }else {?>
|
||||
<input type="reset" class="btn btn-primary" value = "OK"> <?php } ?>
|
||||
<!-- <input type="reset" class="btn btn-primary" value = "OK"> -->
|
||||
<a class="btn btn-primary" href="<?php echo base_url(); ?>purchaseorderListing">OK</a>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<br/>
|
||||
@ -2030,6 +2585,20 @@ body {
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#Date').click(function () {
|
||||
//for Date range selection
|
||||
$('#Schedulediv').hide();
|
||||
$('#Deliverydtdiv').show();
|
||||
});
|
||||
$('#Schedule').click(function () {
|
||||
//for schedule range selection
|
||||
$('#Deliverydtdiv').hide();
|
||||
$('#Schedulediv').show();
|
||||
});
|
||||
});
|
||||
|
||||
var SelectedMaterialCode = [];
|
||||
var RequistQuantity = '';
|
||||
var AvilBudAmt = '';
|
||||
@ -3322,6 +3891,112 @@ $('.AddImport').click(function()
|
||||
});
|
||||
|
||||
|
||||
|
||||
$("#viewimportmodal").on("shown.bs.modal", function(e) {
|
||||
|
||||
// alert();
|
||||
userid = $(e.relatedTarget).data('userid');
|
||||
//alert(userid);
|
||||
//alert('inadd');
|
||||
|
||||
var tr= document.getElementById(userid);
|
||||
//alert(tr);
|
||||
var cellval = tr.cells;
|
||||
//alert(cellval);
|
||||
var id= $('#Reqnumber'+userid).val();
|
||||
//alert(id);
|
||||
//var a=$('#Reqnumber'+userid).val();
|
||||
//alert(a)
|
||||
$('#ViewReqNo').val($('#Reqnumber'+userid).val());
|
||||
|
||||
$('#ViewdeptName').val($('#departmentName'+userid).val());
|
||||
$("#ViewCostCenter").val($('#costCode'+userid).val());
|
||||
// $('#EditAvlBudAmt').val($('#AvilBudget'+userid).val());
|
||||
|
||||
$('#ViewItemName').val($('#materialName'+userid).val());
|
||||
$('#ViewUOM').val($('#uom'+userid).val());
|
||||
$('#ViewQuantity').val($('#quantity'+userid).val());
|
||||
//RequistQuantity = $('#quantity'+userid).val();
|
||||
$('#ViewRate').val($('#itemRate'+userid).val());
|
||||
$('#ViewtxtBasicValue').val($('#ProductPrice'+userid).val());
|
||||
$('#ViewBasicPrice').val($("#BasicINRValue"+userid).val());
|
||||
$('#ViewimBasicPrice').val($("#BasicPriceInMTon"+userid).val());
|
||||
$('#ViewLandingCharge').val($("#LandingCharge"+userid).val());
|
||||
$('#ViewAfterLandingCharge').val($("#AfterLandingCharge"+userid).val());
|
||||
$('#ViewHighseas').val($("#HighSeasSalesCharge"+userid).val());
|
||||
$('#ViewAfterHighseas').val($("#AfterHighSeasSalesCharge"+userid).val());
|
||||
$('#ViewCustomduty').val($("#CustomDuty"+userid).val());
|
||||
$('#ViewAfterCustomduty').val($("#AfterCustomDuty"+userid).val());
|
||||
$('#ViewExcisedutyTax').val($("#ExciseDuty"+userid).val());
|
||||
$('#ViewAfterExcisedutyTax').val($("#AfterExciseDuty"+userid).val());
|
||||
$('#ViewExcisedutyEDcess').val($("#ExciseDutyEdCess"+userid).val());
|
||||
$('#ViewAfterExcisedutyEDcess').val($("#AfterExciseDutyEdCess"+userid).val());
|
||||
$('#ViewExcisedutySHcess').val($("#ExciseDutySHCess"+userid).val());
|
||||
$('#ViewAfterExcisedutySHcess').val($("#AfterExciseDutySHCess"+userid).val());
|
||||
|
||||
$('#ViewCustomEDcess').val($("#CustomEdCess"+userid).val());
|
||||
$('#ViewAfterCustomEDcess').val($("#AfterCustomEdCess"+userid).val());
|
||||
$('#ViewCustomSHcess').val($("#CustomSHCess"+userid).val());
|
||||
$('#ViewAfterCustomSHcess').val($("#AfterCustomSHCess"+userid).val());
|
||||
$('#ViewAdditionalExciseduty').val($("#AddlExciseDuty"+userid).val());
|
||||
$('#ViewAfterAdditionalExciseduty').val($("#AfterAddlExciseDuty"+userid).val());
|
||||
$('#ViewGrossdutypayable').val($("#Grossdutypayable"+userid).val());
|
||||
$('#ViewGrossexpenses').val($("#Grossexpensesduetocustomduty"+userid).val());
|
||||
$('#ViewPurQuantity').val($("#QuantityKG"+userid).val());
|
||||
$('#Viewpurchaserate').val($("#purchaseratePerKG"+userid).val());
|
||||
$('#ViewCustomDutyExpenses').val($("#CustomDutyExpensesPerKG"+userid).val());
|
||||
$('#ViewRMCIncludingCustomers').val($("#RMCIncludingCustomersPerKG"+userid).val());
|
||||
$('#ViewAfterBasicPriceTax').val($("#BasicINRValue"+userid).val());
|
||||
$('#ViewAvailableModvat').val($("#AvailableModvat"+userid).val());
|
||||
$('#ViewTotalExp').val($("#TotalValue"+userid).val());
|
||||
$('#ViewINRBasicvalue').val($("#BasicINRValue"+userid).val());
|
||||
|
||||
$('#ViewTotalOrderValue').val(cellval[6].innerHTML);
|
||||
$("#ViewMaterialCode").empty();
|
||||
var Material = <?php echo json_encode($MaterialList, JSON_PRETTY_PRINT) ?>;
|
||||
$("#ViewMaterialCode").append( $('<option></option>').val($('#materialCode'+userid).val()).html($('#materialCode'+userid).val() + "-" + $('#materialName'+userid).val() ) );
|
||||
var isAdded = "0";
|
||||
for(i=0;i<Material.length;i++)
|
||||
{
|
||||
$.each(Material[i], function(idx, obj) {
|
||||
|
||||
if(obj.ReqNo === id )
|
||||
{
|
||||
|
||||
$.each(SelectedMaterialList.Mat, function(idx1, el){
|
||||
if (id == el.ReqNo )
|
||||
{
|
||||
|
||||
if(el.materialCode == obj.MaterialCode)
|
||||
{
|
||||
isAdded = "1";
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
isAdded = "0";
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
if(isAdded == "0")
|
||||
{
|
||||
|
||||
$("#EditMaterialCode").append( $('<option></option>').val(obj.MaterialCode).html(obj.MaterialCode + "-" + obj.MaterialName));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
function validateImport()
|
||||
{
|
||||
//alert();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user