From 8ca031794b5b2168da5df5302efd89b665e976bf Mon Sep 17 00:00:00 2001 From: erramesh000 <83356629+erramesh000@users.noreply.github.com> Date: Wed, 5 Jun 2024 15:38:50 +0530 Subject: [PATCH] Fixed issues date sw-bill.json --- configs/pdf-service/data-config/sw-bill.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/pdf-service/data-config/sw-bill.json b/configs/pdf-service/data-config/sw-bill.json index 4f1123d3..3ce11c20 100644 --- a/configs/pdf-service/data-config/sw-bill.json +++ b/configs/pdf-service/data-config/sw-bill.json @@ -500,14 +500,14 @@ { "variable": "fromPeriod", "value": { - "path": "$.billDetails[$.billDetails.length -1].fromPeriod" + "path": "$.billDetails[?(@.amount > 0)].fromPeriod" }, "type": "date" }, { "variable": "toPeriod", "value": { - "path": "$.billDetails[$.billDetails.length -1].toPeriod" + "path": "$.billDetails[?(@.amount > 0)].toPeriod" }, "type": "date" },