Skip to content

Commit

Permalink
Merge pull request #163 from open-commercial/master
Browse files Browse the repository at this point in the history
merceriaguemes < master
  • Loading branch information
belluccifranco authored May 9, 2023
2 parents 90bdd93 + 6dab91e commit a728b1f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion LICENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2017 "Il Globo Distribuciones S.R.L."

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
10 changes: 5 additions & 5 deletions src/app/components/productos/productos.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TableFieldConfig, ListaTableKey } from './../lista-table/lista-table.component';
import { TotalData } from './../totales/totales.component';
import {TableFieldConfig, ListaTableKey} from './../lista-table/lista-table.component';
import {TotalData} from './../totales/totales.component';
import {Component, OnInit, ViewChild} from '@angular/core';
import {UntypedFormBuilder} from '@angular/forms';
import {SucursalesService} from '../../services/sucursales.service';
Expand Down Expand Up @@ -33,8 +33,8 @@ import {Sucursal} from '../../models/sucursal';
export class ProductosComponent extends ListadoDirective implements OnInit {
isBatchActionsBoxCollapsed = true;
ordenArray = [
{ val: 'descripcion', text: 'Descripción' },
{ val: 'fechaUltimaModificacion', text: 'Fecha Últ. Modificación' },
{ val: 'descripcion', text: 'Descripción' },
{ val: 'codigo', text: 'Código' },
{ val: 'cantidadProducto.cantidadTotalEnSucursales', text: 'Total Sucursales' },
{ val: 'cantidadProducto.cantMinima', text: 'Venta x Cantidad' },
Expand All @@ -43,12 +43,12 @@ export class ProductosComponent extends ListadoDirective implements OnInit {
{ val: 'precioProducto.precioLista', text: 'Precio Lista' },
{ val: 'fechaAlta', text: 'Fecha Alta' },
{ val: 'proveedor.razonSocial', text: 'Proveedor' },
{ val: 'rubro.nombre', text: 'Rubro' },
{ val: 'rubro.nombre', text: 'Rubro' }
];

sentidoArray = [
{ val: 'ASC', text: 'Ascendente' },
{ val: 'DESC', text: 'Descendente' },
{ val: 'ASC', text: 'Ascendente' }
];

ordenarPorAplicado = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class UbicacionFormFieldComponent implements ControlValueAccessor {
}

clearValue() {
this.value = null;
this.setUbicacion(null);
}

edit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,23 @@ <h4 class="h5 modal-title flex-fill">{{ title }}</h4>
<div class="col-sm-6">
<div class="mb-3">
<label for="numero" class="form-label">Número</label>
<input type="text" class="form-control" id="numero" formControlName="numero"
<input type="number" min="0" class="form-control" id="numero" formControlName="numero"
[ngClass]="{ 'is-invalid': submitted && f.numero.errors }">
<div class="invalid-feedback" *ngIf="submitted && f.numero.errors">
<div *ngIf="f.numero.errors.min">Mínimo {{ f.numero.errors.min.min }}</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="mb-3">
<label for="piso" class="form-label">Piso</label>
<input type="text" class="form-control" id="piso" formControlName="piso"
<input type="number" min="0" class="form-control" id="piso" formControlName="piso"
[ngClass]="{ 'is-invalid': submitted && f.piso.errors }">
<div class="invalid-feedback" *ngIf="submitted && f.piso.errors">
<div *ngIf="f.piso.errors.min">Mínimo {{ f.piso.errors.min.min }}</div>
</div>
</div>
</div>
<div class="col-sm-6">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export class UbicacionModalComponent implements OnInit {
idProvincia: [null, Validators.required],
idLocalidad: [null, Validators.required],
calle: '',
numero: '',
piso: '',
numero: [null, Validators.min(0)],
piso: [null, Validators.min(0)],
departamento: '',
descripcion: '',
});
Expand Down Expand Up @@ -98,8 +98,8 @@ export class UbicacionModalComponent implements OnInit {
idProvincia: this.pUbicacion ? this.pUbicacion.idProvincia : null,
idLocalidad: this.pUbicacion ? this.pUbicacion.idLocalidad : null,
calle: this.pUbicacion ? this.pUbicacion.calle : '',
numero: this.pUbicacion ? this.pUbicacion.numero : '',
piso: this.pUbicacion ? this.pUbicacion.piso : '',
numero: this.pUbicacion ? this.pUbicacion.numero : null,
piso: this.pUbicacion ? this.pUbicacion.piso : null,
departamento: this.pUbicacion ? this.pUbicacion.departamento : '',
descripcion: this.pUbicacion ? this.pUbicacion.descripcion : '',
});
Expand Down

0 comments on commit a728b1f

Please sign in to comment.