import
This commit is contained in:
parent
61db6d8e3a
commit
b5e2cb7a3a
@ -379,6 +379,7 @@ class purchaseorder extends BaseController
|
||||
$currencycode=$Detail->Currency_Code;
|
||||
}
|
||||
//print_r($unicode);
|
||||
$currencycode='';
|
||||
$data['unicode']=$unicode;
|
||||
$data['currencycode']=$currencycode;
|
||||
$this->global['pageTitle'] = 'Siddharth : Edit Import Purchase order form';
|
||||
@ -1181,7 +1182,7 @@ public function importpoprint($PONO)
|
||||
|
||||
function addNewImportPurchaseOrder()
|
||||
{//echo ("ggh");
|
||||
|
||||
//die();
|
||||
$POdt =$this->input->post('PODate');
|
||||
$PODate = $this->getDateformat($POdt);
|
||||
$SupplierID = $this->input->post('drpSupplier');
|
||||
@ -1201,15 +1202,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();
|
||||
@ -1233,11 +1234,11 @@ function addNewImportPurchaseOrder()
|
||||
$ExchangeRateCalculatedon=$this->input->post('Exchangerateon');
|
||||
$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();
|
||||
@ -1413,7 +1414,7 @@ $createddt='';
|
||||
$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);
|
||||
|
||||
@ -670,7 +670,7 @@ 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,
|
||||
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
|
||||
|
||||
@ -68,21 +68,21 @@ $DeliveryAddress ='';
|
||||
$PONOStatus='';
|
||||
$PONO = '';
|
||||
$ServiceDescription = '';
|
||||
$TotalLanding='';
|
||||
$tothighseas='';
|
||||
$totcustom='';
|
||||
$totexciseduty='';
|
||||
$totexcisedutyED='';
|
||||
$totexciseSH='';
|
||||
$totcustomED='';
|
||||
$totcustomSH='';
|
||||
$totaddtnlexcise='';
|
||||
$totgrossduty='';
|
||||
$totavlmodvat='';
|
||||
$totgrossexpense='';
|
||||
$totordervalue='';
|
||||
$ExchangeRate='';
|
||||
$totorder='';
|
||||
$TotalLanding=0;
|
||||
$tothighseas=0;
|
||||
$totcustom=0;
|
||||
$totexciseduty=0;
|
||||
$totexcisedutyED=0;
|
||||
$totexciseSH=0;
|
||||
$totcustomED=0;
|
||||
$totcustomSH=0;
|
||||
$totaddtnlexcise=0;
|
||||
$totgrossduty=0;
|
||||
$totavlmodvat=0;
|
||||
$totgrossexpense=0;
|
||||
$totordervalue=0;
|
||||
$ExchangeRate=0;
|
||||
$totorder=0;
|
||||
$Cur='';
|
||||
$Currency_Type='';
|
||||
$PayableAT='';
|
||||
@ -501,7 +501,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
|
||||
@ -521,7 +521,7 @@ body {
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -532,8 +532,15 @@ body {
|
||||
<table class="table table-bordered" style="border:1px solid #333">
|
||||
<div align="right" style="padding-right:10px">
|
||||
<div align="right">
|
||||
<a data-toggle="modal" data-target="#importpomodel" class="btn btn-primary" data-dismiss="modal" onclick="myFunction();" >Add Line Item </a>
|
||||
|
||||
<?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
|
||||
}?>
|
||||
|
||||
|
||||
|
||||
@ -671,7 +678,7 @@ body {
|
||||
</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">
|
||||
@ -1632,7 +1639,545 @@ body {
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</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>
|
||||
|
||||
<!-- Finish of view model body -->
|
||||
</div>
|
||||
|
||||
|
||||
@ -1647,11 +2192,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>
|
||||
@ -1673,12 +2222,15 @@ 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->ReceivedQuantity ?></td>
|
||||
<td><?php echo $record->ReceivedQuantity ?></td>
|
||||
<!-- <td><?php echo $record->Taxamount?></td>
|
||||
<td><?php echo $record->TotalOrderValue?></td> -->
|
||||
|
||||
@ -1765,12 +2317,16 @@ body {
|
||||
|
||||
<?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-toggle="tooltip" data-target='#viewimportmodal'><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
|
||||
@ -1966,13 +2522,16 @@ 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/>
|
||||
</div>
|
||||
@ -2012,12 +2571,16 @@ body {
|
||||
<tr id="<%=index%>">
|
||||
<td align="left"><%=index%></td>
|
||||
<td align="left"><%=ReqNo%></td>
|
||||
<td align="left"><%=MaterialCode%></td>
|
||||
|
||||
<td align="left"><%=ItemName%></td>
|
||||
<td align="left"><%=Description%></td>
|
||||
<td align="left"><%=Quantity%></td>
|
||||
<td align="left"><%=UOM%></td>
|
||||
<td align="left"><%=Rate%></td>
|
||||
<td align="left"><%=BasicAmount%></td>
|
||||
<td align="left"><%=ReceivedQty%></td>
|
||||
<td align="left"><%=RejectedQty%></td>
|
||||
<td align="left"><%=PendingQty%></td>
|
||||
<!-- <td align="left"><%=Taxvalue%></td>
|
||||
<td align="left"><%=TotalValue%></td> -->
|
||||
|
||||
@ -2032,6 +2595,21 @@ 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 = '';
|
||||
@ -2327,6 +2905,7 @@ function EditRatechange()
|
||||
|
||||
|
||||
|
||||
|
||||
function Ratechange(){
|
||||
//alert();
|
||||
if($('#ReqNo').val() == "0")
|
||||
@ -2355,7 +2934,28 @@ function Ratechange(){
|
||||
var txtQuantity = parseFloat( $('#Quantity').val());
|
||||
var txtUnitPrice = parseFloat($('#Rate').val());
|
||||
var Tot = txtQuantity * txtUnitPrice
|
||||
$('#txtBasicValue').val(Tot);
|
||||
$('#txtBasicValue').val(Math.round(Tot));
|
||||
$('#imBasicPrice').val(Math.round(Tot));
|
||||
|
||||
|
||||
var txtbasics=parseFloat($('#imBasicPrice').val());
|
||||
var txtexchangerate=parseFloat($('#ExchangeRate').val());
|
||||
$('#ExchangeRt').val(txtexchangerate);
|
||||
var txtINRvalue=txtbasics*txtexchangerate;
|
||||
$('#INRBasicvalues').val(txtINRvalue)
|
||||
$('#INRBasicvalue').val(Math.round(txtINRvalue));
|
||||
$('#BasicPriceTax').val(txtINRvalue);
|
||||
//txtINR = Math.ceil(txtINR*10)/10;
|
||||
txtINR = Math.round(txtINRvalue);
|
||||
//alert(txtINR);BasicPriceTax
|
||||
|
||||
$('#AfterBasicPriceTax').val(txtINR);
|
||||
$('#imBasicPrice').val(txtbasics);
|
||||
$('#ExchangeRt').val(txtexchangerate);
|
||||
$('#EditAfterBasicPriceTax').val(txtINR);
|
||||
$('#EditimBasicPrice').val(txtbasics);
|
||||
$('#EditExchangeRt').val(txtexchangerate);
|
||||
$('#EditINRBasicvalue').val(txtINRvalue);
|
||||
}
|
||||
}
|
||||
|
||||
@ -3229,6 +3829,9 @@ $('.AddImport').click(function()
|
||||
var purate=$("#purchaserate").val();
|
||||
var CustomDutyExpense=$("#CustomDutyExpenses").val();
|
||||
var RMCIncluderate=$("#RMCIncludingCustomers").val();
|
||||
var receivedqty='';
|
||||
var rejectedqty='';
|
||||
var pendingqty='';
|
||||
$('#MaterialCode option[value='+materialCode+']').remove();
|
||||
|
||||
|
||||
@ -3249,7 +3852,7 @@ $('.AddImport').click(function()
|
||||
|
||||
//alert('in');
|
||||
var template = jQuery("#ImportList").html();
|
||||
$('#ImportAppend').append(_.template(template,{index:temp,ReqNo:Reqnumber,ItemName:materialName,Quantity:quantity,UOM:uom,Rate:itemRate,BasicAmount:BasicAmt,Taxvalue:taxamt,TotalValue:totalexp}));
|
||||
$('#ImportAppend').append(_.template(template,{index:temp,ReqNo:Reqnumber,MaterialCode:materialCode,Description:materialName,Quantity:quantity,UOM:uom,Rate:itemRate,BasicAmount:BasicAmt,Taxvalue:taxamt,TotalValue:totalexp,ReceivedQty:receivedqty,RejectedQty:rejectedqty,PendingQty:pendingqty}));
|
||||
//alert(JSON.strigify(BasicAmt));
|
||||
|
||||
|
||||
@ -3438,7 +4041,7 @@ $('#txttotalavlmodvat').val((parseFloat(TotalAvlmodvat) + parseFloat(AvailableMo
|
||||
$('#txttotalgrossexpense').val((parseFloat(TotalGrossExpense) + parseFloat(Grossexpenses)).toFixed(2) );
|
||||
$('#txtToatlOrder').val((parseFloat(TotalOrder) + parseFloat(totalexp)).toFixed(2) );
|
||||
var r=parseFloat($('#txtToatlOrder').val());
|
||||
console.log(r);
|
||||
//console.log(r);
|
||||
//alert(JSON.stringify(txttotallanding));
|
||||
//alert(TotalOrder);
|
||||
|
||||
@ -3580,6 +4183,110 @@ $("#editimportpomodel").on("shown.bs.modal", function(e) {
|
||||
});
|
||||
|
||||
|
||||
$("#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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
$('.EditImport').click(function(){
|
||||
//alert('inside edit');
|
||||
|
||||
@ -3626,7 +4333,7 @@ $('.EditImport').click(function(){
|
||||
var tr= document.getElementById(userid);
|
||||
var cellval = tr.cells;
|
||||
|
||||
|
||||
//cellval[1].innerHTML=editMaterialCode;
|
||||
cellval[3].innerHTML = editQuantity;
|
||||
cellval[4].innerHTML =editUOM;
|
||||
cellval[5].innerHTML =itemRate;
|
||||
@ -3808,29 +4515,33 @@ function DeleteRow(rowid)
|
||||
DelRows= "0" + ":" + rowid;
|
||||
}
|
||||
$('#txtDeletedRow').val(DelRows);
|
||||
populateValueMainFormForDeleteItem(rowid);
|
||||
|
||||
}
|
||||
|
||||
populateValueMainFormForDeleteItem(rowid);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function populateValueMainFormForDeleteItem(rowid)
|
||||
{
|
||||
var TotalLanding=0;
|
||||
var TotalHighseas=0;
|
||||
var TotalCustom=0;
|
||||
var TotalExcise=0;
|
||||
var TotalExciseED=0;
|
||||
var TotalExciseSH=0;
|
||||
var TotalCustomED=0;
|
||||
var TotalCustomSH=0;
|
||||
var TotalAdditionalExcise=0;
|
||||
var TotalGrossDuty=0;
|
||||
var TotalAvlmodvat=0;
|
||||
var TotalGrossExpense=0;
|
||||
{//alert();
|
||||
var TotalLanding=$('#txttotallanding').val();
|
||||
var TotalHighseas=$('#txttotalhighseas').val();
|
||||
var TotalCustom=$('#txttotalcustom').val();
|
||||
var TotalExcise=$('#txttotalexcise').val();
|
||||
var TotalExciseED=$('#txttotalexciseED').val();
|
||||
var TotalExciseSH=$('#txttotalexciseSH').val();
|
||||
var TotalCustomED=$('#txttotalcustomED').val();
|
||||
var TotalCustomSH=$('#txttotalcustomSH').val();
|
||||
var TotalAdditionalExcise=$('#txttotalAdditionalExciseduty').val();
|
||||
var TotalGrossDuty=$('#txttotalgrossduty').val();
|
||||
var TotalAvlmodvat=$('#txttotalavlmodvat').val();
|
||||
var TotalGrossExpense=$('#txttotalgrossexpense').val();
|
||||
var TotalOrderValue=$('#txtToatlOrder').val();
|
||||
|
||||
var AfterLandingCharge= $('#AfterLandingCharge').val() == '' ? '0.00' : $('#AfterLandingCharge').val();
|
||||
console.log(AfterLandingCharge);
|
||||
|
||||
var AfterHighseas=$('#AfterHighseas').val()==''?'0.00':$('#AfterHighseas').val();
|
||||
var AfterCustomduty=$('#AfterCustomduty').val()==''?'0.00':$('#AfterCustomduty').val();
|
||||
var AfterExcisedutyTax=$('#AfterExcisedutyTax').val()==''?'0.00':$('#AfterExcisedutyTax').val();
|
||||
@ -3856,7 +4567,7 @@ TotalAdditionalExcise = parseFloat(TotalAdditionalExcise ) - parseFloat(Additio
|
||||
TotalGrossDuty = parseFloat(TotalGrossDuty) - parseFloat(Grossdutypayable);
|
||||
TotalAvlmodvat = parseFloat(TotalAvlmodvat ) - parseFloat(AvailableModvat);
|
||||
TotalGrossExpense = parseFloat(TotalGrossExpense ) - parseFloat(Grossexpenses);
|
||||
TotalOrderValue=parseFloat(TotalOrderValue)-parseFloat()
|
||||
TotalOrderValue=parseFloat(TotalOrderValue)-parseFloat(totalExp);
|
||||
|
||||
$('#txttotallanding').val(parseFloat(TotalLanding).toFixed(2));
|
||||
$('#txttotalhighseas').val(parseFloat(TotalHighseas).toFixed(2));
|
||||
|
||||
@ -380,7 +380,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
|
||||
@ -394,16 +394,16 @@ body {
|
||||
Payment Date <br/>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo form_label('Before', 'Before') ." ". form_radio(array("name"=>"Payment", "id"=>"Before", "value"=>"0", 'checked'=>'checked')); ?> </td>
|
||||
<?php echo form_label('Before', 'Before') ." ". form_radio(array("name"=>"Payment", "id"=>"Before", "value"=>"0", 'checked'=>'checked')); ?> </td> -->
|
||||
|
||||
|
||||
<!-- <?php echo form_label('Date', 'Date') ." ". form_radio(array("name"=>"DateRange", "id"=>"Date", "value"=>"0", 'checked'=>'checked')); ?> </td> -->
|
||||
<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> -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -1501,11 +1501,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>
|
||||
@ -1680,12 +1684,16 @@ body {
|
||||
<tr id="<%=index%>">
|
||||
<td align="left"><%=index%></td>
|
||||
<td align="left"><%=ReqNo%></td>
|
||||
<td align="left"><%=MaterialCode%></td>
|
||||
|
||||
<td align="left"><%=ItemName%></td>
|
||||
<td align="left"><%=Description%></td>
|
||||
<td align="left"><%=Quantity%></td>
|
||||
<td align="left"><%=UOM%></td>
|
||||
<td align="left"><%=Rate%></td>
|
||||
<td align="left"><%=BasicAmount%></td>
|
||||
<td align="left"><%=ReceivedQty%></td>
|
||||
<td align="left"><%=RejectedQty%></td>
|
||||
<td align="left"><%=PendingQty%></td>
|
||||
<!-- <td align="left"><%=Taxvalue%></td>
|
||||
<td align="left"><%=TotalValue%></td> -->
|
||||
|
||||
@ -1747,18 +1755,18 @@ $('#drpSupplier').change(function() {
|
||||
if(obj.SupplierID === id)
|
||||
{
|
||||
$("#SupAddress").val(obj.Address);
|
||||
$("#PayableAT").val(obj.PayableAT);
|
||||
// $("#PayableAT").val(obj.PayableAT);
|
||||
$("#PaymentTerms").val(obj.PaymentTerms);
|
||||
var a=obj.PaymentDays;
|
||||
console.log(a);
|
||||
if (a=="After")
|
||||
{
|
||||
//alert();
|
||||
document.getElementById("After").checked = true;
|
||||
//var a=obj.PaymentDays;
|
||||
//console.log(a);
|
||||
// if (a=="After")
|
||||
// {
|
||||
// //alert();
|
||||
// document.getElementById("After").checked = true;
|
||||
|
||||
}
|
||||
else
|
||||
document.getElementById("Before").checked = true;
|
||||
// }
|
||||
// else
|
||||
// document.getElementById("Before").checked = true;
|
||||
|
||||
//var a=$("PayableAT").val();
|
||||
|
||||
@ -2937,6 +2945,10 @@ $('.AddImport').click(function()
|
||||
var purate=$("#purchaserate").val();
|
||||
var CustomDutyExpense=$("#CustomDutyExpenses").val();
|
||||
var RMCIncluderate=$("#RMCIncludingCustomers").val();
|
||||
var receivedqty='';
|
||||
var rejectedqty='';
|
||||
var pendingqty='';
|
||||
|
||||
$('#MaterialCode option[value='+materialCode+']').remove();
|
||||
|
||||
|
||||
@ -2957,7 +2969,7 @@ $('.AddImport').click(function()
|
||||
index = parseInt(index)+1;
|
||||
//alert('in');
|
||||
var template = jQuery("#ImportList").html();
|
||||
$('#ImportAppend').append(_.template(template,{index:temp,ReqNo:Reqnumber,ItemName:materialName,Quantity:quantity,UOM:uom,Rate:itemRate,BasicAmount:BasicAmt,Taxvalue:taxexp,TotalValue:totalexp}));
|
||||
$('#ImportAppend').append(_.template(template,{index:temp,ReqNo:Reqnumber,MaterialCode:materialCode,Description:materialName,Quantity:quantity,UOM:uom,Rate:itemRate,BasicAmount:BasicAmt,Taxvalue:taxexp,TotalValue:totalexp,ReceivedQty:receivedqty,RejectedQty:rejectedqty,PendingQty:pendingqty}));
|
||||
//alert(JSON.strigify(BasicAmt));
|
||||
|
||||
|
||||
@ -3531,15 +3543,17 @@ function DeleteRow(rowid)
|
||||
DelRows= "0" + ":" + rowid;
|
||||
}
|
||||
$('#txtDeletedRow').val(DelRows);
|
||||
populateValueMainFormForDeleteItem(rowid);
|
||||
|
||||
}
|
||||
|
||||
populateValueMainFormForDeleteItem(rowid);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function populateValueMainFormForDeleteItem(rowid)
|
||||
{
|
||||
{ //alert();
|
||||
var TotalLanding=0;
|
||||
var TotalHighseas=0;
|
||||
var TotalCustom=0;
|
||||
@ -3552,6 +3566,7 @@ function populateValueMainFormForDeleteItem(rowid)
|
||||
var TotalGrossDuty=0;
|
||||
var TotalAvlmodvat=0;
|
||||
var TotalGrossExpense=0;
|
||||
var TotalOrderValue=0;
|
||||
var AfterLandingCharge= $('#AfterLandingCharge').val() == '' ? '0.00' : $('#AfterLandingCharge').val();
|
||||
var AfterHighseas=$('#AfterHighseas').val()==''?'0.00':$('#AfterHighseas').val();
|
||||
var AfterCustomduty=$('#AfterCustomduty').val()==''?'0.00':$('#AfterCustomduty').val();
|
||||
@ -3567,6 +3582,7 @@ var AvailableModvat=$('#AvailableModvat').val()==''?'0.00':$('#AvailableModvat')
|
||||
var Grossexpenses=$('#Grossexpenses').val()==''?'0.00':$('#Grossexpenses').val();
|
||||
var totalExp=$('#TotalExp').val()==''?'0.00':$('#TotalExp').val();
|
||||
TotalLanding = parseFloat(TotalLanding) - parseFloat(AfterLandingCharge);
|
||||
//console.log(TotalLanding);
|
||||
TotalHighseas = parseFloat(TotalHighseas) - parseFloat(AfterHighseas);
|
||||
TotalCustom = parseFloat(TotalCustom) - parseFloat(AfterCustomduty);
|
||||
TotalExcise = parseFloat(TotalExcise) - parseFloat(AfterExcisedutyTax);
|
||||
@ -3578,7 +3594,7 @@ TotalAdditionalExcise = parseFloat(TotalAdditionalExcise ) - parseFloat(Additio
|
||||
TotalGrossDuty = parseFloat(TotalGrossDuty) - parseFloat(Grossdutypayable);
|
||||
TotalAvlmodvat = parseFloat(TotalAvlmodvat ) - parseFloat(AvailableModvat);
|
||||
TotalGrossExpense = parseFloat(TotalGrossExpense ) - parseFloat(Grossexpenses);
|
||||
TotalOrderValue=parseFloat(TotalOrderValue)-parseFloat()
|
||||
TotalOrderValue=parseFloat(TotalOrderValue)-parseFloat(totalExp);
|
||||
|
||||
$('#txttotallanding').val(parseFloat(TotalLanding).toFixed(2));
|
||||
$('#txttotalhighseas').val(parseFloat(TotalHighseas).toFixed(2));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user