From c31daf81eeaa5aa24adbcd49abc507455e515540 Mon Sep 17 00:00:00 2001 From: DominikNoga Date: Tue, 18 Jun 2024 17:09:48 +0200 Subject: [PATCH] fixed issue --- .../adjustment-creation.controller.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stock-adjustment-creation/adjustment-creation.controller.js b/src/stock-adjustment-creation/adjustment-creation.controller.js index ea033f8..5c9be17 100644 --- a/src/stock-adjustment-creation/adjustment-creation.controller.js +++ b/src/stock-adjustment-creation/adjustment-creation.controller.js @@ -1047,9 +1047,10 @@ return false; }); - vm.displayWardSelect = vm.homeFacilityWards.length > 0; + vm.displayWardSelect = vm.homeFacilityWards.length > 0 && + adjustmentType.state === ADJUSTMENT_TYPE.RECEIVE.state; - if (vm.displayWardSelect) { + if (vm.homeFacilityWards.length > 0) { var wardNames = vm.homeFacilityWards.map(function(ward) { return ward.name; });