From 3fe8e18ec7c4c6edcff325b229b11c8549a70e7f Mon Sep 17 00:00:00 2001 From: Marcelo Puebla Date: Thu, 13 Feb 2020 15:58:22 -0300 Subject: [PATCH] Add Se muestra imagen sin stock de articulos con exivta < 1 --- src/app/interfaces/IArticulo.ts | 4 ++ .../seleccion-articulos.component.html | 7 ++++ src/assets/img/sin-stock.svg | 43 ++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 src/assets/img/sin-stock.svg diff --git a/src/app/interfaces/IArticulo.ts b/src/app/interfaces/IArticulo.ts index e968ba0..f6cfe74 100644 --- a/src/app/interfaces/IArticulo.ts +++ b/src/app/interfaces/IArticulo.ts @@ -31,6 +31,10 @@ export interface IArticulo { SECA?: number; SECP?: number; MKT_DESC?: string; + NHA?: boolean; + FECHA_VIGENCIA_HASTA?: Date; + FECHA_VIGENCIA_DESDE?: Date; + ExiVta?: number; } export interface ICodigoBarra { diff --git a/src/app/modules/seleccion-articulos/seleccion-articulos.component.html b/src/app/modules/seleccion-articulos/seleccion-articulos.component.html index 5d4d3d9..c2a332f 100644 --- a/src/app/modules/seleccion-articulos/seleccion-articulos.component.html +++ b/src/app/modules/seleccion-articulos/seleccion-articulos.component.html @@ -48,6 +48,13 @@ draggable="false" ondragstart="return false;" (contextmenu)="false" + *ngIf="articulo.ExiVta < 1" + class="position-fixed right-0" + src="assets/img/sin-stock.svg"> + diff --git a/src/assets/img/sin-stock.svg b/src/assets/img/sin-stock.svg new file mode 100644 index 0000000..6ea0d9d --- /dev/null +++ b/src/assets/img/sin-stock.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Sin Stock + + + -- 1.9.1