capital po changes

This commit is contained in:
venbatechnologies@gmail.com 2017-07-22 11:28:57 +05:30
parent b0a30fbf5e
commit 6d8a9c1115
3 changed files with 1243 additions and 992 deletions

View File

@ -1741,7 +1741,8 @@ $createddt='';
/* Add capital Po*/
function addNewCapitalPurchaseOrder()
{
//echo "sxscd";
//die();
$POdt =$this->input->post('PODate');
$PODate = $this->getDateformat($POdt);
@ -1752,13 +1753,32 @@ $createddt='';
$POType = $this->input->post('POType');
$PoRange = $this->input->post('txtPoRange');
//$DeliveryOption = $this->input->post('DateRange');
// if($DeliveryOption==1){
// $Deliverydt = '';
// $DeliverySchedule = $this->input->post('Scheduleby');
// }
//else{
//$Deliverydt = $this->getDateformat($dt);
//$DeliverySchedule = '';
// }
$DeliveryOption = $this->input->post('DateRange');
if($DeliveryOption==1){
$Deliverydt = '';
//echo $DeliveryOption;
//die();
$DeliverySchedule='';
$Dispatch='';
if($DeliveryOption==1)
{
$Dispatch='';
$DeliverySchedule = $this->input->post('Scheduleby');
}
else{
$Deliverydt = $this->getDateformat($dt);
else
{
$Dispatch = $this->input->post('Dispatch');
$DeliverySchedule = '';
}
$capitalType = $this->input->post('capitalType');
@ -1776,6 +1796,7 @@ $createddt='';
$PaymentMethod = $this->input->post('PaymentMethod');
$PayableAT = $this->input->post('PayableAT');
$Palaceoforigin=$this->input->post('PlaceOforigin');
$PaymentDate=$this->input->post('PaymentDate');
@ -1795,7 +1816,9 @@ $createddt='';
$createddt = $dt->format('Y-m-d H:i:s');
$currencytypeID = $this->input->post('currencytype');
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ExchangeRateCalculatedon'=>$ExchangeRateOn,'ExchangeRate'=>$ExchangeRate,'PaymentTerms'=>$PaymentMethod,'PaymentDays'=>$PaymentDate,'PayableAt'=>$PayableAT,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'CapitalRange'=>$CapitalRange,'POType'=>$POType,'CurrencyType'=>$currencytypeID);
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ExchangeRateCalculatedon'=>$ExchangeRateOn,'ExchangeRate'=>$ExchangeRate,'PaymentTerms'=>$PaymentMethod,'PaymentDays'=>$PaymentDate,'PayableAt'=>$PayableAT,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'CapitalRange'=>$CapitalRange,'POType'=>$POType,'CurrencyType'=>$currencytypeID,'DeliverySchedule'=>$DeliverySchedule,'Import_PlaceofOrgin'=>$Palaceoforigin,'Import_DispatchDetails'=>$Dispatch);
// $POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'Import_DispatchDetails'=>$Dispatch,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'POType'=>$POType,'Import_PlaceofOrgin'=>$Palaceoforigin);
$POMaster = $this->purchaseorder_model->addPOMaster($POList);
@ -1815,6 +1838,8 @@ $createddt='';
$Quantity = $this->input->post('quantity'.$i);
$Reqnumber = $this->input->post('Reqnumber'.$i);
$itemRate = $this->input->post('itemRate'.$i);
//echo $itemRate;
//die();
$BasicPriceinmton = $this->input->post('rateInUs'.$i);
@ -1862,8 +1887,6 @@ $createddt='';
$SecHighTax = $this->input->post('AfterSecHighTax'.$i);
$KrishiTax = $this->input->post('AfterKrishiTax'.$i);
$SwachhTax = $this->input->post('AfterSwachhTax'.$i);
$TotalOrderValue = $this->input->post('TotalOrderValue'.$i);
$SkipInsert = "False";
@ -1899,15 +1922,23 @@ $createddt='';
$ServiceTaxList = array('LineItemNo'=>$LineItemNo, 'ServiceTax'=>$ServiceTax,'EducessTax'=>$EduCess,'SecHigherEducessTax'=>$SecHighTax,'KrishiKalyantax'=>$KrishiTax,'SwachhBharattax'=>$SwachhTax,'TotalValue'=>$TotalOrderValue, 'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt);
$ServiceTax = $this->purchaseorder_model->addServiceTax($ServiceTaxList);
if($CapitalRange=='0'){
}
if($CapitalRange=='0')
{
//echo "dsc";
//die();
$ImportTaxList = array('LineItemNo'=>$LineItemNo,'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'AfterLandingCharge'=>$AfterLandingCharge,'AfterHighSeasSalesCharge'=>$AfterHighSeas,'HighSeasSalesCharge'=>$HighSeas,'CustomDuty'=>$CustomDuty,'AfterCustomDuty'=>$AfterCustomDuty,'ExciseDuty'=>$ExciseDuty,'AfterExciseDuty'=>$AfterExciseDuty,'ExciseDutyEdCess'=>$ExciseDutyEd,'AfterExciseDutyEdCess'=>$AfterExciseDutyEd,'ExciseDutySHCess'=>$ExciseDutySH,'CustomEdCess'=>$CustomEd,'CustomSHCess'=>$CustomSH,'AddlExciseDuty'=>$AddAdtional,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'AfterExciseDutySHCess'=>$AfterExciseDutySH,'AfterAddlExciseDuty'=>$AfterAddAdtional,'Grossdutypayable'=>$Grossdutypayable,'AvailableModvat'=>$AvailableModvat,'Grossexpensesduetocustomduty'=>$Grossexpensesduetocustomduty,'purchaseratePerKG'=>$purchaseratePerKG,'CustomDutyExpensesPerKG'=>$CustomDutyExpensesPerKG,'RMCIncludingCustomersPerKG'=>$RMCIncludingCustomersPerKG,'QuantityKG'=>$QuantityKG,'AfterCustomSHCess'=>$AfterCustomSH,'AfterCustomEdCess'=>$AfterCustomEd,'TotalValue'=>$Totalvalueitem);
//print_r( $ImportTaxList);
//die();
$ImportList = $this->purchaseorder_model->addImportTax($ImportTaxList);
}
}
//}
}
}
@ -1919,7 +1950,8 @@ $createddt='';
function EditCapitalPurchaseOrder()
{
echo "scsdc";
die();
$PONO =$this->input->post('txtPONO');
$POdt =$this->input->post('PODate');
$PODate = $this->getDateformat($POdt);
@ -1930,16 +1962,38 @@ $createddt='';
$POType = $this->input->post('POType');
$PoRange = $this->input->post('txtPoRange');
// $DeliveryOption = $this->input->post('DateRange');
// if($DeliveryOption==1){
// $Deliverydt = '';
// $DeliverySchedule = $this->input->post('Scheduleby');
// }
// else{
// $Deliverydt = $this->getDateformat($dt);
// $DeliverySchedule = '';
// }
$DeliveryOption = $this->input->post('DateRange');
if($DeliveryOption==1){
$Deliverydt = '';
//echo $DeliveryOption;
//die();
$DeliverySchedule='';
$Dispatch='';
if($DeliveryOption==1)
{
$Dispatch='';
$DeliverySchedule = $this->input->post('Scheduleby');
}
else{
$Deliverydt = $this->getDateformat($dt);
else
{
$Dispatch = $this->input->post('Dispatch');
$DeliverySchedule = '';
}
$capitalType = $this->input->post('capitalType');
$currencytypeID = $this->input->post('currencytype');
if($capitalType=='1'){
@ -1962,6 +2016,7 @@ $createddt='';
$SpcialInstruction = $this->input->post('txtSpcialInstruction');
$TotalOrder = $this->input->post('CapitalToatlOrder');
$POStatus = $this->input->post('txtStatus');
$Palaceoforigin=$this->input->post('PlaceOforigin');
$CreateBy = $this->session->userdata ( 'userId' );
@ -1975,7 +2030,12 @@ $createddt='';
$createddt = $dt->format('Y-m-d H:i:s');
$updateddt = $dt->format('Y-m-d H:i:s');
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ExchangeRate'=>$ExchangeRate,'ExchangeRateCalculatedon'=>$ExchangeRateOn,'PaymentTerms'=>$PaymentMethod,'PaymentDays'=>$PaymentDate,'PayableAt'=>$PayableAT,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'CurrencyType'=>$currencytypeID);
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ExchangeRate'=>$ExchangeRate,'ExchangeRateCalculatedon'=>$ExchangeRateOn,'PaymentTerms'=>$PaymentMethod,'PaymentDays'=>$PaymentDate,'PayableAt'=>$PayableAT,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'CurrencyType'=>$currencytypeID,'DeliverySchedule'=>$DeliverySchedule,'Import_PlaceofOrgin'=>$Palaceoforigin,'Import_DispatchDetails'=>$Dispatch);
// $POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ExchangeRateCalculatedon'=>$ExchangeRateOn,'ExchangeRate'=>$ExchangeRate,'PaymentTerms'=>$PaymentMethod,'PaymentDays'=>$PaymentDate,'PayableAt'=>$PayableAT,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'CapitalRange'=>$CapitalRange,'POType'=>$POType,'CurrencyType'=>$currencytypeID,'DeliverySchedule'=>$DeliverySchedule,'Import_PlaceofOrgin'=>$Palaceoforigin,'Import_DispatchDetails'=>$Dispatch);
print_r($POList);
die();
$POMaster = $this->purchaseorder_model->updatePOMaster($PONO,$POList);
@ -2039,8 +2099,6 @@ $createddt='';
$SecHighTax = $this->input->post('AfterSecHighTax'.$i);
$KrishiTax = $this->input->post('AfterKrishiTax'.$i);
$SwachhTax = $this->input->post('AfterSwachhTax'.$i);
$TotalOrderValue = $this->input->post('TotalOrderValue'.$i);
$POLineItemNo = $this->input->post('LineItemNo'.$i);
@ -2079,6 +2137,7 @@ $createddt='';
$ServiceTaxList = array('LineItemNo'=>$LineItemNo, 'ServiceTax'=>$ServiceTax,'EducessTax'=>$EduCess,'SecHigherEducessTax'=>$SecHighTax,'KrishiKalyantax'=>$KrishiTax,'SwachhBharattax'=>$SwachhTax,'TotalValue'=>$TotalOrderValue, 'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt);
$ServiceTax = $this->purchaseorder_model->addServiceTax($ServiceTaxList);
$ImportTaxList = array('LineItemNo'=>$LineItemNo, 'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'AfterLandingCharge'=>$AfterLandingCharge,'AfterHighSeasSalesCharge'=>$AfterHighSeas,'HighSeasSalesCharge'=>$HighSeas,'CustomDuty'=>$CustomDuty,'AfterCustomDuty'=>$AfterCustomDuty,'ExciseDuty'=>$ExciseDuty,'AfterExciseDuty'=>$AfterExciseDuty,'ExciseDutyEdCess'=>$ExciseDutyEd,'AfterExciseDutyEdCess'=>$AfterExciseDutyEd,'ExciseDutySHCess'=>$ExciseDutySH,'CustomEdCess'=>$CustomEd,'CustomSHCess'=>$CustomSH,'AddlExciseDuty'=>$AddAdtional,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'AfterExciseDutySHCess'=>$AfterExciseDutySH,'AfterAddlExciseDuty'=>$AfterAddAdtional,'Grossdutypayable'=>$Grossdutypayable,'AvailableModvat'=>$AvailableModvat,'Grossexpensesduetocustomduty'=>$Grossexpensesduetocustomduty,'purchaseratePerKG'=>$purchaseratePerKG,'CustomDutyExpensesPerKG'=>$CustomDutyExpensesPerKG,'RMCIncludingCustomersPerKG'=>$RMCIncludingCustomersPerKG,'QuantityKG'=>$QuantityKG,'AfterCustomSHCess'=>$AfterCustomSH,'AfterCustomEdCess'=>$AfterCustomEd,'TotalValue'=>$Totalvalueitem);
//print_r($ImportTaxList);
//die();
@ -2101,7 +2160,10 @@ $createddt='';
$ServiceTaxList = array('ServiceTax'=>$ServiceTax,'EducessTax'=>$EduCess,'SecHigherEducessTax'=>$SecHighTax,'KrishiKalyantax'=>$KrishiTax,'SwachhBharattax'=>$SwachhTax,'TotalValue'=>$TotalOrderValue, 'UpdateBY'=>$updatedBy,'UpdatedOn'=>$updateddt);
$ServiceTax = $this->purchaseorder_model->updateServiceTax($LineItemNo,$ServiceTaxList);
$ImportTaxList = array('LineItemNo'=>$LineItemNo,'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'AfterLandingCharge'=>$AfterLandingCharge,'AfterHighSeasSalesCharge'=>$AfterHighSeas,'HighSeasSalesCharge'=>$HighSeas,'CustomDuty'=>$CustomDuty,'AfterCustomDuty'=>$AfterCustomDuty,'ExciseDuty'=>$ExciseDuty,'AfterExciseDuty'=>$AfterExciseDuty,'ExciseDutyEdCess'=>$ExciseDutyEd,'AfterExciseDutyEdCess'=>$AfterExciseDutyEd,'ExciseDutySHCess'=>$ExciseDutySH,'CustomEdCess'=>$CustomEd,'CustomSHCess'=>$CustomSH,'AddlExciseDuty'=>$AddAdtional,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'AfterExciseDutySHCess'=>$AfterExciseDutySH,'AfterAddlExciseDuty'=>$AfterAddAdtional,'Grossdutypayable'=>$Grossdutypayable,'AvailableModvat'=>$AvailableModvat,'Grossexpensesduetocustomduty'=>$Grossexpensesduetocustomduty,'purchaseratePerKG'=>$purchaseratePerKG,'CustomDutyExpensesPerKG'=>$CustomDutyExpensesPerKG,'RMCIncludingCustomersPerKG'=>$RMCIncludingCustomersPerKG,'QuantityKG'=>$QuantityKG,'AfterCustomSHCess'=>$AfterCustomSH,'AfterCustomEdCess'=>$AfterCustomEd,'TotalValue'=>$Totalvalueitem);
$ImportList= $this->purchaseorder_model->updateImportTax($LineItemNo,$ImportTaxList);
}

View File

@ -28,6 +28,29 @@
}
// if(!empty($AvlimportBudAmt))
// {
// $AvlAmount = $AvlimportBudAmt;
// }
$INR='';
$INRSYM='';
if(!empty($INRSYMBOL))
{
foreach ($INRSYMBOL as $INR)
{
$INRSYM=$INR->Currency_Code;
$INR=$INR->FontCode2000;
}
}
// echo $INRSYM;
// echo $INR;
?>
<style>
.modal
@ -89,8 +112,64 @@
$('#Schedulediv').show();
});
});
document.getElementById("Date").checked = true;
//document.getElementById("Date").checked = true;
function openModal()
{
if(vaildateBeforeOpenModal())
{
$('#CAPITAL').modal('show');
}
}
function vaildateBeforeOpenModal()
{
if($('#PODate').val() == '')
{
alert('Please Enter the Purchase Order date');
$('#PODate').focus();
return false;
}
else if($('#drpSupplier').val() == "0")
{
alert('Please Select the Supplier details');
$('#drpSupplier').focus();
return false;
}
else if($('#DeliveryAddr').val() == '')
{
alert('Please Enter the Delivery Address');
$('#DeliveryAddr').focus();
return false;
}
else if($('#Deliverydt').val() == '' && $('#Scheduleby').val() == '')
{
alert('Please Enter the Dispatch Instruction');
$('#Deliverydt').focus();
return false;
}
else if($('#currencytype').val() == '0')
{
alert('Please Select the Currency Type');
$('#currencytype').focus();
return false;
}
else if($('#ExchangeRate').val() == '')
{
alert('Please Enter the Exchange Rate');
$('#ExchangeRate').focus();
return false;
}
else
{
return true;
}
}
</script>
<div class="content-wrapper">
<?php
@ -197,7 +276,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-4">
<div class="col-md-12">
<!-- <div class="col-md-12">
<label>Purchase Order Type</label>
<div class="form-group">
@ -206,6 +285,28 @@ document.getElementById("Date").checked = true;
echo form_input($data);
?>
</div>
</div> -->
<div class="col-md-12" style="padding: 0px;">
<div class="col-md-6">
<label>PO Type</label>
<div class="form-group">
<?php
$data = array('name' => 'POType','value' => set_value('POType',CAPITAL),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-6">
<label>PO Date</label>
<div class="form-group">
<?php
$data = array('name' => 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-12">
<label>Delivery Address</label>
@ -224,7 +325,8 @@ document.getElementById("Date").checked = true;
<b><u>Select Delivery By</u></b><br/>
<tr>
<td>
<?php echo form_label('Date', 'Date') ."&nbsp;&nbsp;". form_radio(array("name"=>"DateRange", "id"=>"Date", "value"=>"0", 'checked'=>'checked')); ?>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<!-- <?php echo form_label('Date', 'Date') ."&nbsp;&nbsp;". form_radio(array("name"=>"DateRange", "id"=>"Date", "value"=>"0", 'checked'=>'checked')); ?>&nbsp;&nbsp;&nbsp;&nbsp;</td> -->
<?php echo form_label('Dispatch instruction', 'Dispatch instruction') ."&nbsp;&nbsp;". form_radio(array("name"=>"DateRange", "id"=>"Date", "value"=>"0", 'checked'=>'checked')); ?>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<?php echo form_label('Schedule', 'Schedule') ."&nbsp;&nbsp;". form_radio(array("name"=>"DateRange", "id"=>"Schedule", "value"=>"1", 'checked'=>set_radio('DateRange', '1', FALSE))); ?>
@ -242,11 +344,14 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12" id="Deliverydtdiv"><br/>
<label>Delivery Date</label>
<label>Dispatch Instruction</label>
<?php
$data = array('name' => 'Deliverydt','value' => set_value('Deliverydt',$CurrentDate),'id'=>'Deliverydt', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
// $data = array('name' => 'Dispatch','value' => set_value('Dispatch'),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true');
// echo form_input($data);
$data = array('name' => 'Dispatch','value' => set_value('Dispatch'),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
echo Form_textarea($data);
?>
</div>
@ -280,7 +385,7 @@ document.getElementById("Date").checked = true;
</div>
</div>
<div class="col-md-4">
<!-- <div class="col-md-4">
<label>Purchase Order Date</label>
<div class="form-group">
<?php
@ -288,6 +393,18 @@ document.getElementById("Date").checked = true;
echo form_input($data);
?>
</div>
</div> -->
<div class="col-md-4">
<label>Place of Origin</label>
<div class="form-group">
<?php
// $data = array('name' => 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
// echo form_input($data);
$data = array('name' => 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
@ -308,7 +425,6 @@ document.getElementById("Date").checked = true;
{
foreach ($payment as $payment):
$options1[$rl->ConfigValue] = $rl->ConfigValue.' '.' - '.' '.$rl->ConfigValue;
endforeach;
@ -317,10 +433,6 @@ document.getElementById("Date").checked = true;
echo form_dropdown('PaymentMethod', $options1,set_value('PaymentMethod'),'id="PaymentMethod"' ,'class="form-control"');
?>
</div>
@ -331,7 +443,8 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div align="right">
<a data-toggle="modal" ><button type="submit" onclick="myFunction();" class="btn btn-primary" id="abcd" >Select Line Item</button> </a>
<!-- <a data-toggle="modal" ><button type="submit" onclick="myFunction();" class="btn btn-primary" id="abcd" >Select Line Item</button> </a> -->
<a data-toggle="modal" class="btn btn-primary" data-dismiss="modal" onclick="openModal();" >Add Line Item </a>
</div>
<br>
</div>
@ -420,7 +533,7 @@ document.getElementById("Date").checked = true;
</div>
</div>
<div class="col-md-6">
<label>Avail Bud Amount</label>
<label>Avail Bud Amount<?php echo "($INR)"?></label>
<div class="form-group">
<?php
$data = array('name' => 'CapitalbudAmt','value' => set_value('CapitalbudAmt'),'id'=>'CapitalbudAmt', 'class' => 'form-control' ,'readonly' => 'true');
@ -514,7 +627,9 @@ document.getElementById("Date").checked = true;
</div>
</div>
<div class="col-md-12">
<div class="col-md-12" style="border:1px solid #000;padding:5px;">
<div class="col-md-12" id="CAPdiv" style="border:1px solid #000;padding:5px;">
<div class="col-md-12">
<div class="col-md-6" align="right">
@ -621,7 +736,7 @@ document.getElementById("Date").checked = true;
<div class="col-md-6" style="padding:0px;">
<div class="col-md-12">
<div class="col-md-4" >
Basic Price In INR:
Basic Price In <?php echo "($INR)"?>:
</div>
<div class="col-md-4">
<div class="form-group">
@ -642,7 +757,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-4">
Landing charge
Landing charge<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -663,7 +778,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-4">
High seas sales charge
High seas sales charge<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -684,7 +799,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-4">
Custom duty : (a)
Custom duty : (a)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -705,7 +820,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty : (b)
Excise duty : (b)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -726,7 +841,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty ED_cess : (C)
Excise duty ED_cess : (C)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -747,7 +862,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty S & H cess :(d)
Excise duty S & H cess :(d)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -812,7 +927,7 @@ document.getElementById("Date").checked = true;
<div class="col-md-6" style="padding:0px;">
<div class="col-md-12">
<div class="col-md-4">
Additional Excise duty : (g)
Additional Excise duty : (g)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -833,7 +948,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-8">
Gross duty payable
Gross duty payable<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -846,7 +961,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-8">
Available Modvat set-off on import :
Available Modvat set-off on import :<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -861,7 +976,7 @@ document.getElementById("Date").checked = true;
<div class="col-md-12">
<div class="col-md-8">
Gross expenses due to custom duty:
Gross expenses due to custom duty:<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -874,12 +989,12 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<center> <label>Cost of the product Per KG</label></center>
<center> <label>Cost of the product Per UOM</label></center>
<hr/>
</div>
<div class="col-md-12">
<div class="col-md-4">
purchase rate [Basic]
purchase rate [Basic]/UOM
</div>
<div class="col-md-4">
<div class="form-group">
@ -903,7 +1018,7 @@ document.getElementById("Date").checked = true;
<div class="col-md-12">
<div class="col-md-4">
Custom Duty Expenses
Custom Duty Expenses<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -917,7 +1032,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-4">
RMC Including Customers
RMC Including Customers<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -941,18 +1056,12 @@ document.getElementById("Date").checked = true;
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a class="btn btn-info font AddCapital" ID="AddCapital" ><i class="fa fa-plus"></i>&nbsp;&nbsp;<span class="bold">Add Capital</span></a>
<a class="btn btn-info" data-dismiss="modal" value="Cancel">Cancel</a>
@ -999,9 +1108,6 @@ document.getElementById("Date").checked = true;
?>
</div>
</div>
<div class="col-md-6">
<label>Department Name</label>
@ -1026,7 +1132,7 @@ document.getElementById("Date").checked = true;
</div>
</div>
<div class="col-md-6">
<label>Avail Bud Amount</label>
<label>Avail Bud Amount<?php echo "($INR)"?></label>
<div class="form-group">
<?php
$data = array('name' => 'EditCapitalbudAmt','value' => set_value('EditCapitalbudAmt'),'id'=>'EditCapitalbudAmt', 'class' => 'form-control' ,'readonly' => 'true');
@ -1120,7 +1226,7 @@ document.getElementById("Date").checked = true;
</div>
</div>
<div class="col-md-12">
<div class="col-md-12" style="border:1px solid #000;padding:5px;">
<div class="col-md-12" style="border:1px solid #000;padding:5px;" id="EDITCAPdiv">
<div class="col-md-12">
<div class="col-md-6" align="right">
@ -1227,7 +1333,7 @@ document.getElementById("Date").checked = true;
<div class="col-md-6" style="padding:0px;">
<div class="col-md-12">
<div class="col-md-4" >
Basic Price In INR:
Basic Price In <?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1248,7 +1354,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-4">
Landing charge
Landing charge<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1269,7 +1375,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-4">
High seas sales charge
High seas sales charge<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1290,7 +1396,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-4">
Custom duty : (a)
Custom duty: (a)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1311,7 +1417,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty : (b)
Excise duty : (b)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1332,7 +1438,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty ED_cess : (C)
Excise duty ED_cess : (C)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1353,7 +1459,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty S & H cess :(d)
Excise duty S & H cess :(d)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1418,7 +1524,7 @@ document.getElementById("Date").checked = true;
<div class="col-md-6" style="padding:0px;">
<div class="col-md-12">
<div class="col-md-4">
Additional Excise duty : (g)
Additional Excise duty : (g)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1439,7 +1545,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-8">
Gross duty payable
Gross duty payable<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1452,7 +1558,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-8">
Available Modvat set-off on import :
Available Modvat set-off on import :<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1467,7 +1573,7 @@ document.getElementById("Date").checked = true;
<div class="col-md-12">
<div class="col-md-8">
Gross expenses due to custom duty:
Gross expenses due to custom duty:<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1480,12 +1586,12 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<center> <label>Cost of the product Per KG</label></center>
<center> <label>Cost of the product Per UOM</label></center>
<hr/>
</div>
<div class="col-md-12">
<div class="col-md-4">
purchase rate [Basic]
purchase rate [Basic]/UOM
</div>
<div class="col-md-4">
<div class="form-group">
@ -1509,7 +1615,7 @@ document.getElementById("Date").checked = true;
<div class="col-md-12">
<div class="col-md-4">
Custom Duty Expenses
Custom Duty Expenses<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1523,7 +1629,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-12">
<div class="col-md-4">
RMC Including Customers
RMC Including Customers<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1582,7 +1688,7 @@ document.getElementById("Date").checked = true;
</table>
<div class="col-md-12" style="border: 1px solid;padding:4px;">
<div class="col-md-12" id="DOMdiv" style="border: 1px solid;padding:4px;">
<div class="col-md-3">
<label>CGST In INR</label>
<?php
@ -1621,7 +1727,7 @@ document.getElementById("Date").checked = true;
<div class="col-md-12" style="border: 1px solid;padding:1% 0%;" id="HideImportTaxTotal">
<div class="col-md-4">
<label >Total Landing Charge </label>
<label >Total Landing Charge<?php echo "($INR)"?> </label>
<?php
$data = array('name' => 'txttotallanding','value' => set_value('txttotallanding'),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1630,7 +1736,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-4">
<label >Total High seas sales Charge </label>
<label >Total High seas sales Charge<?php echo "($INR)"?> </label>
<?php
$data = array('name' => 'txttotalhighseas','value' => set_value('txttotalhighseas'),'id'=>'txttotalhighseas', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1639,7 +1745,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-4">
<label >Total Custom Duty Charge </label>
<label >Total Custom Duty Charge<?php echo "($INR)"?> </label>
<?php
$data = array('name' => 'txttotalcustom','value' => set_value('txttotalcustom'),'id'=>'txttotalcustom', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1648,7 +1754,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-4">
<label >Total Excise duty Charge </label>
<label >Total Excise duty Charge <?php echo "($INR)"?> </label>
<?php
$data = array('name' => 'txttotalexcise','value' => set_value('txttotalexcise'),'id'=>'txttotalexcise', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1657,7 +1763,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-4">
<label >Total Excise duty ED_cess Charge </label>
<label >Total Excise duty ED_cess Charge<?php echo "($INR)"?> </label>
<?php
$data = array('name' => 'txttotalexciseED','value' => set_value('txttotalexciseED'),'id'=>'txttotalexciseED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1667,7 +1773,7 @@ document.getElementById("Date").checked = true;
<div class="col-md-4">
<label >Total Excise duty S & H cess Charge </label>
<label >Total Excise duty S & H cess Charge <?php echo "($INR)"?> </label>
<?php
$data = array('name' => 'txttotalexciseSH','value' => set_value('txttotalexciseSH'),'id'=>'txttotalexciseSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1676,7 +1782,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-4">
<label >Total Custom ED_cess Charge </label>
<label >Total Custom ED_cess Charge <?php echo "($INR)"?> </label>
<?php
$data = array('name' => 'txttotalcustomED','value' => set_value('txttotalcustomED'),'id'=>'txttotalcustomED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1685,7 +1791,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-4">
<label >Total Custom S & H cess Charge </label>
<label >Total Custom S & H cess Charge <?php echo "($INR)"?> </label>
<?php
$data = array('name' => 'txttotalcustomSH','value' => set_value('txttotalcustomSH'),'id'=>'txttotalcustomSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1694,7 +1800,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-4">
<label >Total Additional Excise duty Charge </label>
<label >Total Additional Excise duty Charge <?php echo "($INR)"?></label>
<?php
$data = array('name' => 'txttotalAdditionalExciseduty','value' => set_value('txttotalAdditionalExciseduty'),'id'=>'txttotalAdditionalExciseduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1704,7 +1810,7 @@ document.getElementById("Date").checked = true;
<div class="col-md-4">
<label >Total Gross duty payable Charge </label>
<label >Total Gross duty payable Charge <?php echo "($INR)"?> </label>
<?php
$data = array('name' => 'txttotalgrossduty','value' => set_value('txttotalgrossduty'),'id'=>'txttotalgrossduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1713,7 +1819,7 @@ document.getElementById("Date").checked = true;
</div>
<div class="col-md-4">
<label >Total Available Modvat set-off on import Charge </label>
<label >Total Available Modvat set-off on import Charge <?php echo "($INR)"?> </label>
<?php
$data = array('name' => 'txttotalavlmodvat','value' => set_value('txttotalavlmodvat'),'id'=>'txttotalavlmodvat', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1723,7 +1829,7 @@ document.getElementById("Date").checked = true;
<div class="col-md-4">
<label >Total Gross expenses due to custom duty Charge </label>
<label >Total Gross expenses due to custom duty Charge<?php echo "($INR)"?> </label>
<?php
$data = array('name' => 'txttotalgrossexpense','value' => set_value('txttotalgrossexpense'),'id'=>'txttotalgrossexpense', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1834,6 +1940,8 @@ document.getElementById("Date").checked = true;
var SelectedMaterialList = {
Mat: []
};
$(function() {
$("#PODate").datepicker({
@ -1841,10 +1949,20 @@ document.getElementById("Date").checked = true;
maxDate : 'now',
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
});
$("#Deliverydt").datepicker({
minDate : 'now',
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '0:+10'
});
// $("#Deliverydt").datepicker({
// minDate : 'now',
// dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '0:+10'
// });
var a=parseFloat($('#optcapital').val());
// console.log(a);
// if(a==0)
// {
// $('#CAPdiv').hide();
// }
$('#drpSupplier').change(function() {
@ -1869,16 +1987,16 @@ document.getElementById("Date").checked = true;
supPaymentAT=obj.PayableAT;
subPaymentDate=obj.PaymentDays;
if (subPaymentDate=="After")
{
//alert();
document.getElementById("After").checked = true;
// if (subPaymentDate=="After")
// {
// //alert();
// document.getElementById("After").checked = true;
}
else{
document.getElementById("Before").checked = true;
// }
// else{
// document.getElementById("Before").checked = true;
}
// }
}
@ -4200,6 +4318,9 @@ function SetCapitalPo()
{
capitalType='International';
$('#DomesticNOT').modal('hide');
$('#CAPdiv').hide();
$('#DOMdiv').hide();
$('#EDITCAPdiv').hide();
}
else

View File

@ -23,6 +23,9 @@
$TotalSummary = 0.0;
$TotalBasicAmount = 0.0;
$ServiceDescription = '';
$Import_DispatchDetails='';
$Import_PlaceofOrgin='';
$CapitalRange='';
$Deliverydt='';
$DeliverSchedule='';
@ -30,6 +33,7 @@
$AvlAmount = 0;
$currentCurrencyType='';
$exchangeRate = $ExchangeRate;
$ConfigValue='';
$TotalLanding=0;
$tothighseas=0;
@ -56,6 +60,19 @@
$CapitalRange='';
$PoStatusName='';
$INR='';
$INRSYM='';
if(!empty($INRSYMBOL))
{
foreach ($INRSYMBOL as $INR)
{
$INRSYM=$INR->Currency_Code;
$INR=$INR->FontCode2000;
}
}
//echo $INR;
if(!empty($MaxPODate))
{
foreach ($MaxPODate as $date)
@ -95,10 +112,15 @@ if(!empty($POMaster))
$PaymentTerms=$Req->PaymentTerms;
$UpdatedOn=$Req->UpdatedOn;
$CapitalRange=$Req->CapitalRange;
$Import_DispatchDetails=$Req->Import_DispatchDetails;
$Import_PlaceofOrgin=$Req->Import_PlaceofOrgin;
$CapitalRange=$Req->CapitalRange;
}
}
//echo $CapitalRange;
if(!empty($AvlBudAmt))
{
@ -228,7 +250,11 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="content-wrapper">
<div id="content"></div>
<?php
$attributes = array('class' => 'form-label-left CapitalPO ','name' => 'CapitalPO','id' => 'ImportPO');
// $attributes = array('class' => 'form-label-left CapitalPO ','name' => 'CapitalPO','id' => 'ImportPO');
$attributes = array('class' => 'form-label-left CapitalPO ','name' => 'CapitalPO','id' => 'CapitalPO');
echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?>
@ -256,10 +282,8 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
if(!empty($ReqList))
{
foreach ($ReqList as $SID):
$options[$SID->ReqNo] = $SID->ReqNo ."-". $SID->ReqNo;
endforeach;
@ -363,7 +387,9 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<b><u>Select Delivery By</u></b><br/>
<tr>
<td>
<?php echo form_label('Date', 'Date') . "&nbsp;&nbsp;". form_radio(array('name' => 'DateRange', 'value' => '0', 'checked' => ('0' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Date')); ?>
<!-- <?php echo form_label('Date', 'Date') . "&nbsp;&nbsp;". form_radio(array('name' => 'DateRange', 'value' => '0', 'checked' => ('0' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Date')); ?> -->
<?php echo form_label('Dispatch instruction', 'Dispatch instruction') ."&nbsp;&nbsp;". form_radio(array("name"=>"DateRange", "id"=>"Date", "value"=>"0", 'checked'=>'checked')); ?>&nbsp;&nbsp;&nbsp;&nbsp;</td>
</td>
</td>
<td>
@ -383,11 +409,14 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12" id="Deliverydtdiv"><br/>
<label>Delivery Date</label>
<label>Dispatch Instruction</label>
<?php
$data = array('name' => 'Deliverydt','value' => set_value('Deliverydt',$Deliverydt),'id'=>'Deliverydt', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
// $data = array('name' => 'Dispatch','value' => set_value('Dispatch',$Import_DispatchDetails),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true');
// echo form_input($data);
$data = array('name' => 'Dispatch','value' => set_value('Dispatch',$Import_DispatchDetails),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
echo Form_textarea($data);
?>
</div>
@ -430,6 +459,18 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<div class="col-md-3">
<label>Place of Origin</label>
<div class="form-group">
<?php
// $data = array('name' => 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
// echo form_input($data);
$data = array('name' => 'PlaceOforigin','value' => set_value('PlaceOforigin',$Import_PlaceofOrgin),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
@ -439,18 +480,16 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-3">
<span for="payablefrom">Payable Terms</span>
<?php
foreach ($Payment as $rl):
if($PaymentTerms==$rl->ConfigValue){
$options6[$rl->ConfigValue] = $rl->ConfigValue;
if($PaymentTerms==$rl->PaymentTerms)
{
$options6[$rl->PaymentTerms] = $rl->PaymentTerms;
}
endforeach;
@ -458,9 +497,9 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
{
foreach ($Payment as $rl2):
if($PaymentTerms!=$rl2->ConfigValue){
$options6[$rl2->ConfigValue] = $rl2->ConfigValue;
if($PaymentTerms!=$rl2->PaymentTerms)
{
$options6[$rl2->PaymentTerms] = $rl2->PaymentTerms;
}
endforeach;
@ -731,7 +770,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<div class="col-md-6">
<label>Avail Bud Amount</label>
<label>Avail Bud Amount<?php echo "($INR)"?></label>
<div class="form-group">
<?php
$data = array('name' => 'CapitalbudAmt','value' => set_value('CapitalbudAmt'),'id'=>'CapitalbudAmt', 'class' => 'form-control' ,'readonly' => 'true');
@ -825,7 +864,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<div class="col-md-12">
<div class="col-md-12">
<div class="col-md-12" id="ADDCAPdiv">
<div class="col-md-6" align="right">
CGST In %
@ -853,7 +892,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<div class="col-md-12">
<div class="col-md-12" id="ADDCAPdiv3">
<div class="col-md-6" align="right">
SGST In %
@ -882,7 +921,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-12" id="ADDCAPdiv2">
<div class="col-md-6" align="right">
IGST In %
@ -910,7 +949,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<div class="col-md-12">
<div class="col-md-12" id="ADDCAPdiv1">
<div class="col-md-5 col-md-offset-4" align="right">
<label>Other Allowances In INR</label>
</div>
@ -931,7 +970,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-6" style="padding:0px;">
<div class="col-md-12">
<div class="col-md-4" >
Basic Price In INR:
Basic Price In<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -952,7 +991,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Landing charge
Landing charge<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -973,7 +1012,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
High seas sales charge
High seas sales charge<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -994,7 +1033,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Custom duty : (a)
Custom duty : (a)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1015,7 +1054,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty : (b)
Excise duty : (b)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1036,7 +1075,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty ED_cess : (C)
Excise duty ED_cess : (C)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1057,7 +1096,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty S & H cess :(d)
Excise duty S & H cess :(d)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1078,7 +1117,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Custom ED_cess : (e)
Custom ED_cess : (e)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1099,7 +1138,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Custom S & H cess : (f)
Custom S & H cess : (f)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1122,7 +1161,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-6" style="padding:0px;">
<div class="col-md-12">
<div class="col-md-4">
Additional Excise duty : (g)
Additional Excise duty : (g)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1143,7 +1182,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-8">
Gross duty payable
Gross duty payable<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1156,7 +1195,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-8">
Available Modvat set-off on import :
Available Modvat set-off on import :<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1171,7 +1210,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-12">
<div class="col-md-8">
Gross expenses due to custom duty:
Gross expenses due to custom duty:<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1213,7 +1252,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-12">
<div class="col-md-4">
Custom Duty Expenses
Custom Duty Expenses<?php echo "$INR"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1227,7 +1266,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
RMC Including Customers
RMC Including Customers<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1307,8 +1346,6 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
?>
</div>
</div>
<div class="col-md-6">
@ -1334,7 +1371,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<div class="col-md-6">
<label>Avail Bud Amount</label>
<label>Avail Bud Amount<?php echo "($INR)"?></label>
<div class="form-group">
<?php
$data = array('name' => 'EditCapitalbudAmt','value' => set_value('EditCapitalbudAmt'),'id'=>'EditCapitalbudAmt', 'class' => 'form-control' ,'readonly' => 'true');
@ -1429,7 +1466,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-12" style="border:1px solid #000;padding:0px;">
<div class="col-md-12">
<div class="col-md-12" id="EDITCAPdiv">
<div class="col-md-6" align="right">
CGST In %
@ -1457,7 +1494,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<div class="col-md-12">
<div class="col-md-12" id="EDITCAPdiv1">
<div class="col-md-6" align="right">
SGST In %
@ -1486,7 +1523,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-12" id="EDITCAPdiv2">
<div class="col-md-6" align="right">
IGST In %
@ -1514,10 +1551,11 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<div class="col-md-12">
<div class="col-md-12" id="EDITCAPdiv3">
<div class="col-md-5 col-md-offset-4" align="right">
<label>Other Allowances In INR</label>
</div>
<div class="col-md-3">
<div class="form-group">
<?php
@ -1534,7 +1572,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-6" style="padding:0px;">
<div class="col-md-12">
<div class="col-md-4" >
Basic Price In INR:
Basic Price In<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1555,7 +1593,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Landing charge
Landing charge<?php echo "$INR"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1576,7 +1614,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
High seas sales charge
High seas sales charge<?php echo "$INR"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1597,7 +1635,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Custom duty : (a)
Custom duty : (a)<?php echo "$INR"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1618,7 +1656,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty : (b)
Excise duty : (b)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1639,7 +1677,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty ED_cess : (C)
Excise duty ED_cess : (C)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1660,7 +1698,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty S & H cess :(d)
Excise duty S & H cess :(d)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1681,7 +1719,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Custom ED_cess : (e)
Custom ED_cess : (e)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1702,7 +1740,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Custom S & H cess : (f)
Custom S & H cess : (f)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1725,7 +1763,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-6" style="padding:0px;">
<div class="col-md-12">
<div class="col-md-4">
Additional Excise duty : (g)
Additional Excise duty : (g)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1746,7 +1784,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-8">
Gross duty payable
Gross duty payable<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1759,7 +1797,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-8">
Available Modvat set-off on import :
Available Modvat set-off on import :<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1774,7 +1812,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-12">
<div class="col-md-8">
Gross expenses due to custom duty:
Gross expenses due to custom duty<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1816,7 +1854,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-12">
<div class="col-md-4">
Custom Duty Expenses
Custom Duty Expenses<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1830,7 +1868,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
RMC Including Customers
RMC Including Customers<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -1931,7 +1969,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<div class="col-md-6">
<label>Avail Bud Amount</label>
<label>Avail Bud Amount<?php echo "($INR)"?></label>
<div class="form-group">
<?php
$data = array('name' => 'ViewCapitalbudAmt','value' => set_value('ViewCapitalbudAmt'),'id'=>'ViewCapitalbudAmt', 'class' => 'form-control' ,'readonly' => 'true');
@ -2025,7 +2063,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<div class="col-md-12">
<div class="col-md-12">
<div class="col-md-12" id="VIEWCAPdiv">
<div class="col-md-6" align="right">
CGST In %
@ -2053,7 +2091,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<div class="col-md-12">
<div class="col-md-12" id="VIEWCAPdiv1">
<div class="col-md-6" align="right">
SGST In %
@ -2082,7 +2120,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-12" id="VIEWCAPdiv2">
<div class="col-md-6" align="right">
IGST In %
@ -2110,7 +2148,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
</div>
<div class="col-md-12">
<div class="col-md-12" id="VIEWCAPdiv3">
<div class="col-md-5 col-md-offset-4" align="right">
<label>Other Allowances In INR</label>
</div>
@ -2130,7 +2168,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-6" style="padding:0px;">
<div class="col-md-12">
<div class="col-md-4" >
Basic Price In INR:
Basic Price In<?php echo "$INR"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -2151,7 +2189,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Landing charge
Landing charge<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -2172,7 +2210,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
High seas sales charge
High seas sales charge<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -2193,7 +2231,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Custom duty : (a)
Custom duty : (a)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -2217,7 +2255,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
Excise duty : (b)
</div>
<div class="col-md-4">
<div class="form-group">
<div class="form-group"><?php echo "($INR)"?>
<?php
$data = array('name' => 'ViewExcisedutyTax','value' => set_value('ViewExcisedutyTax'),'id'=>'ViewExcisedutyTax', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'EditRatechange();','readonly' => 'true');
echo form_input($data);
@ -2235,7 +2273,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty ED_cess : (C)
Excise duty ED_cess : (C)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -2256,7 +2294,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
Excise duty S & H cess :(d)
Excise duty S & H cess :(d)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -2321,7 +2359,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-6" style="padding:0px;">
<div class="col-md-12">
<div class="col-md-4">
Additional Excise duty : (g)
Additional Excise duty : (g)<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -2355,7 +2393,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-8">
Available Modvat set-off on import :
Available Modvat set-off on import :<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -2370,7 +2408,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-12">
<div class="col-md-8">
Gross expenses due to custom duty:
Gross expenses due to custom duty<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -2412,7 +2450,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-12">
<div class="col-md-4">
Custom Duty Expenses
Custom Duty Expenses<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -2426,7 +2464,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-12">
<div class="col-md-4">
RMC Including Customers
RMC Including Customers<?php echo "($INR)"?>
</div>
<div class="col-md-4">
<div class="form-group">
@ -2473,7 +2511,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<br/>
</table>
<div class="col-md-12" style="border: 1px solid;">
<div class="col-md-12" style="border: 1px solid;" id="CAPdiv" >
<div class="col-md-3">
<label>CGST In INR</label>
<?php
@ -2513,7 +2551,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-12" style="border: 1px solid;padding:1% 0%;" id="HideImportTaxTotal" style="display:none;">
<div class="col-md-4">
<label >Total Landing Charge :</label>
<label >Total Landing Charge:<?php echo "($INR)"?></label>
<?php
$data = array('name' => 'txttotallanding','value' => set_value('txttotallanding',$TotalLanding),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -2522,7 +2560,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-4">
<label >Total High seas sales Charge :</label>
<label >Total High seas sales Charge:<?php echo "($INR)"?></label>
<?php
$data = array('name' => 'txttotalhighseas','value' => set_value('txttotalhighseas',$tothighseas),'id'=>'txttotalhighseas', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -2531,7 +2569,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-4">
<label >Total Custom Duty Charge :</label>
<label >Total Custom Duty Charge:<?php echo "($INR)"?></label>
<?php
$data = array('name' => 'txttotalcustom','value' => set_value('txttotalcustom',$totcustom),'id'=>'txttotalcustom', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -2540,7 +2578,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-4">
<label >Total Excise duty Charge :</label>
<label >Total Excise duty Charge:<?php echo "($INR)"?></label>
<?php
$data = array('name' => 'txttotalexcise','value' => set_value('txttotalexcise',$totexciseduty),'id'=>'txttotalexcise', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -2549,7 +2587,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-4">
<label >Total Excise duty ED_cess Charge :</label>
<label >Total Excise duty ED_cess Charge:<?php echo "($INR)"?></label>
<?php
$data = array('name' => 'txttotalexciseED','value' => set_value('txttotalexciseED',$totexcisedutyED),'id'=>'txttotalexciseED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -2559,7 +2597,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-4">
<label >Total Excise duty S & H cess Charge :</label>
<label >Total Excise duty S & H cess Charge:<?php echo "($INR)"?></label>
<?php
$data = array('name' => 'txttotalexciseSH','value' => set_value('txttotalexciseSH',$totexciseSH),'id'=>'txttotalexciseSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -2568,7 +2606,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-4">
<label >Total Custom ED_cess Charge :</label>
<label >Total Custom ED_cess Charge:<?php echo "($INR)"?></label>
<?php
$data = array('name' => 'txttotalcustomED','value' => set_value('txttotalcustomED',$totcustomED),'id'=>'txttotalcustomED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -2577,7 +2615,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-4">
<label >Total Custom S & H cess Charge :</label>
<label >Total Custom S & H cess Charge:<?php echo "($INR)"?></label>
<?php
$data = array('name' => 'txttotalcustomSH','value' => set_value('txttotalcustomSH',$totcustomSH),'id'=>'txttotalcustomSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -2586,7 +2624,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-4">
<label >Total Additional Excise duty Charge :</label>
<label >Total Additional Excise duty Charge:<?php echo "($INR)"?></label>
<?php
$data = array('name' => 'txttotalAdditionalExciseduty','value' => set_value('txttotalAdditionalExciseduty',$totaddtnlexcise),'id'=>'txttotalAdditionalExciseduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -2596,7 +2634,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-4">
<label >Total Gross duty payable Charge :</label>
<label >Total Gross duty payable Charge:<?php echo "($INR)"?></label>
<?php
$data = array('name' => 'txttotalgrossduty','value' => set_value('txttotalgrossduty',$totgrossduty),'id'=>'txttotalgrossduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -2605,7 +2643,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
</div>
<div class="col-md-4">
<label >Total Available Modvat set-off on import Charge :</label>
<label >Total Available Modvat set-off on import Charge:<?php echo "($INR)"?></label>
<?php
$data = array('name' => 'txttotalavlmodvat','value' => set_value('txttotalavlmodvat',$totavlmodvat),'id'=>'txttotalavlmodvat', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -2615,7 +2653,7 @@ document.getElementById('currencyTypeDiv').style.display = 'block';
<div class="col-md-4">
<label >Total Gross expenses due to custom duty Charge :</label>
<label >Total Gross expenses due to custom duty Charge:<?php echo "($INR)"?></label>
<?php
$data = array('name' => 'txttotalgrossexpense','value' => set_value('txttotalgrossexpense',$totgrossexpense),'id'=>'txttotalgrossexpense', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;');
@ -2760,6 +2798,26 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '0:+10'
});
var capital=<?php echo json_encode($CapitalRange, JSON_PRETTY_PRINT) ?>;
//alert(capital);
if(capital==0)
{
$('#CAPdiv').hide();
$('#ADDCAPdiv').hide();
$('#ADDCAPdiv1').hide();
$('#ADDCAPdiv2').hide();
$('#ADDCAPdiv3').hide();
$('#EDITCAPdiv').hide();
$('#EDITCAPdiv1').hide();
$('#EDITCAPdiv2').hide();
$('#EDITCAPdiv3').hide();
$('#VIEWCAPdiv').hide();
$('#VIEWCAPdiv1').hide();
$('#VIEWCAPdiv2').hide();
$('#VIEWCAPdiv3').hide();
//$('#DOMdiv').hide();
}
$('#drpSupplier').change(function() {
var id = $('#drpSupplier').val();
@ -4542,7 +4600,8 @@ $("#EdittxtTotalOrderValue").val('');
}
function Save(status)
{
{ //alert('save function');
if(status == '0')
{
@ -4568,6 +4627,8 @@ $('#txtStatus').val(stat);
if(validate())
{
if(document.getElementById('serviceTax').rows.length < 2)
{
alert('Please Select Line item to Create PO');
@ -4576,11 +4637,18 @@ $('#txtStatus').val(stat);
}
else
{
//alert('else');
$('#content').loader('show');
//salert('ss');
$.ajax({
data:$('.CapitalPO').serialize()+"&ExchangeRateOn="+ExchangeRateOn+"&PaymentMethod="+PaymentMethod+"&PayableAT="+PayableAT+"&PaymentDate="+PaymentDate,
type:"POST",
url:"<?php echo base_url() ?>purchaseorder/EditCapitalPurchaseOrder",
success:function(data) {
if(data)
{
@ -4592,7 +4660,7 @@ $('#txtStatus').val(stat);
$('#txtDeliveryAddress').val('');
clearAfterAddLineItemAdd();
window.location ="purchaseorderListing";
//window.location ="purchaseorderListing";
}
else