paisa icon indicating copy to clipboard operation
paisa copied to clipboard

Fix Zerodha.handlebars to resolve error in commodity name with spaces

Open raja-mvv opened this issue 1 year ago • 5 comments

Commodity name does not accept spaces, have concatenated with -. May be there are better fixes?

raja-mvv avatar Oct 01 '24 14:10 raja-mvv

What client do you use? AFAIR, double quotes around commodity names should fix this issue

ananthakumaran avatar Oct 02 '24 01:10 ananthakumaran

I just used the default version, not sure what client it is. where to check? image

raja-mvv avatar Oct 02 '24 12:10 raja-mvv

You are using ledger only, can you share the exact error you get here?

ananthakumaran avatar Oct 02 '24 16:10 ananthakumaran

Using below statement

2024/09/23 Purchased 99 Shares of AXIS SMALL CAP FUND - DIRECT PLAN
        Assets:Stocks:AXIS SMALL CAP FUND - DIRECT PLAN	    	98.762 "AXIS SMALL-CAP-FUND---DIRECT-PLAN" @ 12.9 INR
    Assets:Checking:Zerodha

throws below error Screenshot 2024-10-03 at 7 29 40 PM

raja-mvv avatar Oct 03 '24 11:10 raja-mvv

Using below statement

2024/09/23 Purchased 99 Shares of AXIS SMALL CAP FUND - DIRECT PLAN
        Assets:Stocks:AXIS SMALL CAP FUND - DIRECT PLAN	    	98.762 "AXIS SMALL-CAP-FUND---DIRECT-PLAN" @ 12.9 INR
    Assets:Checking:Zerodha

throws below error Screenshot 2024-10-03 at 7 29 40 PM

There is an easy byfix to this, instead of having special chars in the name of the commodity or asset, try to streamline it using simple keywords, e.g.

Assets:Stocks:AxisSmallCapFundDirect	   98.762 AxisSmallCapDirect @ 12.9 INR

Set this commdity config using this name AxisSmallCapDirect

ashishsantikari avatar Mar 01 '25 22:03 ashishsantikari