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
Post a Comment