Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insufficient Space in Template for Description and Account Rules #211

Open
Piyush-KumarSingh opened this issue Apr 14, 2024 · 0 comments
Open

Comments

@Piyush-KumarSingh
Copy link

Describe your Environment
OS: Windows 11
Paisa Version: 0.6.6
App Variant: CLI

Describe the bug
Currently, the template space provided for writing descriptions and defining Expense Accounts and Asset Accounts is insufficient. This limitation becomes particularly problematic when attempting to define a significant number of rules, such as around 90 rules, as it requires extensive if-elseif-else statements. The primary issue stems from the limited viewing space, which only offers scrollbars for navigation.

To Reproduce
Steps to reproduce the behavior:
1.Open the template for adding descriptions and defining account rules.
2.Attempt to write or manage a large number of rules, around 74 or more (and still increasing :p).
3.Notice the difficulty in navigating and comprehending the code due to the limited space and reliance on scrollbars.

Expected behavior
The template should offer adequate space for users to comfortably write and manage their descriptions and account rules without the need for excessive scrolling or complex code navigation.

Screenshots
If applicable, add screenshots to help explain your problem.

Journal

{{#if (isDate ROW.A "D MMM YYYY")}} 
  {{date ROW.A "D MMM YYYY"}} {{#if (isBlank ROW.E)}} {{or (match ROW.C DL_Income="NEFT\*HDFC000|salary") 
                                                           (match ROW.C GOT_Income="AJ")
                                                           (match ROW.C zomato_Refund="zomato")
                                                           
                                                           }}{{else if (regexpMatch ROW.C "9590847273" group=0)}}
                              	{{#if (gte ROW.E "16000")}}
                                	{{match ROW.C LL_Security_Money="9590847273"}}
                                {{elif (gte ROW.E "12000" and lte ROW.E "15000")}}
                                	{{match ROW.C LL_Rent="9590847273"}}
                                {{elif (gte ROW.E "6000" and lte ROW.E "8000")}}
                                	{{match ROW.C LL_Gas_expenses="9590847273"}}          		  
                                {{else}}
                                	{{match ROW.C LL_Electricity="9590847273"}}
                                {{/if}}
                            {{else}} {{ or 
                                   (match ROW.C nifty="Mutual Funds")
                                   {{!There are around 90 more which i didn't include}}
                                    }}
                              {{/if}}
{{#if (isBlank ROW.F)}};expense 
      	{{#if (regexpTest ROW.C "Mutual Funds")}}
        	Assets:Equity:NIFTY          {{amount ROW.E}} INR 
            Assets:Checking:SBI
        {{else if (regexpTest ROW.C "Stocks")}}
			Assets:Stocks_Wallet          {{amount ROW.E}} INR
            Assets:Checking:SBI
        {{else}}
            {{or (match ROW.C Expenses:Food_zomato="zomato")
            "Expenses:Unknown" }}  {{amount ROW.E}} INR
            Assets:Checking:SBI
        {{/if}}
{{else}} 
     Assets:Checking:SBI                       {{amount ROW.F}} INR    
    {{or (match ROW.C Income:DL="NEFT\*HDFC0000|salary")
    	 (match ROW.C Income_GOT="AJ")
         "Income:Unknown"}}
  {{/if}}
{{/if}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant