SimpleInvoices Group Forum › Forums › Fearless359 SimpleInvoices Discussion Group › Invoices not appearing in grid › Reply To: Invoices not appearing in grid
August 9, 2022 at 2:30 am
#1784
RRowley
Participant
I suspect the issue is with attempt to render the two amount fields where data is bad. One thing to try is to print the fields without rendering. This isn’t too difficult. Make a copy of the file “templates/default/invoices/manage.tpl”. Now change the original file from:
{ "data": "total", "render": function (data, type, row) { let formatter = new Intl.NumberFormat(row['locale'], { 'style': 'currency', 'currency': row['currency_code'] }); return formatter.format(data); } }, { "data": "owing", "render": function (data, type, row) { let formatter = new Intl.NumberFormat(row['locale'], { 'style': 'currency', 'currency': row['currency_code'] }); return formatter.format(data); } },
to:
{"data": "total"}, {"data": "owing"},
Now try it an see what the data looks like. Look for any oddities in these two fields. You might have to page past the first screen.
- This reply was modified 2 years, 2 months ago by RRowley.
Recent Comments