I suck at tables and connections.
I am using this BAQ to have all invoices from a group (criteria is group ID on InvcHead) show and I will export all this data into excel so i can then copy and paste this into invoices I make via EDI.This has shaved a ton of time off my hands, and does not require me to jump screen to screen in Epicor qith the “open with” every invoice.
It all worked until I added TrackingDtl (and for the life of me can’t figure out how to display the information correctly, I did use ShpDtl I think at first, but had even bigger problems)
some invoices through EDI ask for a tracking number or pack ID (this is why I am incorporating these into the displayed columns)
As far as “Customer” I would like to have: Sold to Customer Name Ship to Address Bill to Name
(I’m unsure of where I can find these to work)
What am I doing wrong? I have previously got the tracking number to show up, but it wont show the Pack ID, or it returns bogus lines for that one invoice…?
If you need more than the first tracking number you need cartontrkdtl. You have to make the join manually. The join would be company=company and packnum=packnum.
you can add the InvoiceDtl.invoiceline, PackNum and Packline to see if you are getting the same ship head for each invoice line.
You can also change Shiphead, Customer and Shipto to full joins and first instead of each. This will help speed and avoid duplicates as long as you are getting all of the results you need.
The full joins between ShipHead, Customer, and ShipTo and changing the qualifier to first instead of each for all three solved it.
I will test by invoicing a group and will update if it for sure worked.
I had already used the InvoiceDtl.InvoiceLine and InvoiceDtl.PackNum so I didn’t have to change anything there.
It did get rid of the duplicate lines, but I did not notice that it made all the tracking numbers and customer/bill to customer the same until I started to invoice…
I took the outer join off and it’s still pulling the same tracking over (I deleted the customer name/bill to for now) since I was about to invoice another group and didn’t want the duplicated names
Is that the whole tracking number? It seems short and I can’t see a way that three different shipheads can come up with the same tracking number.
For the image you uploaded, the 17+ lines will all have the same invoice number and packnum, so all of the tracking, customer, etc. would also be the same.
I should have used a better example, but this isn’t even a tracking number we use.
The first order should have a tracking that starts with 4514etc and the second one shouldn’t even have a tracking number since it was a CPU. for the large order the po should have started with a fedex freight tracking 3837etc.
So I am unsure of where this tracking number comes from (along with the customer “Orshelns” ) we haven’t even used this customer yet (new customer from several months back but have yet to create a order).