Added a check to see if the table being processed is the 'ContractLine' table.
The stored procedure to delete existing contractlines for incoming orders
should only be called in this case.