From 429145690bd3bbee8037c7b58f195c63100b4939 Mon Sep 17 00:00:00 2001 From: raja-mvv <144351527+raja-mvv@users.noreply.github.com> Date: Tue, 1 Oct 2024 22:16:06 +0800 Subject: [PATCH] Update Zerodha.handlebars to resolve error in commodity name Commodity name does not accept spaces, have concatenated with `-`. May be there are better fixes? --- internal/model/template/templates/Zerodha.handlebars | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/model/template/templates/Zerodha.handlebars b/internal/model/template/templates/Zerodha.handlebars index ced3d091..05ec6eb2 100644 --- a/internal/model/template/templates/Zerodha.handlebars +++ b/internal/model/template/templates/Zerodha.handlebars @@ -1,12 +1,12 @@ {{#if (isDate ROW.C "YYYY-MM-DD")}} {{#if (eq ROW.G "buy")}} {{date ROW.C "YYYY-MM-DD"}} Purchased {{round ROW.I}} Shares of {{ROW.A}} - Assets:Stocks:{{ROW.A}} {{round ROW.I}} "{{ROW.A}}" @ {{round ROW.J precision=4}} INR + Assets:Stocks:{{ROW.A}} {{round ROW.I}} "{{replace ROW.A ' ' '-'}}" @ {{round ROW.J precision=4}} INR Assets:Broker:Zerodha {{/if}} {{#if (eq ROW.G "sell")}} {{date ROW.C "YYYY-MM-DD"}} Sold {{round ROW.I}} Shares of {{ROW.A}} - Assets:Stocks:{{ROW.A}} {{negate (round ROW.I)}} "{{ROW.A}}" @ {{round ROW.J precision=4}} INR + Assets:Stocks:{{ROW.A}} {{negate (round ROW.I)}} "{{replace ROW.A ' ' '-'}}" @ {{round ROW.J precision=4}} INR Assets:Broker:Zerodha {{/if}} {{/if}}