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" },