daybook validation
This commit is contained in:
parent
33d3b0d557
commit
139f5b8d6d
@ -630,6 +630,10 @@ $scope.loadStaring = true;
|
|||||||
var id = id;
|
var id = id;
|
||||||
var reason = prompt("Reason For Deletion!", "");
|
var reason = prompt("Reason For Deletion!", "");
|
||||||
$scope.deleteFeePayableEntry(reason, id);
|
$scope.deleteFeePayableEntry(reason, id);
|
||||||
|
|
||||||
|
//console.log($scope.deleteFeePayableEntry)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
//delete the income entry From the fees payable
|
//delete the income entry From the fees payable
|
||||||
$scope.deleteFeePayableEntry = function (reason, id) {
|
$scope.deleteFeePayableEntry = function (reason, id) {
|
||||||
@ -642,9 +646,26 @@ $scope.loadStaring = true;
|
|||||||
confirmButtonColor: "#007aff",
|
confirmButtonColor: "#007aff",
|
||||||
confirmButtonText: "Yes!"
|
confirmButtonText: "Yes!"
|
||||||
}, function (res) {
|
}, function (res) {
|
||||||
|
|
||||||
|
//console.log(res);
|
||||||
|
|
||||||
if (res === true) {
|
if (res === true) {
|
||||||
// alert(id);
|
// alert(reason);
|
||||||
// alert(stuId);
|
//alert(stuId);
|
||||||
|
//
|
||||||
|
if(reason == '')
|
||||||
|
{
|
||||||
|
|
||||||
|
alert('Please Enter Reason for Deletion');
|
||||||
|
|
||||||
|
// swal("Please Enter Reason!", "", "error");
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var deleteFeePayableDetails = {
|
var deleteFeePayableDetails = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: apiPoint.url + 'deleteDayBookFeePayableDetails/',
|
url: apiPoint.url + 'deleteDayBookFeePayableDetails/',
|
||||||
@ -665,6 +686,8 @@ $scope.loadStaring = true;
|
|||||||
swal(" ", response.data.message, "error");
|
swal(" ", response.data.message, "error");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user