First, to generate dealership wise PDF file and Second, to mail the generated report pdf file to the related dealership.
Please find the enclosed report image (which I am using in my app), pdfs need to be generated dealership wise and mail to the relative dealership..dealership info is available in dealership image. I am unable to attach the files, so pls have a screen shot of the same below.