latest commit 23-05-2025
This commit is contained in:
parent
1a2dbf2a05
commit
eeb8c342d7
@ -618,25 +618,17 @@ class Inwardgateregister extends BaseController
|
|||||||
|
|
||||||
$currentPoRecievedQuantity = $this->inwardgateregister_model->getCurrentPOreceivedQty($MaterialCode,$PONO);
|
$currentPoRecievedQuantity = $this->inwardgateregister_model->getCurrentPOreceivedQty($MaterialCode,$PONO);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$currentIgrPreviousQty = 0 ;
|
$currentIgrPreviousQty = 0 ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$currentIgrCurrentQty = $QuantityAsPerInvoice;
|
$currentIgrCurrentQty = $QuantityAsPerInvoice;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$changeInQty = $currentIgrCurrentQty - $currentIgrPreviousQty;
|
$changeInQty = $currentIgrCurrentQty - $currentIgrPreviousQty;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$quantityToBeUpdated = $changeInQty;
|
$quantityToBeUpdated = $changeInQty;
|
||||||
|
|
||||||
$totalReceivedqty = $currentPoRecievedQuantity + $quantityToBeUpdated;
|
$totalReceivedqty = $currentPoRecievedQuantity + $quantityToBeUpdated;
|
||||||
|
|
||||||
;
|
|
||||||
|
|
||||||
$POLineItem = array('ReceivedQuantity' => $totalReceivedqty, 'Status' => $ItemStatus, 'UpdateBY' => $CreatedBy, 'UpdatedOn' => $createddt);
|
$POLineItem = array('ReceivedQuantity' => $totalReceivedqty, 'Status' => $ItemStatus, 'UpdateBY' => $CreatedBy, 'UpdatedOn' => $createddt);
|
||||||
|
|
||||||
@ -994,28 +986,18 @@ function viewIGRDetails()
|
|||||||
|
|
||||||
$currentPoRecievedQuantity = $this->inwardgateregister_model->getCurrentPOreceivedQty($MaterialCode,$PONo);
|
$currentPoRecievedQuantity = $this->inwardgateregister_model->getCurrentPOreceivedQty($MaterialCode,$PONo);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$currentIgrPreviousQty = $previousIgrStatus == "ST074"
|
$currentIgrPreviousQty = $previousIgrStatus == "ST074"
|
||||||
? 0
|
? 0
|
||||||
: $this->inwardgateregister_model->currentIgrPreviousQty($IGRNo , $MaterialCode);
|
: $this->inwardgateregister_model->currentIgrPreviousQty($IGRNo , $MaterialCode);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$currentIgrCurrentQty = $quantityAsPerInvoice;
|
$currentIgrCurrentQty = $quantityAsPerInvoice;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$changeInQty = $currentIgrCurrentQty - $currentIgrPreviousQty;
|
$changeInQty = $currentIgrCurrentQty - $currentIgrPreviousQty;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$quantityToBeUpdated = $changeInQty;
|
$quantityToBeUpdated = $changeInQty;
|
||||||
|
|
||||||
$totalReceivedqty = $currentPoRecievedQuantity + $quantityToBeUpdated;
|
$totalReceivedqty = $currentPoRecievedQuantity + $quantityToBeUpdated;
|
||||||
|
|
||||||
;
|
|
||||||
|
|
||||||
$POLineItem = array('ReceivedQuantity' => $totalReceivedqty);
|
$POLineItem = array('ReceivedQuantity' => $totalReceivedqty);
|
||||||
|
|
||||||
$this->inwardgateregister_model->UpdatePOLineItem($POLineItem, $PONo, $MaterialCode);
|
$this->inwardgateregister_model->UpdatePOLineItem($POLineItem, $PONo, $MaterialCode);
|
||||||
|
|||||||
@ -3340,12 +3340,11 @@ if (!empty($INRSYMBOL)) {
|
|||||||
/* This is used add capital po line item */
|
/* This is used add capital po line item */
|
||||||
$('.AddCapital').click(function() {
|
$('.AddCapital').click(function() {
|
||||||
|
|
||||||
alert("clicked capital po..!!");
|
|
||||||
|
|
||||||
let CPRate = $('#CPRate').val();
|
let CPRate = $('#CPRate').val().trim();
|
||||||
|
|
||||||
|
|
||||||
if (parseFloat(CPRate) === 0 || CPRate.trim() === "") {
|
if (CPRate === "" || CPRate === "0" || CPRate === "0.00" || parseFloat(CPRate) === 0) {
|
||||||
alert("Rate Cannot be Empty Or Zero ..!!")
|
alert("Rate Cannot be Empty Or Zero ..!!")
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4776,6 +4775,15 @@ if (!empty($INRSYMBOL)) {
|
|||||||
* This function is used for Edit Capital
|
* This function is used for Edit Capital
|
||||||
*/
|
*/
|
||||||
$('.EditCapital').click(function() {
|
$('.EditCapital').click(function() {
|
||||||
|
|
||||||
|
let rate = $('#EditCPRate').val().trim();
|
||||||
|
|
||||||
|
if (rate === "" || rate === "0" || rate === "0.00" || parseFloat(rate) === 0) {
|
||||||
|
alert("Rate cannot be empty or zero..!!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
tinyMCE.triggerSave();
|
tinyMCE.triggerSave();
|
||||||
if (validateEditCapitalTax() && EditExceedQuantityCheck() && validateEditExceedLimit()) {
|
if (validateEditCapitalTax() && EditExceedQuantityCheck() && validateEditExceedLimit()) {
|
||||||
|
|
||||||
|
|||||||
@ -3440,7 +3440,12 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
|
|
||||||
$('.AddImport').click(function() {
|
$('.AddImport').click(function() {
|
||||||
|
|
||||||
alert("clicked import po..!!")
|
let rate = $('#Rate').val().trim();
|
||||||
|
|
||||||
|
if (rate === "" || rate === "0" || rate === "0.00" || parseFloat(rate) === 0) {
|
||||||
|
alert("Rate cannot be empty or zero..!!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// alert('out');
|
// alert('out');
|
||||||
if (validateImport() && ExceedQuantityCheck() && validateExceedLimit() && QtyZerocheck()) {
|
if (validateImport() && ExceedQuantityCheck() && validateExceedLimit() && QtyZerocheck()) {
|
||||||
@ -3846,6 +3851,14 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$('.EditImport').click(function() {
|
$('.EditImport').click(function() {
|
||||||
|
|
||||||
|
let rate = $('#EditRate').val().trim();
|
||||||
|
|
||||||
|
if (rate === "" || rate === "0" || rate === "0.00" || parseFloat(rate) === 0) {
|
||||||
|
alert("Rate cannot be empty or zero..!!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (validateEditExceedLimit() && ExceedEditQuantityCheck() && EditQtyZerocheck()) {
|
if (validateEditExceedLimit() && ExceedEditQuantityCheck() && EditQtyZerocheck()) {
|
||||||
var CostCode = $("#EditCostCenter").val();
|
var CostCode = $("#EditCostCenter").val();
|
||||||
var AvilBudget = $('#EditAvlBudAmt').val();
|
var AvilBudget = $('#EditAvlBudAmt').val();
|
||||||
|
|||||||
@ -3409,9 +3409,12 @@ if (!empty($INRSYMBOL)) {
|
|||||||
});
|
});
|
||||||
$('.AddRevenue').click(function() {
|
$('.AddRevenue').click(function() {
|
||||||
|
|
||||||
alert("clicked revenue po..!!");
|
let rate = $('#Rate').val().trim();
|
||||||
|
|
||||||
$('')
|
if (rate === "" || rate === "0" || rate === "0.00" || parseFloat(rate) === 0) {
|
||||||
|
alert("Rate cannot be empty or zero..!!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
tinyMCE.triggerSave();
|
tinyMCE.triggerSave();
|
||||||
if (validateRevenueTax() && ExceedQuantityCheck()) {
|
if (validateRevenueTax() && ExceedQuantityCheck()) {
|
||||||
@ -3585,6 +3588,14 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
$('.EditRevenue').click(function() {
|
$('.EditRevenue').click(function() {
|
||||||
|
|
||||||
|
let rate = $('#EditRate').val().trim();
|
||||||
|
|
||||||
|
if (rate === "" || rate === "0" || rate === "0.00" || parseFloat(rate) === 0) {
|
||||||
|
alert("Rate cannot be empty or zero..!!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
tinyMCE.triggerSave();
|
tinyMCE.triggerSave();
|
||||||
if (validateEditRevenueTax() && validateEditExceedLimit() && ExceedEditQuantityCheck()) {
|
if (validateEditRevenueTax() && validateEditExceedLimit() && ExceedEditQuantityCheck()) {
|
||||||
var CostCode = $("#EditCostCenter").val();
|
var CostCode = $("#EditCostCenter").val();
|
||||||
|
|||||||
@ -677,10 +677,14 @@ if (!empty($INRSYMBOL)) {
|
|||||||
clearTotalItemValues();
|
clearTotalItemValues();
|
||||||
|
|
||||||
$('.EditService').click(function(){
|
$('.EditService').click(function(){
|
||||||
console.log("1111111111111111111");
|
|
||||||
|
|
||||||
// tinyMCE.triggerSave();
|
let rate = $('#Edit').val().trim();
|
||||||
console.log("2222222222222222");
|
|
||||||
|
if (rate === "" || rate === "0" || rate === "0.00" || parseFloat(rate) === 0) {
|
||||||
|
alert("Rate cannot be empty or zero..!!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (validateEditServiceTax()) {
|
if (validateEditServiceTax()) {
|
||||||
var CostCode = $("#EditCostCenter").val();
|
var CostCode = $("#EditCostCenter").val();
|
||||||
@ -1925,7 +1929,12 @@ console.log($('#ItemDescription' + userid).val());
|
|||||||
|
|
||||||
$('.AddService').click(function() {
|
$('.AddService').click(function() {
|
||||||
|
|
||||||
alert("clicked service po..!!");
|
let rate = $('#Rate').val().trim();
|
||||||
|
|
||||||
|
if (rate === "" || rate === "0" || rate === "0.00" || parseFloat(rate) === 0) {
|
||||||
|
alert("Rate cannot be empty or zero..!!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
tinyMCE.triggerSave();
|
tinyMCE.triggerSave();
|
||||||
if (validateServiceTax()) {
|
if (validateServiceTax()) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user