AX 2012 R2 - USA
Recently I started on a project that requires me to link an invoice to what packing slip it came from which also allows us to know what shipment it was associated with. I noticed that on the packing slip transaction table (CustPackingSlipTrans) there is a field called InvoiceTransRefRecId which has a relationship to invoice transactions (CustInvoiceTrans.RecId) however this field only seems to be populated if the field CustParmaters.MatchedPackingSlipInquiry is checked which is displayed on the form Accounts receivable>Accounts receivable parameters (CustParameters)

however the field is never displayed under the updates tab which could allow you to check it. But then I noticed on the custparmaters table the field had a country code of IN (I'm guessing India) so I removed the country code and the field now shows on the parms form. However this field (CustPackingSlipTrans.InvoiceTransRefRecId) gets populated via the class SalesInvoiceJournalCreate.endCreate() but there is another check to only execute the code if the country region code is IN.

My question is why would you only ever want to keep track of what packing slip an invoice came from if you are in India? I understand creating the India transaction if you are in India but why not keep track of invoice --> packing slip at all times? Can anyone shed some light into this and why you wouldn't do the following or why AX doesn't do the following(shown below)? Is this just something that MS overlooked ?

*This post is locked for comments
I have the same question (0)