Quantcast
Channel: Microsoft Dynamics SL
Viewing all articles
Browse latest Browse all 7845

Forum Post: RE: How to get hrs_type and shift code to Flexible Billings

$
0
0
idk what would work best but I can think of a few things to try assuming you are doing everything in detail in pjtran and inv detail. You could join pjtran in the report - although I am not sure enough about the join capabilities of Crystal to tell you how. Or you could create a sub report with PJtran as the source of the sub report and pass the pjinvdet.in_id02 field in to the sub report. Then using the record selection fomula break the id_id02 field apart to filter down to the single PJTRAN record that it was created from. Or... you could create a view using the SQL below and set the datasource of pjinvdet to point to the view instead of the table of that name (<- not sure if this will kill ROI) If it does, then change the view to only have the key pjinvdet fields and the pjtran fields you need and add it to the report and link it to pjinvdet. select t.tr_id24, d.* from pjinvdet d inner join pjtran t on t.fiscalno = left(in_id12,6) and t.system_cd = SUBSTRING(in_id12, 7,2) and batch_id = SUBSTRING(in_id12,9,10) and detail_num = SUBSTRING(in_id12,19,10) Hope this helps... btw while I tested the query enough to make sure it works for me with my data - idk your data or setup enough to promise anything. Use at your own risk. Ayrin

Viewing all articles
Browse latest Browse all 7845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>