Page 1 of 1

Reporting on S3 Lines

Posted: 08 Aug 2018, 12:59
by verity.cymru
I'm trying to report on S3 service lines we use when we do a service repair. Often the customer has had goods at the same time as a service so S3 lines go on product invoices for ease, so I can't use the standard reports for Service Invoices to report on.

I have a report I use which works well to report on customer activity but currently picks up stock lines only. Would I be able to devise a report, or integrate it to my existing report - as the same customer will order products as well as have repairs so would be good to report on the whole of the customers activity - that would report on these S3 service sales?

Does the answer lie in expressions? Joins? I'm at a loss.

Thanks

Re: Reporting on S3 Lines

Posted: 08 Aug 2018, 13:37
by brucedenney
The Answer lies in the join type between the tables.

When the S3 code is found, it trys to look it up in the Stock table, but, it doesn't exist, so it returns no data.

You need to change the join type between the invoice item table and the stock table into a "ParentOuter" this will always include the data from the invoice item, and only included data from the stock table when there is a match.

Bruce

Re: Reporting on S3 Lines

Posted: 08 Aug 2018, 14:53
by verity.cymru
I've changed that and still can't get it to pick up on those S3 lines. Might there be another reason it's not picking it up?

Re: Reporting on S3 Lines

Posted: 09 Aug 2018, 11:12
by brucedenney
You have the filter set to

Code: Select all

INVOICE_ITEM.STOCK_CODE NOT LIKE "S3"
Remove that and you should be making progress.

Re: Reporting on S3 Lines

Posted: 09 Aug 2018, 11:38
by verity.cymru
It worked!! Thank you so much :D