From 1e51682645db2a1de2d4f4fcc6f7b64baef37b39 Mon Sep 17 00:00:00 2001 From: dmitry <dmitry.zyryanov@execution.su> Date: Thu, 17 May 2018 17:48:10 +0700 Subject: [PATCH] hide deactivated insurances --- ui-frontend/formatter/formatter.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui-frontend/formatter/formatter.js b/ui-frontend/formatter/formatter.js index d048b34..f298a72 100644 --- a/ui-frontend/formatter/formatter.js +++ b/ui-frontend/formatter/formatter.js @@ -8,6 +8,9 @@ sap.ui.define([ function findLastInsurance(insurances) { return insurances.reduce( function(lastInsurance, insurance) { + if (insurance.isManuallyDeactivated) { + return lastInsurance; + } if (!lastInsurance) { return insurance; } -- GitLab