From 916ba6228f14a90b71c7d99ccda06b1448e06415 Mon Sep 17 00:00:00 2001 From: DominikNoga Date: Tue, 18 Jun 2024 10:25:10 +0200 Subject: [PATCH] valid dest fixed --- .../adjustment-creation.controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stock-adjustment-creation/adjustment-creation.controller.js b/src/stock-adjustment-creation/adjustment-creation.controller.js index c333266..0500b87 100644 --- a/src/stock-adjustment-creation/adjustment-creation.controller.js +++ b/src/stock-adjustment-creation/adjustment-creation.controller.js @@ -288,7 +288,9 @@ var isWard = true; if (!vm.itemDestination) { - vm.itemDestination = facility; + vm.itemDestination = angular.copy(facility); + } + if (!vm.itemDestination || vm.itemDestination.id === facility.id) { isWard = false; }