daybook validation
This commit is contained in:
parent
c57d3c23b1
commit
c7015b3c57
@ -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) {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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')
|
||||
// }
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user