From 55ad27fa60ba942dcbd5fb9887ae12b51abc0ecd Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Mon, 25 Apr 2022 18:12:46 +0200 Subject: [PATCH] Add barcode scans for stock assignment --- client/src/i18n/en/asset.json | 1 + client/src/i18n/fr/asset.json | 1 + .../modules/assets/modals/assign.modal.html | 16 ++++++-- .../src/modules/assets/modals/assign.modal.js | 39 ++++++++++++++++--- .../modules/templates/modals/alert.modal.html | 2 +- 5 files changed, 49 insertions(+), 10 deletions(-) diff --git a/client/src/i18n/en/asset.json b/client/src/i18n/en/asset.json index 5d97cd1043..77e02a52b9 100644 --- a/client/src/i18n/en/asset.json +++ b/client/src/i18n/en/asset.json @@ -45,6 +45,7 @@ "TITLE" : "Assets", "VIEW_IN_INVENTORY" : "View Asset in Inventory", "VIEW_IN_STOCK" : "View Asset in Stock", + "WARN_ALREADY_ASSIGNED" : "This asset/lot is already assigned. Remove the assignment before reassigning it !", "CONDITION" : { "NEW" : "New", "GOOD" : "Good", diff --git a/client/src/i18n/fr/asset.json b/client/src/i18n/fr/asset.json index 812c49bc91..78a04a92be 100644 --- a/client/src/i18n/fr/asset.json +++ b/client/src/i18n/fr/asset.json @@ -45,6 +45,7 @@ "TITLE" : "Actifs", "VIEW_IN_INVENTORY" : "Visualiser l'actif dans l'inventaire", "VIEW_IN_STOCK" : "Visualiser l'actif dans stock", + "WARN_ALREADY_ASSIGNED" : "Cet actif/lot est déjà assignée. Supprimez cette assignation avant de la réassigner !", "CONDITION" : { "NEW" : "Nouveau", "GOOD" : "Bon", diff --git a/client/src/modules/assets/modals/assign.modal.html b/client/src/modules/assets/modals/assign.modal.html index ba7cb95a41..b3f9e822fb 100644 --- a/client/src/modules/assets/modals/assign.modal.html +++ b/client/src/modules/assets/modals/assign.modal.html @@ -5,10 +5,18 @@ novalidate>