Commit 6bc2ef5eea574ebbff29040eef4d7c4b2dff37b7

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'master'

Master (pmarco)

See merge request modulos-npm/foca-modal-nota-pedido!7
1 angular.module('focaModalNotaPedido') 1 angular.module('focaModalNotaPedido')
2 .service('focaModalNotaPedidoService', [ 2 .service('focaModalNotaPedidoService', [
3 '$http', 3 '$http',
4 'API_ENDPOINT', 4 'API_ENDPOINT',
5 function($http, API_ENDPOINT) { 5 function($http, API_ENDPOINT) {
6 return { 6 return {
7 getNotasPedido: function(usadoPor) { 7 getNotasPedido: function(usadoPor) {
8 sinRemito = usadoPor === 'remito' ? '/sin-remito' : ''; 8 var sinRemito = (usadoPor === 'remito' ? '/sin-remito' : '');
9 return $http.get(API_ENDPOINT.URL + '/nota-pedido/listar' + sinRemito); 9 return $http.get(API_ENDPOINT.URL + '/nota-pedido/listar' + sinRemito);
10 } 10 }
11 }; 11 };
12 } 12 }
13 ]); 13 ]);
14 14