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