Following on from this tutorial, I am trying to modify it to suit my needs.
I am trying to create a report showing all customers with open balances and show last payment date (It would be better if this could show in days Eg, 30 days ago.)
I plan on adding this to the Account statement entity screen created following the tutorial above.
The aim is to have be able to view the report, See who has not been making payments recently, click on their name, show statement , and email them a reminder.
Is it possible to report last payment and purchase date using custom reports?
Is it possible to create a report using built in reports where I can select a row or should sql be used? I need to be able to pass the Entity id to Select Customer Automation Command.
Probably, but you might need to use REPORT SQL DETAILS tag to do so.
You can use a Report of any kind, it just needs to be in [#grid] mode (the leading # in the report header puts the report in that mode). Then the columns are passed via Settings Mappings in the Widget Settings as:
varName=ReportTitle.1 (column 1 of selected row/record) varName7=ReportTitle.2 (column 2 of selected row/record) varName2=ReportTitle.3 (column 3 of selected row/record)
I have tried using AScustomerid.1 via settings mappings but it wont work. It just returns 0.
I also copied your account statement report settings and added it like AScustomerid=Customer Account Balances.1
I noticed in your report widget there are parameters assigned, are these necessary?
EDIT: I have found my mistake. Its easier to spot problem when its all on the one page.
Setting mappings has to be the report title not the report name.
It needs to be AScustomerid=Customer Account Balance Due.1
I have almost figured out how to extract the data but I cant get it to show all Customers. At the minute i have it showing only customer id =275
Another issue is my customer name is a custom field (phone number is primary) and I cant seem to extract this data from the CustomData String [{"Name":"Customer","Value":"test customer"},{"Name":"Address","Value":null},{"Name":"Email","Value":null},{"Name":"Company Name","Value":null},{"Name":"Other Phone","Value":null},{"Name":"Date ZeroBalance","Value":"2015-12-12"}]
EDIT: I have almost got this working Now.
I just cannot manage to extract the Customer Name from the CustomData string
I have decided to just use the customer account name as this includes the customer name and phone number.
I have no understanding of JScript so i wouldn’t know where to start.