Dear all
we are trying to convert sales order to Purchase quote. But while converting only one item is only converting to quote?
what may be the issue? is anything wrong in the code?
Dear all
we are trying to convert sales order to Purchase quote. But while converting only one item is only converting to quote?
what may be the issue? is anything wrong in the code?
the item don't have the inventory. if the item has inventory, then also it should accept for create a new purchase quote.
Hi,
Looks like you have copied some of the code from standard action Create Purchase Document. That action creates purchase document for the quantity that is unavailable, may be in your case only one line has items that are unavailable so it is creating only one line. If that is the case then you need to change the code to create Purchase quote for all lines and not check on availability.
Hi,
Can you check the Inventory if already available for those items in the system which are not moved to PQ?
Thanks.
André Arnaud de Cal... 291,391 Super User 2024 Season 2
Martin Dráb 230,445 Most Valuable Professional
nmaenpaa 101,156