diff --git a/src/org/camunda/latera/bss/helpers/hydra/Service.groovy b/src/org/camunda/latera/bss/helpers/hydra/Service.groovy index 3e755382..cabe491b 100755 --- a/src/org/camunda/latera/bss/helpers/hydra/Service.groovy +++ b/src/org/camunda/latera/bss/helpers/hydra/Service.groovy @@ -71,11 +71,11 @@ trait Service { def subscriptionId = order."${subscriptionPrefix}Id" ?: [is: 'null'] def subscription = hydra.getSubscription(subscriptionId) - order."${parSubscriptionPrefix}Id" = subscription?.n_par_subscription_id - order."${prevSubscriptionPrefix}Id" = subscription?.n_prev_subscription_id - order."${prefix}BeginDate" = subscription?.d_begin ? local(subscription.d_begin) : null - order."${prefix}EndDate" = subscription?.d_end ? local(subscription.d_end) : null - order."${prefix}IsClosed" = decodeBool(subscription?.c_fl_closed) + order."${parSubscriptionPrefix}Id" = subscription?.n_par_subscription_id + order."${prevSubscriptionPrefix}Id" = subscription?.n_prev_subscription_id + order."${subscriptionPrefix}BeginDate" = subscription?.d_begin ? local(subscription.d_begin) : null + order."${subscriptionPrefix}EndDate" = subscription?.d_end ? local(subscription.d_end) : null + order."${subscriptionPrefix}IsClosed" = decodeBool(subscription?.c_fl_closed) if (isEmpty(order."${customerPrefix}Id")) { order."${customerPrefix}Id" = subscription?.n_customer_id }