I have successfully run the below bpm in SalesOrder.Update. However, I really want it to run earlier than that. I need it to run as soon as the order is created from the quote. (In our process we go directly from Quote/Order Wizard to Order/Job wizard, without even opening up the sales order).
I tried Quote.CreateOrder, but it does not have OrderRel as an available table.
Any other ideas where I could put this bpm?
By default, only manufactured part names on an order line get marked "make direct". I want all order lines to be marked "make direct", regardless of whether the part name is manufactured or purchased.
Thanks,
Dan
/*Add source code that should be executed before the designed actions here*/
for each ttOrderDtl no-lock:
if avail ttOrderDtl then do:
for each Orderrel where OrderRel.Make = FALSE no-lock:
if avail OrderRel then do:
run lib\UpdateTableBuffer.p (input buffer OrderRel :handle, input "Make", TRUE ).
end.
end.
end.
end.
{&CALL_DESIGNED_ACTIONS}
{&CALL_DESIGNED_ACTIONS}
/*Add source code that should be executed after the designed actions here*/
I tried Quote.CreateOrder, but it does not have OrderRel as an available table.
Any other ideas where I could put this bpm?
By default, only manufactured part names on an order line get marked "make direct". I want all order lines to be marked "make direct", regardless of whether the part name is manufactured or purchased.
Thanks,
Dan
/*Add source code that should be executed before the designed actions here*/
for each ttOrderDtl no-lock:
if avail ttOrderDtl then do:
for each Orderrel where OrderRel.Make = FALSE no-lock:
if avail OrderRel then do:
run lib\UpdateTableBuffer.p (input buffer OrderRel :handle, input "Make", TRUE ).
end.
end.
end.
end.
{&CALL_DESIGNED_ACTIONS}
{&CALL_DESIGNED_ACTIONS}
/*Add source code that should be executed after the designed actions here*/