Announcements
Hi
I want to automate task of creating purchase order from purchase quote .
*This post is locked for comments
If you want to automate it without human intervention then create a new report/codeunit and loop through each purchase quote and call the function which gets called on the Make Order.
Make sure you hide all the dialog boxes in the existing codeunit 96 using GUIALLOWED
If you use Codeunit you can add code like this : This is just an example
PurchQuoteToOrder is of type codeunit 96
PurchHeader is of Type Table 38
PurchHeader.RESET;
PurchHeader.SETRANGE("Document Type",PurchHeader."Document Type"::Quote);
IF PurchHeader.FINDSET THEN
REPEAT
PurchQuoteToOrder.RUN(Rec);
UNTIL PurchHeader.NEXT = 0;
sorry, I was referring in Sales side like sales Quote to Sales Order.
you need to add action in Purchase Quote
Hi,
Sorry to ask you ,but why should i create a action in sales quotes , if am trying to make a purchase order from purchase quote
you have to create an action in Sales Quotes page and select the Quotes and send them to codeunit 86 with a repeat loop. make sure that there wont be any repeated confirmations are messages etc.
i have to make build orders
what is yes? I have posted 2 options..
yes
how? using job queues?
or you want to make build orders?
André Arnaud de Cal...
294,261
Super User 2025 Season 1
Martin Dráb
232,996
Most Valuable Professional
nmaenpaa
101,158
Moderator