inward po code merged

This commit is contained in:
venbatechnologies@gmail.com 2017-12-18 19:16:05 +05:30
parent 997547b641
commit 33a76fe9f0
9 changed files with 17432 additions and 16979 deletions

View File

@ -308,7 +308,7 @@ class cashbook extends BaseController
$words1 = array('2' => 'twenty', $words1 = array('2' => 'twenty',
'3' => 'thirty', '4' => 'fourty', '3' => 'thirty', '4' => 'fourty',
'5' => 'fifty', '6' => 'sixty', '7' => 'seventy', '5' => 'fifty', '6' => 'sixty', '7' => 'seventy',
'8' => 'eighty', '9' =>'ninty'); '8' => 'eighty', '9' =>'ninety');
$words12 = array('11' => 'eleven', $words12 = array('11' => 'eleven',
'12' => 'twelve', '13' => 'thirteen', '14' => 'fourteen', '12' => 'twelve', '13' => 'thirteen', '14' => 'fourteen',

View File

@ -391,7 +391,7 @@ class purchaseorder extends BaseController
$PAYTERM=$TER->PaymentTerms; $PAYTERM=$TER->PaymentTerms;
} }
$data['getdata'] = $this->purchaseorder_model->getfunction($PONO);
$data['MaxPODate'] = $this->purchaseorder_model->getLastReleasedPODate(); $data['MaxPODate'] = $this->purchaseorder_model->getLastReleasedPODate();
$data['TaxType'] = $this->purchaseorder_model->getConfigValue('C006'); $data['TaxType'] = $this->purchaseorder_model->getConfigValue('C006');
$data['FreightType'] = $this->purchaseorder_model->getConfigValue('C018'); $data['FreightType'] = $this->purchaseorder_model->getConfigValue('C018');
@ -401,7 +401,7 @@ class purchaseorder extends BaseController
$data['POItem'] = $this->purchaseorder_model->GetServicePurchaseOrderDetails($PONO); $data['POItem'] = $this->purchaseorder_model->GetServicePurchaseOrderDetails($PONO);
$data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO); $data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO);
$data['getdata'] = $this->purchaseorder_model->getfunction($PONO);
$data['WorkStatus']=$this->purchaseorder_model->getStatus(7); $data['WorkStatus']=$this->purchaseorder_model->getStatus(7);
$this->global['pageTitle'] = 'Resico : Edit Service Purchase order form'; $this->global['pageTitle'] = 'Resico : Edit Service Purchase order form';
@ -413,8 +413,9 @@ class purchaseorder extends BaseController
$data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetails($PONO); $data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetails($PONO);
$data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO); $data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO);
$data['WorkStatus']=$this->purchaseorder_model->getStatus(7); $data['WorkStatus']=$this->purchaseorder_model->getStatus(7);
$this->global['pageTitle'] = 'Resico : Edit Revenue Purchase order form'; $this->global['pageTitle'] = 'Siddharth : Edit Revenue Purchase order form';
$this->loadViews("editRevenuepurchaseorder", $this->global, $data, NULL); $this->loadViews("editRevenuepurchaseorder", $this->global, $data, NULL);
} }
else if($ReqType == IMPORT) else if($ReqType == IMPORT)
{ {
@ -2801,14 +2802,14 @@ $point=0;
'13' => 'thirteen', '14' => 'fourteen', '13' => 'thirteen', '14' => 'fourteen',
'15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen', '15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen',
'18' => 'eighteen', '19' =>'nineteen', '20' => 'twenty', '18' => 'eighteen', '19' =>'nineteen', '20' => 'twenty',
'30' => 'thirty', '40' => 'forty', '50' => 'fifty', '30' => 'thirty', '40' => 'fourty', '50' => 'fifty',
'60' => 'sixty', '70' => 'seventy', '60' => 'sixty', '70' => 'seventy',
'80' => 'eighty', '90' => 'ninety','06'=>'Zero Six','01'=>'Zero One','02'=>'Zero Two' '80' => 'eighty', '90' => 'ninety','06'=>'Zero Six','01'=>'Zero One','02'=>'Zero Two'
,'03'=>'Zero Three','04'=>'Zero Four','05'=>'Zero Five','07'=>'Zero Seven','08'=>'Zero Eight','09'=>'Zero Nine'); ,'03'=>'Zero Three','04'=>'Zero Four','05'=>'Zero Five','07'=>'Zero Seven','08'=>'Zero Eight','09'=>'Zero Nine');
$words1 = array('2' => 'twenty', $words1 = array('2' => 'twenty',
'3' => 'thirty', '4' => 'fourty', '3' => 'thirty', '4' => 'fourty',
'5' => 'fifty', '6' => 'sixty', '7' => 'seventy', '5' => 'fifty', '6' => 'sixty', '7' => 'seventy',
'8' => 'eighty', '9' =>'ninty'); '8' => 'eighty', '9' =>'ninety');
$words12 = array('11' => 'eleven', $words12 = array('11' => 'eleven',
'12' => 'twelve', '13' => 'thirteen', '14' => 'fourteen', '12' => 'twelve', '13' => 'thirteen', '14' => 'fourteen',
'15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen', '15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen',
@ -2893,13 +2894,13 @@ $point=0;
'13' => 'thirteen', '14' => 'fourteen', '13' => 'thirteen', '14' => 'fourteen',
'15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen', '15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen',
'18' => 'eighteen', '19' =>'nineteen', '20' => 'twenty', '18' => 'eighteen', '19' =>'nineteen', '20' => 'twenty',
'30' => 'thirty', '40' => 'forty', '50' => 'fifty', '30' => 'thirty', '40' => 'fourty', '50' => 'fifty',
'60' => 'sixty', '70' => 'seventy', '60' => 'sixty', '70' => 'seventy',
'80' => 'eighty', '90' => 'ninety'); '80' => 'eighty', '90' => 'ninety');
$words1 = array('2' => 'twenty', $words1 = array('2' => 'twenty',
'3' => 'thirty', '4' => 'fourty', '3' => 'thirty', '4' => 'fourty',
'5' => 'fifty', '6' => 'sixty', '7' => 'seventy', '5' => 'fifty', '6' => 'sixty', '7' => 'seventy',
'8' => 'eighty', '9' =>'ninty'); '8' => 'eighty', '9' =>'ninety');
$words12 = array('11' => 'eleven', $words12 = array('11' => 'eleven',
'12' => 'twelve', '13' => 'thirteen', '14' => 'fourteen', '12' => 'twelve', '13' => 'thirteen', '14' => 'fourteen',
'15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen', '15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen',

View File

@ -431,7 +431,7 @@ class supplier extends BaseController
/** /**
* To view the Supplier information and load's the edit supplier screen * To view the Supplier information and load's the edit supplier screen
*/ */
function viewusupplier($SID = '') function viewsupplier($SID = '')
{ {
$Payment = ''; $Payment = '';
if($SID == '') if($SID == '')

103
application/views/EditservicePurchaseorder.php Normal file → Executable file
View File

@ -179,7 +179,27 @@ var insuranceOpt = '<?php echo $InsuranceOptions; ?>';
var SchName = '<?php echo $DeliverSchedule; ?>'; var SchName = '<?php echo $DeliverSchedule; ?>';
var DelDt = '<?php echo $Deliverydt; ?>'; var DelDt = '<?php echo $Deliverydt; ?>';
var statuscheck='<?php echo $PONOStatus;?>';
$(document).ready(function () { $(document).ready(function () {
if(statuscheck=="<?php echo SPECIAL_PO;?>")
{
$('#splpodiv').show();
}
else
{
$('#splpodiv').hide();
}
$('#PoTypeOptions').attr("style", "pointer-events: none;"); $('#PoTypeOptions').attr("style", "pointer-events: none;");
if(insuranceOpt=="1"){ if(insuranceOpt=="1"){
@ -486,7 +506,7 @@ function ExceedQuantityCheck()
// RequistQuantity // RequistQuantity
var EnterQuantity = $("#EditQuantity").val()== '' ? "0.00" : parseFloat($("#EditQuantity").val()); var EnterQuantity = $("#EditQuantity").val()== '' ? "0.00" : parseFloat($("#EditQuantity").val());
var ReqQuantity = parseFloat(RequistQuantity); var ReqQuantity = parseFloat(RequistQuantity);
//alert(ReqQuantity); //swal(ReqQuantity);
if(EnterQuantity > ReqQuantity) if(EnterQuantity > ReqQuantity)
{ {
swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.'); swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
@ -1082,7 +1102,7 @@ $(document).ready(function () {
<!-- Modal content--> <!-- Modal content-->
<form> <form>
<div class="modal-content" style="width:900px;"> <div class="modal-content" style="width:900px;">
<div class="modal-header" style="background-color: #5d0411;color:#fff;"> <div class="modal-header" style="background-color:#5d0411;color:#fff;">
<center><h4>Add Service Purchase Order Item </h4></center> <center><h4>Add Service Purchase Order Item </h4></center>
</div> </div>
<div align="left"> <div align="left">
@ -1360,7 +1380,7 @@ $(document).ready(function () {
<!-- Modal content--> <!-- Modal content-->
<form> <form>
<div class="modal-content" style="width:900px;"> <div class="modal-content" style="width:900px;">
<div class="modal-header" style="background-color: #5d0411;color:#fff;"> <div class="modal-header" style="background-color:#5d0411;color:#fff;">
<center><h4>Edit Service Purchase Order Item </h4></center> <center><h4>Edit Service Purchase Order Item </h4></center>
</div> </div>
<div align="left"> <div align="left">
@ -1633,7 +1653,7 @@ $(document).ready(function () {
<!-- Modal content--> <!-- Modal content-->
<form> <form>
<div class="modal-content" style="width:900px;"> <div class="modal-content" style="width:900px;">
<div class="modal-header" style="background-color: #5d0411;color:#fff;"> <div class="modal-header" style="background-color:#5d0411;color:#fff;">
<center><h4>View Service Purchase Order Item </h4></center> <center><h4>View Service Purchase Order Item </h4></center>
</div> </div>
<div align="left"> <div align="left">
@ -2091,6 +2111,67 @@ $(document).ready(function () {
</div> </div>
</div> </div>
<div class="col-md-12" id="splpodiv">
<div class="col-md-12"><label>Special po Table List</label>
<table id="table2" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;" >
<thead style="background-color:#ddf">
<tr>
<th>Bill No </th>
<!-- <th>Materials</th> -->
<!-- <th>Delivery Challan No</th> -->
<!-- <th>Delivery Challan Date</th>
<th>Vehicle No</th>
<th>Courier No</th> -->
<!-- <th>Quantity</th> -->
<th>File</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
if(!empty($getdata))
{
foreach($getdata as $gd)
{
?>
<tr>
<td><?php echo $gd->BillNo ?></td>
<!-- <td><?php echo $gd->MaterialCode ?> - <?php echo $gd->MaterialName ?></td> -->
<!-- <td><?php echo $gd->DeliveryChellanOrInvoiceNo?></td>
<td><?php $date = new DateTime($gd->DeliveryChellanDate);
echo $date->format('d-m-Y'); ?></td>
<td><?php echo $gd->VehicleNo?></td>
<td><?php echo $gd->CourierNo?></td> -->
<!-- <td><?php echo $gd->QuantityAsPerInvoice?></td> -->
<td><?php echo $gd->FilePath?></td>
<td><a target="_blank" href="<?php echo base_url().'uploads/BillFiles/'?><?php echo $gd->FilePath ?>"><i class="fa fa-download" ></i></a></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
<div class="col-md-12"> <div class="col-md-12">
<div align="right"><br/> <div align="right"><br/>
@ -2169,7 +2250,7 @@ $('.AddService').click(function(){
tinyMCE.triggerSave(); tinyMCE.triggerSave();
if(validateServiceTax()) if(validateServiceTax())
{ {
// alert('inside Addservice'); // swal('inside Addservice');
var temp = parseInt(index) + 1; var temp = parseInt(index) + 1;
var Reqnumber = $('#ReqNo').val(); var Reqnumber = $('#ReqNo').val();
var departmentName = $('#deptName').val(); var departmentName = $('#deptName').val();
@ -2387,7 +2468,7 @@ function populateValueMainFormForEditServiceTax()
do { do {
i += 1; i += 1;
var tr= document.getElementById(i); var tr= document.getElementById(i);
//alert(tr); //swal(tr);
if(tr != null) if(tr != null)
{ {
cells = tr.getElementsByTagName('td'); cells = tr.getElementsByTagName('td');
@ -2527,7 +2608,7 @@ function DeleteRow(rowid)
}); });
// alert(result); // swal(result);
if(result == '0') if(result == '0')
{ {
var DelRows = $('#txtDeletedRow').val(); var DelRows = $('#txtDeletedRow').val();
@ -2565,11 +2646,11 @@ function DeleteRow(rowid)
if(data) if(data)
{ {
$('#content').loader('hide'); $('#content').loader('hide');
swal(data); alert(data);
} }
else else
{ {
swal("Error"); alert("Error");
} }
}}); }});
@ -2584,7 +2665,7 @@ function populateValueMainFormForDeleteItem(rowid)
{ {
// alert(rows); // swal(rows);
var TotCgst = $('#txtTotCgst').val(); var TotCgst = $('#txtTotCgst').val();
var TotSgst = $('#txtTotSgst').val(); var TotSgst = $('#txtTotSgst').val();
var TotIgst = $('#txtTotIgst').val(); var TotIgst = $('#txtTotIgst').val();
@ -2604,7 +2685,7 @@ function populateValueMainFormForDeleteItem(rowid)
var ItemRate = $('#itemRate'+rowid).val() == '' ? '0.00' : $('#itemRate'+rowid).val(); var ItemRate = $('#itemRate'+rowid).val() == '' ? '0.00' : $('#itemRate'+rowid).val();
var FrequencyValue = $('#FrequencyValue'+rowid).val() == '' ? '1.00' : $('#FrequencyValue'+rowid).val(); var FrequencyValue = $('#FrequencyValue'+rowid).val() == '' ? '1.00' : $('#FrequencyValue'+rowid).val();
var BasicVal = parseFloat(Quantity) * parseFloat(ItemRate) * parseFloat(FrequencyValue); var BasicVal = parseFloat(Quantity) * parseFloat(ItemRate) * parseFloat(FrequencyValue);
//alert(TotalVal); //swal(TotalVal);
TotCgst = parseFloat(TotCgst) - parseFloat(AfterCgst); TotCgst = parseFloat(TotCgst) - parseFloat(AfterCgst);
TotSgst = parseFloat(TotSgst) - parseFloat(AfterSgst); TotSgst = parseFloat(TotSgst) - parseFloat(AfterSgst);

View File

@ -97,7 +97,7 @@ function loadAccountType(id)
$('#accode').find('option').remove().end().append('<option value="-1">Select Account Name</option>').val('Select Account Code'); $('#accode').find('option').remove().end().append('<option value="-1">Select Account Name</option>').val('Select Account Code');
$.each(t,function(i,item){ $.each(t,function(i,item){
if(item.type == 'EXPENSE') if(item.type == 'PAYMENT')
{ {
$("#accode").append( $('<option></option>').val(item.code).html(item.name)); $("#accode").append( $('<option></option>').val(item.code).html(item.name));
} }

799
application/views/alterpurchaseorder.php Normal file → Executable file

File diff suppressed because it is too large Load Diff

110
application/views/editRevenuepurchaseorder.php Normal file → Executable file
View File

@ -205,7 +205,23 @@ if(!empty($RequistionDetails))
var DelDt = '<?php echo $Deliverydt; ?>'; var DelDt = '<?php echo $Deliverydt; ?>';
var insurancestatus = '<?php echo $insurencestatus;?>'; var insurancestatus = '<?php echo $insurencestatus;?>';
var insuranceno = '<?php echo $insurenceno;?>'; var insuranceno = '<?php echo $insurenceno;?>';
var statuscheck='<?php echo $PONOStatus;?>';
$(document).ready(function () { $(document).ready(function () {
if(statuscheck=="<?php echo SPECIAL_PO;?>")
{
$('#splpodiv').show();
}
else
{
$('#splpodiv').hide();
}
$('#PoTypeOptions').attr("style", "pointer-events: none;"); $('#PoTypeOptions').attr("style", "pointer-events: none;");
if(DelOpt=="0"){ if(DelOpt=="0"){
@ -1658,7 +1674,7 @@ function calculatePackaging(isEdit)
{ {
if($('#EditMaterialCode').val() == "0") if($('#EditMaterialCode').val() == "0")
{ {
// alert('Please Select the Material Code'); // swal('Please Select the Material Code');
$('#EditMaterialCode').focus(); $('#EditMaterialCode').focus();
return false; return false;
} }
@ -1754,10 +1770,10 @@ function calculatePackaging(isEdit)
}else if(isEdit == '2')// for view model freight calculation }else if(isEdit == '2')// for view model freight calculation
{ {
//alert("view Frieght"); //swal("view Frieght");
if($('#ViewMaterialCode').val() == "0") if($('#ViewMaterialCode').val() == "0")
{ {
// alert('Please Select the Material Code'); // swal('Please Select the Material Code');
$('#ViewMaterialCode').focus(); $('#ViewMaterialCode').focus();
return false; return false;
} }
@ -1782,7 +1798,7 @@ function calculatePackaging(isEdit)
var FreightValue = parseFloat($('#txtViewFreight').val()); var FreightValue = parseFloat($('#txtViewFreight').val());
var UOM = parseFloat($('#ViewUOM').val()); var UOM = parseFloat($('#ViewUOM').val());
var Quantity = parseFloat($('#ViewQuantity').val()); var Quantity = parseFloat($('#ViewQuantity').val());
//alert(FreightType); //swal(FreightType);
var AfterFreight = 0.0; var AfterFreight = 0.0;
// if(FreightType == PercentageType) // if(FreightType == PercentageType)
// { // {
@ -1852,13 +1868,13 @@ function calculatePackaging(isEdit)
cgst= $('#ViewCGST').val(); cgst= $('#ViewCGST').val();
sgst= $('#ViewSGST').val(); sgst= $('#ViewSGST').val();
igst= $('#ViewIGST').val(); igst= $('#ViewIGST').val();
//alert(igst); //swal(igst);
afterdiscount= $('#txtViewAfterDiscount').val(); afterdiscount= $('#txtViewAfterDiscount').val();
//alert(afterdiscount); //swal(afterdiscount);
packaging12= $('#txtViewAfterPackaging').val(); packaging12= $('#txtViewAfterPackaging').val();
//alert( packaging12); //swal( packaging12);
freight12= $('#txtViewAfterFreight').val();//ViewAfterCGST freight12= $('#txtViewAfterFreight').val();//ViewAfterCGST
//alert(freight12); //swal(freight12);
calculateCgstTax(basicvalue,cgst,afterdiscount,packaging12,freight12); calculateCgstTax(basicvalue,cgst,afterdiscount,packaging12,freight12);
calculateSgstTax(basicvalue,sgst,afterdiscount,packaging12,freight12); calculateSgstTax(basicvalue,sgst,afterdiscount,packaging12,freight12);
calculateIgstTax(basicvalue,igst,afterdiscount,packaging12,freight12) calculateIgstTax(basicvalue,igst,afterdiscount,packaging12,freight12)
@ -1897,7 +1913,7 @@ function calculatePackaging(isEdit)
{ {
StateTaxCheck = $("input:radio[name='Range']:checked").val(); StateTaxCheck = $("input:radio[name='Range']:checked").val();
$('#txtPoRange').val(StateTaxCheck) ; $('#txtPoRange').val(StateTaxCheck) ;
//alert('Radio clicke:'+StateTaxCheck); //swal('Radio clicke:'+StateTaxCheck);
if(StateTaxCheck == "0") if(StateTaxCheck == "0")
{ {
// style="display:none;" // style="display:none;"
@ -2721,7 +2737,7 @@ function calculateEditTaxValue()
<!-- Modal content--> <!-- Modal content-->
<form> <form>
<div class="modal-content" style="width:1070px;"> <div class="modal-content" style="width:1070px;">
<div class="modal-header" style="background-color: #5d0411;color:#fff;"> <div class="modal-header" style="background-color:#5d0411;color:#fff;">
<center><h4>Select Revenue Purchase Order Line Item </h4></center> <center><h4>Select Revenue Purchase Order Line Item </h4></center>
</div> </div>
<div align="left"> <div align="left">
@ -3110,7 +3126,7 @@ function calculateEditTaxValue()
<!-- Modal content--> <!-- Modal content-->
<form> <form>
<div class="modal-content" style="width:1070px;"> <div class="modal-content" style="width:1070px;">
<div class="modal-header" style="background-color: #5d0411;color:#fff;"> <div class="modal-header" style="background-color:#5d0411;color:#fff;">
<center><h4>Edit Revenue Purchase Order Line Item </h4></center> <center><h4>Edit Revenue Purchase Order Line Item </h4></center>
</div> </div>
<div align="left"> <div align="left">
@ -3486,7 +3502,7 @@ function calculateEditTaxValue()
<!-- Modal content--> <!-- Modal content-->
<form> <form>
<div class="modal-content" style="width:1070px;"> <div class="modal-content" style="width:1070px;">
<div class="modal-header" style="background-color: #5d0411;color:#fff;"> <div class="modal-header" style="background-color:#5d0411;color:#fff;">
<center><h4>View Revenue Purchase Order Line Item </h4></center> <center><h4>View Revenue Purchase Order Line Item </h4></center>
</div> </div>
<div align="left"> <div align="left">
@ -4044,8 +4060,61 @@ function calculateEditTaxValue()
echo form_textarea($data); echo form_textarea($data);
?> ?>
<input type="hidden" name="SpcialInstruction" id="SpcialInstruction" value=""> <input type="hidden" name="SpcialInstruction" id="SpcialInstruction" value="">
</div> </div>
</div> </div>
<div class="col-md-12" id="splpodiv">
<div class="col-md-12"><label>Special po Table List</label>
<table id="table2" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;" >
<thead style="background-color:#ddf">
<tr>
<th>Bill No </th>
<!-- <th>Materials</th> -->
<th>Delivery Challan No</th>
<th>Delivery Challan Date</th>
<th>Vehicle No</th>
<th>Courier No</th>
<!-- <th>Quantity</th> -->
<th>File</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
if(!empty($getdata))
{
foreach($getdata as $gd)
{
?>
<tr>
<td><?php echo $gd->BillNo ?></td>
<!-- <td><?php echo $gd->MaterialCode ?> - <?php echo $gd->MaterialName ?></td> -->
<td><?php echo $gd->DeliveryChellanOrInvoiceNo?></td>
<td><?php $date = new DateTime($gd->DeliveryChellanDate);
echo $date->format('d-m-Y'); ?></td>
<td><?php echo $gd->VehicleNo?></td>
<td><?php echo $gd->CourierNo?></td>
<!-- <td><?php echo $gd->QuantityAsPerInvoice?></td> -->
<td><?php echo $gd->FilePath?></td>
<td><a target="_blank" href="<?php echo base_url().'uploads/BillFiles/'?><?php echo $gd->FilePath ?>"><i class="fa fa-download" ></i></a></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
<div class="row" style="padding: 2% 0%"> <div class="row" style="padding: 2% 0%">
<div class="col-md-3 col-md-offset-9"><br/> <div class="col-md-3 col-md-offset-9"><br/>
<input type="hidden" name="txtPoRange" id="txtPoRange" /> <input type="hidden" name="txtPoRange" id="txtPoRange" />
@ -4054,13 +4123,16 @@ function calculateEditTaxValue()
<input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $index;?>"> <input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $index;?>">
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" /> <input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>"/> <input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>"/>
<?php if($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED ) { <?php if($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED || $PONOStatus == REQITEM_Emergency_PO_CREATED ) {
if($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED){?> if($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED){?>
<a class="btn btn-primary Save" ID="Save" onclick="Save(0)" >&nbsp;&nbsp;<span class="bold">Save</span></a> <?php }?> <a class="btn btn-primary Save" ID="Save" onclick="Save(0)" >&nbsp;&nbsp;<span class="bold">Save</span></a> <?php }?>
<a class="btn btn-primary Save" ID="Submit" onclick="Save(1)" >&nbsp;&nbsp;<span class="bold">Submit</span></a> <a class="btn btn-primary Save" ID="Submit" onclick="Save(1)" >&nbsp;&nbsp;<span class="bold">Submit</span></a>
<a class="btn btn-primary Save" ID="Cancel" href="<?php echo base_url().'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">Cancel</span></a> <a class="btn btn-primary Save" ID="Cancel" href="<?php echo base_url().'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">Cancel</span></a>
<?php }else {?> <?php }
<a class="btn btn-primary" ID="Viewsave" onclick="Save(2)">&nbsp;&nbsp;<span class="bold">Submit</span></a>
else {?>
<!-- <a class="btn btn-primary" ID="Viewsave" onclick="Save(2)">&nbsp;&nbsp;<span class="bold">Submit</span></a> -->
<a class="btn btn-primary" ID="OK" href="<?php echo base_url().'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">OK</span></a> <?php } ?> <a class="btn btn-primary" ID="OK" href="<?php echo base_url().'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">OK</span></a> <?php } ?>
@ -4748,12 +4820,12 @@ function DeleteRow(rowid)
if(data) if(data)
{ {
$('#content').loader('hide'); $('#content').loader('hide');
swal(data); alert(data);
} }
else else
{ {
swal("Error"); alert("Error");
} }
}}); }});
@ -4883,7 +4955,7 @@ var totaldiscount = $('#txtTotalDiscount').val();
if(data) if(data)
{ {
$('#content').loader('hide'); $('#content').loader('hide');
swal(data); alert(data);
$('#txtRowCount').val(''); $('#txtRowCount').val('');
$('#txtDeletedRow').val(''); $('#txtDeletedRow').val('');
$('#txtStatus').val(''); $('#txtStatus').val('');
@ -4895,7 +4967,7 @@ var totaldiscount = $('#txtTotalDiscount').val();
else else
{ {
$('#content').loader('hide'); $('#content').loader('hide');
swal("Error"); alert("Error");
} }
} }

View File

@ -200,7 +200,7 @@ if($RecCount > 0)
</td> </td>
<td colspan="10"> <td colspan="10">
<!-- <center><b><?php echo $CompanyName;?></b><br/><?php echo $CompanyAddress; ?><br/> PaySlip for the Month of <?php echo $PayOn ?></center> --> <!-- <center><b><?php echo $CompanyName;?></b><br/><?php echo $CompanyAddress; ?><br/> PaySlip for the Month of <?php echo $PayOn ?></center> -->
<center><b>SIDDHARTH INDUSTRIES</b><br/> Survey No: 168/1C3,Pennalur Pet Road,Goonipalyam village, <br/>Uthukottai Taluk,Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026. <br/> PaySlip for the Month of <?php echo $PayOn ?></center> <center><b>RESICO INDUSTRIES</b><br/> Factory : 196/4 B, 126, Mettupalayam Village, <br/>Sriperumbudur Taluk, Kancheepuram Dist, Tamil Nadu, India. Pin code : 631604 . <br/> PaySlip for the Month of <?php echo $PayOn ?></center>
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -204,7 +204,7 @@ function vaildateBeforeOpenModal()
}; };
var CollIndex = 0; var CollIndex = 0;
// alert(new Date(year,month,day)); // swal(new Date(year,month,day));
$(function() $(function()
{ {
@ -618,7 +618,7 @@ $('#EditPackagingType').change(function() {
// $('#drpFreight').change(function() { // $('#drpFreight').change(function() {
// if($('#Rate').val() != '' && $('#MaterialCode').val() != "0" ) // if($('#Rate').val() != '' && $('#MaterialCode').val() != "0" )
// { // {
// alert(); // swal();
// $('#txtFreight').val(''); // $('#txtFreight').val('');
// $('#txtAfterFreight').val(''); // $('#txtAfterFreight').val('');
// selValue = $("#drpFreight").val() ; // selValue = $("#drpFreight").val() ;
@ -646,7 +646,7 @@ $('#EditPackagingType').change(function() {
// } // }
// else // else
// { // {
// alert('Please Select MaterialCode and Rate Field Value'); // swal('Please Select MaterialCode and Rate Field Value');
// $('#drpFreight').val("0"); // $('#drpFreight').val("0");
// $('#Rate').focus(); // $('#Rate').focus();
// } // }
@ -950,7 +950,7 @@ function calculateDiscount(isEdit)
* To calcuate the Packaging */ * To calcuate the Packaging */
function calculatePackaging(isEdit) function calculatePackaging(isEdit)
{ {
// alert(PackagingCalculation); // swal(PackagingCalculation);
if(isEdit == '0') if(isEdit == '0')
{ {
if($('#MaterialCode').val() == "0") if($('#MaterialCode').val() == "0")
@ -1757,14 +1757,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
var FreightValue = parseFloat($('#txtFreight').val()); var FreightValue = parseFloat($('#txtFreight').val());
var UOM = parseFloat($('#UOM').val()); var UOM = parseFloat($('#UOM').val());
var Quantity = parseFloat($('#Quantity').val()); var Quantity = parseFloat($('#Quantity').val());
//alert(FreightType); //swal(FreightType);
var AfterFreight = 0.0; var AfterFreight = 0.0;
if(FreightType == PercentageType) if(FreightType == PercentageType)
{ {
//AfterFreight = <?php echo FREIGHT_PERCENTAGE;?>; //AfterFreight = <?php echo FREIGHT_PERCENTAGE;?>;
if($(freightCalculation != 0 && '#txtAfterDiscount').val() == '') if($(freightCalculation != 0 && '#txtAfterDiscount').val() == '')
{ {
//alert(freightCalculation); //swal(freightCalculation);
swal('Please Enter the Discount value'); swal('Please Enter the Discount value');
$('#txtFreight').val(''); $('#txtFreight').val('');
$('#DiscountType').focus(); $('#DiscountType').focus();
@ -1772,11 +1772,11 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
} }
else{ else{
var AfterDiscount =parseFloat($('#txtAfterDiscount').val()); var AfterDiscount =parseFloat($('#txtAfterDiscount').val());
//alert(AfterDiscount); //swal(AfterDiscount);
//AfterFreight = <?php echo FREIGHT_PERCENTAGE;?>; //AfterFreight = <?php echo FREIGHT_PERCENTAGE;?>;
if(freightCalculation == 0) if(freightCalculation == 0)
{ {
//alert('before value'); //swal('before value');
AfterFreight = <?php echo FREIGHT_PERCENTAGE;?>; AfterFreight = <?php echo FREIGHT_PERCENTAGE;?>;
} }
else{ else{
@ -1835,7 +1835,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
} }
else else
{ {
//alert('1'); //swal('1');
if($('#EditMaterialCode').val() == "0") if($('#EditMaterialCode').val() == "0")
{ {
swal('Please Select the Material Code'); swal('Please Select the Material Code');
@ -1854,7 +1854,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
{ {
var basicValue = parseFloat($('#txtEditBasicValue').val()); var basicValue = parseFloat($('#txtEditBasicValue').val());
var FreightType =$("#drpEditFreight").val(); var FreightType =$("#drpEditFreight").val();
//alert(FreightType); //swal(FreightType);
if(FreightType == "0") if(FreightType == "0")
{ {
swal('Please select Freight Type'); swal('Please select Freight Type');
@ -1867,7 +1867,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
var FreightValue = parseFloat($('#txtEditFreight').val()); var FreightValue = parseFloat($('#txtEditFreight').val());
var UOM = parseFloat($('#EditUOM').val()); var UOM = parseFloat($('#EditUOM').val());
var Quantity = parseFloat($('#EditQuantity').val()); var Quantity = parseFloat($('#EditQuantity').val());
//alert(FreightType); //swal(FreightType);
var AfterFreight = 0.0; var AfterFreight = 0.0;
// if(FreightType == PercentageType) // if(FreightType == PercentageType)
// { // {
@ -1878,7 +1878,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
//AfterFreight = <?php echo FREIGHT_PERCENTAGE;?>; //AfterFreight = <?php echo FREIGHT_PERCENTAGE;?>;
if($(freightCalculation != 0 && '#txtEditAfterDiscount').val() == '') if($(freightCalculation != 0 && '#txtEditAfterDiscount').val() == '')
{ {
//alert(freightCalculation); //swal(freightCalculation);
swal('Please Enter the Discount value'); swal('Please Enter the Discount value');
$('#txtEditFreight').val(''); $('#txtEditFreight').val('');
$('#EditDiscountType').focus(); $('#EditDiscountType').focus();
@ -1886,11 +1886,11 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
} }
else{ else{
var AfterDiscount =parseFloat($('#txtEditAfterDiscount').val()); var AfterDiscount =parseFloat($('#txtEditAfterDiscount').val());
//alert(AfterDiscount); //swal(AfterDiscount);
//AfterFreight = <?php echo FREIGHT_PERCENTAGE;?>; //AfterFreight = <?php echo FREIGHT_PERCENTAGE;?>;
if(freightCalculation == 0) if(freightCalculation == 0)
{ {
//alert('before value'); //swal('before value');
AfterFreight = <?php echo FREIGHT_PERCENTAGE;?>; AfterFreight = <?php echo FREIGHT_PERCENTAGE;?>;
} }
else{ else{
@ -1973,7 +1973,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
{ {
StateTaxCheck = $("input:radio[name='Range']:checked").val(); StateTaxCheck = $("input:radio[name='Range']:checked").val();
$('#txtPoRange').val(StateTaxCheck) ; $('#txtPoRange').val(StateTaxCheck) ;
//alert('Radio clicke:'+StateTaxCheck); //swal('Radio clicke:'+StateTaxCheck);
if(StateTaxCheck == "0") if(StateTaxCheck == "0")
{ {
// style="display:none;" // style="display:none;"
@ -2122,10 +2122,10 @@ return true;
function validateEditExceedLimit() function validateEditExceedLimit()
{ {
//alert(" Edit Budget Check"); //swal(" Edit Budget Check");
var avalbudAmt = parseFloat($('#EditAvlBudAmt').val()); var avalbudAmt = parseFloat($('#EditAvlBudAmt').val());
var basicAmountRate = parseFloat($('#txtEditBasicValue').val()); var basicAmountRate = parseFloat($('#txtEditBasicValue').val());
//alert(basicAmountRate); //swal(basicAmountRate);
// var totalAmount = parseFloat($('#txtEditTotalOrderValue').val()); // var totalAmount = parseFloat($('#txtEditTotalOrderValue').val());
if(basicAmountRate > avalbudAmt)// || totalAmount > avalbudAmt) if(basicAmountRate > avalbudAmt)// || totalAmount > avalbudAmt)
@ -2177,7 +2177,7 @@ function calculateEditTaxValue()
var totvalue = parseFloat(AfterSgst) + parseFloat(AfterIgst) + parseFloat(AfterCgst) ; var totvalue = parseFloat(AfterSgst) + parseFloat(AfterIgst) + parseFloat(AfterCgst) ;
var tot = parseFloat(totvalue).toFixed(2); var tot = parseFloat(totvalue).toFixed(2);
//alert('tot:'+tot); //swal('tot:'+tot);
return tot; return tot;
} }
@ -2433,7 +2433,7 @@ function calculateEditTaxValue()
<div class="col-md-6" style="padding: 0px;"> <div class="col-md-6" style="padding: 0px;">
<label>Revenue Type Options</label> <label>Revenue Type Options<span class="badge" style="color:red;text-align:right;background-color: #fff;">*</span></label>
<div class="form-group"> <div class="form-group">
<?php <?php
@ -3626,7 +3626,7 @@ $("#REVENUE").on("shown.bs.modal", function(e) {
$("#insurance").change(function(){ $("#insurance").change(function(){
var ans=$("#insurance").val(); var ans=$("#insurance").val();
//alert(ans); //swal(ans);
if(ans == 0){ if(ans == 0){
$("#insurancenodiv").hide(); $("#insurancenodiv").hide();
$("#insuranceno").val(""); $("#insuranceno").val("");
@ -3640,7 +3640,7 @@ $("#EDITREVENUE").on("shown.bs.modal", function(e) {
userid = $(e.relatedTarget).data('userid'); userid = $(e.relatedTarget).data('userid');
$('#isEdit').val(1); $('#isEdit').val(1);
//alert(userid); //swal(userid);
var tr= document.getElementById(userid); var tr= document.getElementById(userid);
var cellval = tr.cells; var cellval = tr.cells;
var id= $('#Reqnumber'+userid).val(); var id= $('#Reqnumber'+userid).val();
@ -3870,7 +3870,7 @@ $('.AddRevenue').click(function(){
tinyMCE.triggerSave(); tinyMCE.triggerSave();
if(validateEditRevenueTax() && validateEditExceedLimit() && ExceedEditQuantityCheck()) if(validateEditRevenueTax() && validateEditExceedLimit() && ExceedEditQuantityCheck())
{ {
//alert('inside Add'); //swal('inside Add');
var CostCode = $("#EditCostCenter").val(); var CostCode = $("#EditCostCenter").val();
var AvilBudget = $('#EditAvlBudAmt').val(); var AvilBudget = $('#EditAvlBudAmt').val();
var editMaterialCode = $("#EditMaterialCode").val(); var editMaterialCode = $("#EditMaterialCode").val();
@ -4006,7 +4006,7 @@ function populateValueMainFormForEditRevenueTax()
{ {
var rows = document.getElementById('revenueTax').rows.length; var rows = document.getElementById('revenueTax').rows.length;
//alert(rows); //swal(rows);
var totBasicAmt = 0; var totBasicAmt = 0;
var totDiscountAmt = 0; var totDiscountAmt = 0;
var totPackagingAmt = 0; var totPackagingAmt = 0;
@ -4022,14 +4022,14 @@ function populateValueMainFormForEditRevenueTax()
var tr= document.getElementById(i); var tr= document.getElementById(i);
//alert(tr); //swal(tr);
if(tr != null) if(tr != null)
{ {
cells = tr.getElementsByTagName('td'); cells = tr.getElementsByTagName('td');
var rowid = cells[0].innerHTML; var rowid = cells[0].innerHTML;
// alert(rowid); // swal(rowid);
var Packaging = $('#AfterPackVal'+rowid).val() == '' ? '0.00' : $('#AfterPackVal'+rowid).val(); var Packaging = $('#AfterPackVal'+rowid).val() == '' ? '0.00' : $('#AfterPackVal'+rowid).val();
var Cgst = $('#RevenueAfterCgst'+rowid).val() == '' ? '0.00' : $('#RevenueAfterCgst'+rowid).val(); var Cgst = $('#RevenueAfterCgst'+rowid).val() == '' ? '0.00' : $('#RevenueAfterCgst'+rowid).val();
var Sgst = $('#RevenueAfterSgst'+rowid).val() == '' ? '0.00' : $('#RevenueAfterSgst'+rowid).val(); var Sgst = $('#RevenueAfterSgst'+rowid).val() == '' ? '0.00' : $('#RevenueAfterSgst'+rowid).val();
@ -4039,7 +4039,7 @@ function populateValueMainFormForEditRevenueTax()
var Discount =$('#AfterDisVal'+rowid).val() == '' ? '0.00' : $('#AfterDisVal'+rowid).val(); var Discount =$('#AfterDisVal'+rowid).val() == '' ? '0.00' : $('#AfterDisVal'+rowid).val();
var BasicVal = $('#basicval'+rowid).val() == '' ? '0.00' : $('#basicval'+rowid).val(); var BasicVal = $('#basicval'+rowid).val() == '' ? '0.00' : $('#basicval'+rowid).val();
var TotalVal =$('#TotalOrderValue'+rowid).val() == '' ? '0.00' : $('#TotalOrderValue'+rowid).val(); var TotalVal =$('#TotalOrderValue'+rowid).val() == '' ? '0.00' : $('#TotalOrderValue'+rowid).val();
//alert(TotalVal); //swal(TotalVal);
totBasicAmt = parseFloat(totBasicAmt ) + parseFloat(BasicVal); totBasicAmt = parseFloat(totBasicAmt ) + parseFloat(BasicVal);
@ -4055,7 +4055,7 @@ function populateValueMainFormForEditRevenueTax()
} while (i < rows); } while (i < rows);
// alert(totOrderSummaryAmt); // swal(totOrderSummaryAmt);
$('#txtTotBasicAmount').val(parseFloat(totBasicAmt).toFixed(2) ); $('#txtTotBasicAmount').val(parseFloat(totBasicAmt).toFixed(2) );
$('#txtTotalDiscount').val(parseFloat(totDiscountAmt).toFixed(2) ); $('#txtTotalDiscount').val(parseFloat(totDiscountAmt).toFixed(2) );
$('#txtTotalPackaing').val(parseFloat(totPackagingAmt).toFixed(2) ); $('#txtTotalPackaing').val(parseFloat(totPackagingAmt).toFixed(2) );
@ -4173,7 +4173,7 @@ function DeleteRow(rowid)
SelectedMaterialList.Mat.splice(i, 1); SelectedMaterialList.Mat.splice(i, 1);
} }
}); });
// alert(SelectedMaterialCode); // swal(SelectedMaterialCode);
if(DelRows != '') if(DelRows != '')
{ {
DelRows = DelRows + ":" + rowid; DelRows = DelRows + ":" + rowid;
@ -4192,7 +4192,7 @@ function populateValueMainFormForDeleteItem(rowid)
{ {
// alert(rows); // swal(rows);
var totBasicAmt = $('#txtTotBasicAmount').val(); var totBasicAmt = $('#txtTotBasicAmount').val();
var totDiscountAmt = $('#txtTotalDiscount').val(); var totDiscountAmt = $('#txtTotalDiscount').val();
var totPackagingAmt = $('#txtTotalPackaing').val(); var totPackagingAmt = $('#txtTotalPackaing').val();
@ -4212,7 +4212,7 @@ function populateValueMainFormForDeleteItem(rowid)
var Discount =$('#AfterDisVal'+rowid).val() == '' ? '0.00' : $('#AfterDisVal'+rowid).val(); var Discount =$('#AfterDisVal'+rowid).val() == '' ? '0.00' : $('#AfterDisVal'+rowid).val();
var BasicVal = $('#basicval'+rowid).val() == '' ? '0.00' : $('#basicval'+rowid).val(); var BasicVal = $('#basicval'+rowid).val() == '' ? '0.00' : $('#basicval'+rowid).val();
var TotalVal =$('#TotalOrderValue'+rowid).val() == '' ? '0.00' : $('#TotalOrderValue'+rowid).val(); var TotalVal =$('#TotalOrderValue'+rowid).val() == '' ? '0.00' : $('#TotalOrderValue'+rowid).val();
//alert(TotalVal); //swal(TotalVal);
var Cgst = $('#RevenueAfterCgst'+rowid).val() == '' ? '0.00' : $('#RevenueAfterCgst'+rowid).val(); var Cgst = $('#RevenueAfterCgst'+rowid).val() == '' ? '0.00' : $('#RevenueAfterCgst'+rowid).val();
var Sgst =$('#RevenueAfterSgst'+rowid).val() == '' ? '0.00' : $('#RevenueAfterSgst'+rowid).val(); var Sgst =$('#RevenueAfterSgst'+rowid).val() == '' ? '0.00' : $('#RevenueAfterSgst'+rowid).val();
var Igst = $('#RevenueAfterIgst'+rowid).val() == '' ? '0.00' : $('#RevenueAfterIgst'+rowid).val(); var Igst = $('#RevenueAfterIgst'+rowid).val() == '' ? '0.00' : $('#RevenueAfterIgst'+rowid).val();
@ -4261,7 +4261,7 @@ var AvlBudAmt = '<?php echo $AvlAmount ?>';
var txtTotBasicAmount = $('#txtTotBasicAmount').val(); var txtTotBasicAmount = $('#txtTotBasicAmount').val();
var txtTotalDiscount = $('#txtTotalDiscount').val(); var txtTotalDiscount = $('#txtTotalDiscount').val();
var finalBasicAmount = txtTotBasicAmount - txtTotalDiscount; var finalBasicAmount = txtTotBasicAmount - txtTotalDiscount;
//alert(txtTotBasicAmount+"--"+txtTotalDiscount+"--"+finalBasicAmount+"--"+AvlBudAmt); //swal(txtTotBasicAmount+"--"+txtTotalDiscount+"--"+finalBasicAmount+"--"+AvlBudAmt);
if(validate()) if(validate())
{ {
if(document.getElementById('revenueTax').rows.length < 3) if(document.getElementById('revenueTax').rows.length < 3)
@ -4298,7 +4298,7 @@ var AvlBudAmt = '<?php echo $AvlAmount ?>';
if(data) if(data)
{ {
$('#content').loader('hide'); $('#content').loader('hide');
swal(data); alert(data);
$('#txtRowCount').val(''); $('#txtRowCount').val('');
$('#txtDeletedRow').val(''); $('#txtDeletedRow').val('');
//$('#SpcialInstruction').val(''); //$('#SpcialInstruction').val('');
@ -4308,7 +4308,7 @@ var AvlBudAmt = '<?php echo $AvlAmount ?>';
} }
else else
{ {
swal("Error"); alert("Error");
} }
} }