Find the correct lot if from invoice in D 365 fo

 Today we have a req to find the correct lot if while invoice from the report below query helps to find the lot it aGainst the packing slip 


 /

 select firstonly custpackingsliptransloc

     where custpackingsliptransloc.inventtransid == _custinvoicetrans.inventtransid

      join inventtransoriginloc

         where inventtransoriginloc.inventtransid == custpackingsliptransloc.inventtransid

      join inventtransloc

         where inventtransloc.inventtransorigin == inventtransoriginloc.recid &&

               inventtransloc.packingslipid == custpackingsliptransloc.packingslipid &&

               inventtransloc.invoiceid == _custinvoicejour.invoiceid;


Comments

Popular posts from this blog

Customization on Sales invoice Report in D365 F&O

75) COC - Create a coc of the table modified method

46) D365 FO: SHAREPOINT FILE UPLOAD USING X++