HDFC Rupay Card Template
Closed this issue · 2 comments
Mozenraath commented
6529XXXXXXXXXX70_13-06-2024 - Copy.PDF
Hi,
it would be great if you can support to create the template for Rupay credit card. I tried with existing templates but was not successful getting rid of invalid dates.
Much appreciated.
ananthakumaran commented
{{#if (isDate (regexpMatch ROW.A "\s*(\d{2}/\d{2}/\d{4}).*" group=1) "DD/MM/YYYY")}}
{{date (regexpMatch ROW.A "\s*(\d{2}/\d{2}/\d{4}).*" group=1) "DD/MM/YYYY"}} {{ROW.B}}
{{#if (eq (trim ROW.D) "Cr")}}
Income:Refund:CreditCard:HDFC -{{trim ROW.C}} INR
{{else}}
{{predictAccount prefix="Expenses"}} {{trim ROW.C}} INR
{{/if}}
Liabilities:CreditCard:Rupay
{{/if}}
give this a try
Mozenraath commented
Worked perfectly..
Thanks a lot.