Skip to content

Commit

Permalink
Update Zerodha.handlebars to resolve error in commodity name
Browse files Browse the repository at this point in the history
Commodity name does not accept spaces, have concatenated with `-`. May be there are better fixes?
  • Loading branch information
raja-mvv authored Oct 1, 2024
1 parent 8430ad8 commit 4291456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/model/template/templates/Zerodha.handlebars
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit 4291456

Please sign in to comment.