Commit 8dfc6e7d743bf50e05792e0615181e22dc77d7b2
Exists in
master
Merge branch 'master' into 'master'
Master See merge request !22
Showing
1 changed file
Show diff stats
src/js/controller.js
... | ... | @@ -162,7 +162,9 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
162 | 162 | dias: plazo.dias |
163 | 163 | }); |
164 | 164 | }); |
165 | - crearNotaPedidoService.crearPlazosParaNotaPedido(plazosACrear); | |
165 | + if(plazosACrear.length){ | |
166 | + crearNotaPedidoService.crearPlazosParaNotaPedido(plazosACrear); | |
167 | + } | |
166 | 168 | |
167 | 169 | notaPedidoBusinessService.addEstado(data.data.id, |
168 | 170 | $scope.notaPedido.vendedor.CodVen); |