Commit 9421577aa2ed3f11516ee91a207c6739422fab52
1 parent
655c5e4ff8
Exists in
master
observaciones en cabecera
Showing
1 changed file
with
11 additions
and
4 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -159,20 +159,27 @@ angular.module('focaCrearRemito') .controller('remitoController', |
159 | 159 | } |
160 | 160 | ]; |
161 | 161 | |
162 | + if (notaPedido.observaciones) { | |
163 | + cabeceras.push({ | |
164 | + label: 'Observaciones:', | |
165 | + valor: notaPedido.observaciones | |
166 | + }); | |
167 | + } | |
168 | + | |
162 | 169 | function valorPrecioCondicion() { |
163 | - if(notaPedido.idPrecioCondicion > 0) { | |
170 | + if (notaPedido.idPrecioCondicion > 0) { | |
164 | 171 | return notaPedido.precioCondicion.nombre; |
165 | - }else { | |
172 | + } else { | |
166 | 173 | return 'Ingreso Manual'; |
167 | 174 | } |
168 | 175 | } |
169 | 176 | |
170 | - if(notaPedido.flete === 1) { | |
177 | + if (notaPedido.flete === 1) { | |
171 | 178 | var cabeceraBomba = { |
172 | 179 | label: 'Bomba:', |
173 | 180 | valor: notaPedido.bomba === 1 ? 'Si' : 'No' |
174 | 181 | }; |
175 | - if(notaPedido.kilometros) { | |
182 | + if (notaPedido.kilometros) { | |
176 | 183 | var cabeceraKilometros = { |
177 | 184 | label: 'Kilometros:', |
178 | 185 | valor: notaPedido.kilometros |