while select custPackingSlipTransView order by SalesId desc where custPackingSlipTransView.OrderAccount == salesTable.CustAccount && custPackingSlipTransView.DeliveryDate == deliveryDate && custPackingSlipTransView.Qty > 0.00 notexists join salesLine where custPackingSlipTransView.InventTransId == salesLine.InventTransIdReturn exists join dlvTerm where custPackingSlipTransView.DlvTerm == dlvTerm.Code && dlvTerm.DlVstatus == NoYes::Yes
exists join dlvTerm where custPackingSlipTransView.DlvTerm == dlvTerm.Code && dlvTerm.DlVstatus == NoYes::Yes
while select custPackingSlipTransView order by SalesId desc
where custPackingSlipTransView.OrderAccount == salesTable.CustAccount
&& custPackingSlipTransView.DeliveryDate == deliveryDate
&& custPackingSlipTransView.Qty > 0.00
exists join dlvTerm where custPackingSlipTransView.DlvTerm == dlvTerm.Code
&& dlvTerm.DlVstatus == NoYes::Yes
notexists join salesLine
where custPackingSlipTransView.InventTransId == salesLine.InventTransIdReturn
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156