CHANGE_EMERGENCY_PO_LINE_TIME_ISSUE
This commit is contained in:
parent
1e218bfcf3
commit
14ed445419
@ -240,7 +240,6 @@ class Emergencypurchaseorder extends BaseController
|
|||||||
|
|
||||||
// PO Line Items
|
// PO Line Items
|
||||||
$LineItemStatus = REQITEM_NEW;
|
$LineItemStatus = REQITEM_NEW;
|
||||||
|
|
||||||
for ($i = 1; $i <= $RowCount; $i++) {
|
for ($i = 1; $i <= $RowCount; $i++) {
|
||||||
$Per = $this->request->getPost('Serviceper' . $i);
|
$Per = $this->request->getPost('Serviceper' . $i);
|
||||||
$MaterialCode = $this->request->getPost('materialCode' . $i);
|
$MaterialCode = $this->request->getPost('materialCode' . $i);
|
||||||
@ -387,7 +386,7 @@ class Emergencypurchaseorder extends BaseController
|
|||||||
function addNewRevenuePurchaseOrder()
|
function addNewRevenuePurchaseOrder()
|
||||||
{
|
{
|
||||||
|
|
||||||
// print_r($this->request->getPost());die;
|
print_r($this->request->getPost());die;
|
||||||
$txtspl = $this->request->getPost('txtSpecial');
|
$txtspl = $this->request->getPost('txtSpecial');
|
||||||
|
|
||||||
|
|
||||||
@ -870,7 +869,7 @@ class Emergencypurchaseorder extends BaseController
|
|||||||
|
|
||||||
$this->session->setFlashdata('success', 'You Have Successfully Created the Purchase order! '.$PONO);
|
$this->session->setFlashdata('success', 'You Have Successfully Created the Purchase order! '.$PONO);
|
||||||
// return redirect()->route('purchaseorderListing');
|
// return redirect()->route('purchaseorderListing');
|
||||||
return true;
|
return json_encode("111111111");
|
||||||
|
|
||||||
// echo "<script>alert('You Have Successfully created the Purchase order! $PONO');</script>";
|
// echo "<script>alert('You Have Successfully created the Purchase order! $PONO');</script>";
|
||||||
// redirect('purchaseorder/PurchaseOrderList', 'refresh');
|
// redirect('purchaseorder/PurchaseOrderList', 'refresh');
|
||||||
|
|||||||
@ -5700,7 +5700,9 @@ if (!empty($INRSYMBOL)) {
|
|||||||
populateValueMainFormForRevenue();
|
populateValueMainFormForRevenue();
|
||||||
|
|
||||||
|
|
||||||
|
if(index -1 == 0){
|
||||||
|
$('#ServiceAppend').empty();
|
||||||
|
}
|
||||||
index = parseInt(index) + 1;
|
index = parseInt(index) + 1;
|
||||||
|
|
||||||
var template = jQuery("#RevenueList").html();
|
var template = jQuery("#RevenueList").html();
|
||||||
@ -5719,15 +5721,16 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<td>${TotalOrderValue}</td>
|
<td>${TotalOrderValue}</td>
|
||||||
</tr>
|
</tr>
|
||||||
`;
|
`;
|
||||||
$('#RevenueAppend').empty();
|
|
||||||
$('#ServiceAppend').empty();
|
|
||||||
|
|
||||||
$('#RevenueAppend').append(html);
|
$('#RevenueAppend').append(html);
|
||||||
// $('#serviceTax').row.add($(html)).draw();
|
// $('#serviceTax').row.add($(html)).draw();
|
||||||
|
|
||||||
|
|
||||||
var theForm = $(".CreatealterPO");
|
var theForm = $(".CreatealterPO");
|
||||||
|
console.log("hidden inputs ");
|
||||||
|
|
||||||
addHidden(theForm, "Reqnumber" + temp, Reqnumber);
|
addHidden(theForm, "Reqnumber" + temp, Reqnumber);
|
||||||
addHidden(theForm, "departmentName" + temp, departmentName);
|
addHidden(theForm, "departmentName" + temp, departmentName);
|
||||||
addHidden(theForm, "AvilBudget" + temp, (AvilBudget ? AvilBudget : 0));
|
addHidden(theForm, "AvilBudget" + temp, (AvilBudget ? AvilBudget : 0));
|
||||||
@ -6386,7 +6389,10 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
populateValueMainFormForServiceTax();
|
populateValueMainFormForServiceTax();
|
||||||
|
|
||||||
|
if(index - 1 == 0){
|
||||||
|
$('#ServiceAppend').empty();
|
||||||
|
$('#RevenueAppend').empty();
|
||||||
|
}
|
||||||
index = parseInt(index) + 1;
|
index = parseInt(index) + 1;
|
||||||
|
|
||||||
var template = jQuery("#ServiceList").html();
|
var template = jQuery("#ServiceList").html();
|
||||||
@ -6405,9 +6411,9 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<td>${TotalOrderValue}</td>
|
<td>${TotalOrderValue}</td>
|
||||||
</tr>
|
</tr>
|
||||||
`;
|
`;
|
||||||
$('#ServiceAppend').empty();
|
console.log("index");
|
||||||
$('#RevenueAppend').empty();
|
console.log(index);
|
||||||
|
|
||||||
$('#ServiceAppend').append(html);
|
$('#ServiceAppend').append(html);
|
||||||
|
|
||||||
|
|
||||||
@ -7059,7 +7065,7 @@ $('#content').loader('hide');
|
|||||||
$('#txtDeletedRow1').val('');
|
$('#txtDeletedRow1').val('');
|
||||||
$('#SpcialInstruction').val('');
|
$('#SpcialInstruction').val('');
|
||||||
$('#txtDeliveryAddress').val('');
|
$('#txtDeliveryAddress').val('');
|
||||||
window.location = "purchaseorderListing";
|
// window.location = "purchaseorderListing";
|
||||||
},
|
},
|
||||||
error: function(xhr, status, error) {
|
error: function(xhr, status, error) {
|
||||||
// Handle errors
|
// Handle errors
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user