voucher.svc.js 508 Bytes
Newer Older
eddie.woo's avatar
eddie.woo committed
1 2 3 4 5 6 7 8 9 10 11 12
// web service proxy for voucher
webservices.factory('voucherService', ['$http', 'apiConfig', function ($http, apiConfig) {
    'use strict';
    return {
        getVouchersByAccountCode: function (accountCode) {
            return $http.get('/voucher?accountCode=' + accountCode, apiConfig.create());
        },
        getRecategoryVouchers: function (accountRecategoryId) {
            return $http.get('/voucher?accountRecategoryId=' + accountRecategoryId, apiConfig.create());
        },
    };
}]);