daybook validation

This commit is contained in:
venbatechnologies@gmail.com 2018-09-18 16:11:06 +05:30
parent c57d3c23b1
commit c7015b3c57
3 changed files with 43 additions and 8 deletions

View File

@ -511,7 +511,18 @@ $scope.dayBookApprovalAccess = '';
var id=id;
var reason=prompt("Reason For Deletion!","");
$scope.deleteFeePayableEntry(reason,id);
if(reason !=null)
{
$scope.deleteFeePayableEntry(reason, id);
}
else
{
//alert('check')
}
///$scope.deleteFeePayableEntry(reason,id);
}
//delete the income entry From the fees payable
$scope.deleteFeePayableEntry = function (reason, id) {

View File

@ -502,7 +502,17 @@ $scope.dayBookApprovalAccess = '';
var id=id;
var reason=prompt("Reason For Deletion!","");
$scope.deleteFeePayableEntry(reason,id);
if(reason !=null)
{
$scope.deleteFeePayableEntry(reason, id);
}
else
{
//alert('check')
}
// $scope.deleteFeePayableEntry(reason,id);
}
//delete the income entry From the fees payable

View File

@ -629,8 +629,16 @@ $scope.loadStaring = true;
$scope.deleted1 = function (id) {
var id = id;
var reason = prompt("Reason For Deletion!", "");
$scope.deleteFeePayableEntry(reason, id);
if(reason !=null)
{
$scope.deleteFeePayableEntry(reason, id);
}
else
{
//alert('check')
}
//console.log($scope.deleteFeePayableEntry)
@ -644,15 +652,17 @@ $scope.loadStaring = true;
type: "warning",
showCancelButton: true,
confirmButtonColor: "#007aff",
confirmButtonText: "Yes!"
confirmButtonText: "Yes!",
cancelButtonText: "No",
closeOnConfirm: false,
closeOnCancel: false
}, function (res) {
//console.log(res);
console.log(res);
//return false;
if (res === true) {
// alert(reason);
//alert(stuId);
//
if(reason == '')
{
@ -689,6 +699,10 @@ $scope.loadStaring = true;
}
}
// else
// {
// alert('close')
// }
});
}