Skip to content

Commit

Permalink
update import templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthakumaran committed Aug 29, 2023
1 parent 19b546e commit d7a4810
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
8 changes: 4 additions & 4 deletions fixture/import/HDFC Account Statement/statement.ledger
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
2023/05/03 UPI
Expenses:Unknown 110.00 INR
Assets:Checking
Assets:Checking:HDFC

2023/05/04 UPI
Expenses:Unknown 200.00 INR
Assets:Checking
Assets:Checking:HDFC

2023/05/05 UPI
Assets:Checking 237.00 INR
Assets:Checking:HDFC 237.00 INR
Income:Unknown

2023/05/05 UPI
Expenses:Unknown 166.00 INR
Assets:Checking
Assets:Checking:HDFC
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{#if (isDate ROW.A "DD/MM/YY")}}
{{date ROW.A "DD/MM/YY"}} {{ROW.B}}
{{#if (or (eq (trim ROW.F) "0.00") (isBlank (trim ROW.F)))}}
{{predictAccount prefix="Expenses"}} {{trim ROW.E}} INR
Assets:Checking:HDFC
{{else}}
Assets:Checking:HDFC
{{predictAccount prefix="Income"}} -{{trim ROW.F}} INR
{{/if}}
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
{{date ROW.A "DD/MM/YY"}} {{ROW.B}}
{{#if (eq (trim ROW.E) "0.00")}}
{{predictAccount prefix="Expenses"}} {{trim ROW.D}} INR
Assets:Checking
Assets:Checking:HDFC
{{else}}
Assets:Checking {{trim ROW.E}} INR
Assets:Checking:HDFC {{trim ROW.E}} INR
{{predictAccount prefix="Income"}}
{{/if}}
{{/if}}
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{#if (and (isDate ROW.A "DD/MM/YYYY") (isBlank ROW.G))}}
{{#if (isDate ROW.A "DD/MM/YYYY")}}
{{date ROW.A "DD/MM/YYYY"}} {{ROW.C}}
{{#if (regexpTest ROW.G "CR")}}
Income:Refund:CreditCard:ICICI -{{ROW.F}} INR
{{else}}
{{predictAccount prefix="Expenses"}} {{ROW.F}} INR
{{/if}}
Liabilities:CreditCard:ICICI
{{/if}}
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
<div class="content">
<div>
{#each currentBudget.accounts as accountBudget (accountBudget)}
<BudgetCard compact {accountBudget} selected={false} />
<BudgetCard compact {accountBudget} />
{/each}
</div>
</div>
Expand Down

0 comments on commit d7a4810

Please sign in to comment.