А версия приложения какая? В 2012 написано вот что:
Цитата:
This method is called from the SalesTableForm class when you enter a new sales line. If the quantity that is entered must be reserved, the method checks for the available inventory. If inventory is not found, the method returns the InventOnHandCheckReserve dialog box to the user. From here, the user can change the quantity on the order line or ignore the dialog box and continue.
И метод на самом деле, если что, запускает форму, т.е. по замыслу авторов кода вызывать его в неинтерактивном режиме, а тем более в пакетном задании явно не стоит.