From edf162c81f0942d8e69f487d4f1eba3a3fe19d2c Mon Sep 17 00:00:00 2001 From: Smart Date: Fri, 20 Sep 2024 15:14:09 +0530 Subject: [PATCH] Merge : GWM --- app/Controllers/Purchaseorder.php | 7 +++++-- app/Views/editRevenuepurchaseorder.php | 18 ++++++------------ app/Views/porelease_view.php | 10 +++++----- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/app/Controllers/Purchaseorder.php b/app/Controllers/Purchaseorder.php index 5624d679..3f50a443 100755 --- a/app/Controllers/Purchaseorder.php +++ b/app/Controllers/Purchaseorder.php @@ -1214,7 +1214,7 @@ class Purchaseorder extends BaseController function EditRevenuePurchaseOrder() { - + $PONO = $this->request->getPost('txtPONO'); $POdt = $this->request->getPost('PODate'); $PODate = get_date_time_format($POdt); @@ -1452,8 +1452,11 @@ class Purchaseorder extends BaseController $POLineItem = $this->purchaseorder_model->updatePOLineItem($PONO, $POLineItemNo, $POLineItemList); } + $isExists = $this->purchaseorder_model->LineItemExistsinRevenueTax($LineItemNo); - if (count($isExists) == 0) { + + if (is_array($isExists) && count($isExists) == 0) { + } else { $RevenueTaxList = array('DiscountType' => $DiscountType, 'DiscountValue' => $DiscountValue, 'AfterDiscount' => $AfterDiscount, 'PackagingType' => $PackagingType, 'PackagingValue' => $PackagingValue, 'PackagingCalulatedOn' => $PackagingOption, 'AfterPackagingValue' => $AfterPackagingValue, 'FreightType' => $FreightType, 'FreightValue' => $FreightValue, 'AfterFreightValue' => $AfterFreightValue, 'Insurance' => $InsuranceValue, 'TotalValue' => $TotalOrderValue, 'UpdateBY' => $updatedBy, 'UpdatedOn' => $updateddt, 'CGST' => $Cgst, 'AfterCGST' => $AfterCgst, 'SGST' => $Sgst, 'AfterSGST' => $AfterSgst, 'IGST' => $Igst, 'AfterIGST' => $AfterIgst, 'CreatedBy' => $updatedBy, 'NoOfTrip' => $NOOfTrip); diff --git a/app/Views/editRevenuepurchaseorder.php b/app/Views/editRevenuepurchaseorder.php index 80e189c3..6c1abed8 100755 --- a/app/Views/editRevenuepurchaseorder.php +++ b/app/Views/editRevenuepurchaseorder.php @@ -4000,18 +4000,12 @@ if (!empty($getlogpodtl)) { ${Reqnumber} ${materialCode} ${materialName} - ${quantity} + ${quantity} ${uom} - ${itemRate} - ${PER} - ${service_description} - ${basicval} - ${TotalTaxValue} - ${TotalOrderValue} - ${quantity} - 0 - ${quantity} - + ${itemRate} + ${basicval} + ${TotalTaxValue} + ${TotalOrderValue} @@ -4902,7 +4896,7 @@ if (!empty($getlogpodtl)) { window.location = "purchaseorderListing"; } else { - alert("Error"); + alert("Something went wrong"); } }, diff --git a/app/Views/porelease_view.php b/app/Views/porelease_view.php index b7da87f9..4307bb2e 100755 --- a/app/Views/porelease_view.php +++ b/app/Views/porelease_view.php @@ -315,7 +315,7 @@ if (empty($Status)) { /* MSG*/ var answer = confirm(strMsg); if (answer) { - $('#content').loader('show'); + $('#loader').show(); $.ajax({ data: { PONO: PO, @@ -326,7 +326,7 @@ if (empty($Status)) { url: "purchaseorder/ReleasePO", success: function(data) { if (data) { - $('#content').loader('hide'); + $('#loader').hide(); alert(data); location.reload(); } else { @@ -388,7 +388,7 @@ if (empty($Status)) { $("#txtSpcialInstruction").val(''); $('#AlertImg').attr("style", "display:none;"); - $('#content').loader('show'); + $('#loader').show(); $.ajax({ data: { id: ReqId @@ -397,8 +397,8 @@ if (empty($Status)) { dataType: 'json', url: "requisitionform/ViewRequest", success: function(json) { - // success:function(data) { - $('#content').loader('hide'); + + $('#loader').hide(); //alert(data); $("#ReqType").val(json.Requist[0]['ReqType']); $("#ReqBy").val(json.Requist[0]['Requestedby']);