class DeleteOrderService extends SysOperationServiceBase
{
public void deleteOrder()
{
Table1 table1;
TableLine1 line1Delete;
TableLine2 line2Delete;
Table1 table1Delete;
while select Id from table1 where table1.InventLocationId == XParameters::find().LocationId
{
delete_from line1Delete where line1Delete.Id == table1.Id;
delete_from line2Delete where line2Delete.Id == table1.Id;
delete_from table1Delete where table1Delete.Id == table1.Id;
}
}
}
select TABLE1.ID,INVENTLOCATIONID,*from TABLE1
join TABLELINE1 on TABLELINE1.ID = TABLE1.ID
join TABLELINE2 on TABLELINE2.ID = TABLE1.ID
where INVENTLOCATIONID = 'XX'
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... 290,451 Super User 2024 Season 2
Martin Dráb 228,353 Most Valuable Professional
nmaenpaa 101,148