Quantcast
Channel: Microsoft Dynamics AX
Viewing all articles
Browse latest Browse all 101540

Forum Post: RE: modifiedField() - temporary table

$
0
0
I've been trying to add restriction to a checkbox (select for arrival) from WMSArrivalOverview form. First of all users must select the earliest record (if exists) with the same vendor, item number etc. I created select statement which checks if there is a earliest record from PurchLine table. select * from purchLine order by ConfirmedDlv ASC where PurchLine.ItemId == _wmsArrivalDetailTmp.ItemId && purchLine.PurchaseType == PurchaseType::Purch && purchLine.PurchStatus == PurchStatus::Backorder && !purchLine.IsDeleted && purchLine.RemainInventPhysical >= _wmsArrivalDetailTmp.Registered && purchLine.ConfirmedDlv != dateNull() && purchLine.PurchQty > 0 exists join purchTable where purchTable.PurchId == PurchLine.PurchId && purchTable.OrderAccount == _custVendAC notExists join wmsArrivalDetailTmpAS where wmsArrivalDetailTmpAS.Selected && wmsArrivalDetailTmpAS.InventTransId == PurchLine.InventTransId;

Viewing all articles
Browse latest Browse all 101540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>