Hi everyone.
We don't use Fedex integration at the moment. Instead, we use Fedex's ShipManager software, which then writes shipping information (tracking numbers and cost) to a local MySQL database. Then, when an invoice is generated from an order, I have a before-load user event script that sends a query to that database for the shipping details. This before-load script populates the packages section of the fulfillment, and is working quite well.
The problem is that we would like to see these tracking numbers on the invoice. Once the fulfillment has been updated, we can immediately reload the sales order and see the Linkedtrackingnumbers field filled with the numbers. This is great. If I separately create the invoice, the same thing happens there. Great. However, if I create the packages in the before-load script, even though the fulfillment is edited and saved before load, the tracking numbers still do not appear on the invoice record.
In other words, the only way for the tracking numbers to appear on the invoices is for the for the invoicing to be done separately from the packages being entered. If I enter the packages via before-load script on the invoice, then proceed to create the invoice, the field is not populated.
Anyone know why this is or how to fix it?