daybook filter staff
This commit is contained in:
parent
bc13ba931b
commit
4d9366cb68
@ -126,7 +126,108 @@ app.controller('daybookapprovalCtrl', ["$scope", "$rootScope", "toaster", "$filt
|
|||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var getExpenseType = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'getExpenseType/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
branch: localDetails.localBranchID,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
$http(getExpenseType).then(function (response) {
|
||||||
|
|
||||||
|
if(response.data.status='200')
|
||||||
|
{
|
||||||
|
$scope.ExpenseType= response.data.details;
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.searchData = {
|
||||||
|
"modeofpayment": "",
|
||||||
|
"exptype": ""
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$scope.getfilterDetails=function(p)
|
||||||
|
{
|
||||||
|
// alert()
|
||||||
|
// console.log(p)
|
||||||
|
// return false;
|
||||||
|
// console.log(p.paymentOn.paymentOn)
|
||||||
|
|
||||||
|
if((p.expensetype != undefined)||(p.paymentOn != undefined))
|
||||||
|
{
|
||||||
|
|
||||||
|
var getDayBookfilterDetails = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'getDayBookfilterDetails/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
data: $scope.searchData,
|
||||||
|
localReqDetails: localDetails,
|
||||||
|
exptype:p.expensetype,
|
||||||
|
modeofpayment:p.paymentOn,
|
||||||
|
fdate:$scope.searchData.date,
|
||||||
|
tdate:$scope.searchData.dateTo
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$http(getDayBookfilterDetails).then(function (response) {
|
||||||
|
if (response.data.dayBookListStatus) {
|
||||||
|
$scope.loadingsearch = false;
|
||||||
|
|
||||||
|
$scope.searchResultDetails = response.data.dayBookListDetails;
|
||||||
|
$scope.searchResultDetailsCopy = response.data.dayBookListDetails;
|
||||||
|
} else {
|
||||||
|
$scope.loadingsearch = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$scope.getDayBookList();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.loadingsearch = false;
|
$scope.loadingsearch = false;
|
||||||
$scope.noRecordFound = true;
|
$scope.noRecordFound = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user