Hi all,
First of all, excuse my English. It's not my mother language.
We are developing a sales order wizard for a customer, and we have a problem with the automatic availability check.
We have added a new button in the Sales Order Form that starts this wizard. Basically, it do some read-only queries in database, it retrieves some itemcodes, it calculates quantities and prices and, with UI API, it create some new lines in the Sales Order. That is, with just a button, the system complete a sales order based in some criteria defined by Sales Department.
However, our customer wants to work with Automatic Availability Check in their standard operations, so this setting is enabled. Therefore, this setting truncates our wizard when it tries to write new lines and the quantity is bigger than available stock.
We have tried to work with CompanyService object (EnableCheckQuantityInRDR), but I am afraid that it does not work, because Sales Order Form is already in memory, so changes in EnableCheckQuantityInRDR does not have influence over it.
Has anyone an idea about this? How could we solve this? Is it possible to prevent the Automatic Availability Check in a form already loaded?
Thanks in advance.
Regards,
Antonio Dorta
Edited by: Antonio Dorta on May 16, 2008 12:32 PM