OrderSelect(12470, SELECT_BY_TICKET)

 

If I select an order by

if( OrderSelect(12470, SELECT_BY_TICKET) )

do I get a true even if this order of the Ticket is already closed and the order is already in the HistoryPool?

Gooly

 
Per the DocumentationThe pool parameter is ignored if the order is selected by the ticket number.
 
gooly:

If I select an order by

. . .

do I get a true even if this order of the Ticket is already closed and the order is already in the HistoryPool?


Yes. When using the SELECT_BY_TICKET argument, the "pool parameter is ignored" because the ticket number is a unique order identifier. See OrderSelect().
 
Yes, thats correct. Unless the user has been limited the Account History by giving an date interval, because in that case you will got back false. Of course, this fact is missing from the documentation as far as I know :)
Reason: