Commit a2cc4b8c29a15e3a1cd36515298fa4ea11edc70e

Authored by Marcelo Puebla
1 parent 5786e5447f
Exists in master

Agregada validacion y bandera para que no se puede editar la cantidad de un despacho.

Showing 1 changed file with 5 additions and 3 deletions   Show diff stats
src/js/controller.js
... ... @@ -532,7 +532,8 @@ angular.module('focaCrearFactura').controller('facturaController', [
532 532 ORD_TRA: 0,
533 533 IMP_DESP: 0,
534 534 PCD: 0,
535   - RTO: ''
  535 + RTO: '',
  536 + esDespacho: false
536 537 };
537 538  
538 539 $scope.factura.articulosFactura.push(articulo);
... ... @@ -603,7 +604,8 @@ angular.module('focaCrearFactura').controller('facturaController', [
603 604 ORD_TRA: 0,
604 605 IMP_DESP: 0,
605 606 PCD: 0,
606   - RTO: ''
  607 + RTO: '',
  608 + esDespacho: true
607 609 };
608 610  
609 611 crearFacturaService.setearDespachoOcupado({
... ... @@ -783,7 +785,7 @@ angular.module('focaCrearFactura').controller('facturaController', [
783 785 }
784 786  
785 787 $scope.cambioEdit = function (articulo, propiedad) {
786   - if (propiedad === 'cantidad') {
  788 + if (propiedad === 'cantidad' && !articulo.esDespacho) {
787 789 articulo.editCantidad = true;
788 790 }
789 791 };