Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Controller code
- --------------------
- //get Price Book List
- $scope.priceBookList = [];
- PricingService.getPriceBookList()
- .success(function (result) {
- console.log(result);
- for(i = 0; i < result.length; i++){
- if(result[i].effectiveFromDate){
- var OPBLEFD = new Date(result[i].effectiveFromDate);
- result[i].effectiveFromDate = getDateFormat(OPBLEFD);
- }
- if (result[i].effectiveToDate) {
- var OPBLETD = new Date(result[i].effectiveToDate);
- result[i].effectiveToDate = getDateFormat(OPBLETD);
- }
- if (result[i].lastModified) {
- var OPBLLM= new Date(result[i].lastModified);
- result[i].lastModified = getDateFormat(OPBLLM);
- }
- }
- $scope.priceBookList = result
- }).
- error(function (error) {
- $scope.status = 'Unable to Show List: ' + error.message;
- });
Add Comment
Please, Sign In to add comment