From d6bd943e0e9e36cf9a3c23ad336a68e632e88b51 Mon Sep 17 00:00:00 2001 From: Gerald Baulig Date: Wed, 17 Apr 2024 16:36:27 +0200 Subject: [PATCH] fix(rules): force require order state SUBMITTED for withdraw --- datasets/system/data/seed-data/rules.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/datasets/system/data/seed-data/rules.yaml b/datasets/system/data/seed-data/rules.yaml index 0ded57d..bb0cf7f 100644 --- a/datasets/system/data/seed-data/rules.yaml +++ b/datasets/system/data/seed-data/rules.yaml @@ -800,8 +800,7 @@ " context?.resources?.some( resource => ( - !resource.order_state - || resource.order_state?.toString() === 'SUBMITTED' + resource.order_state?.toString() === 'SUBMITTED' ) ) "