I have an additional Status field on my SalesHeader which appears on my Quotations. It has an Option string of "New & Order". I am trying to change the value of this field from "New" to "Order" when I convert the Quotation to an Order. (I want to filter on this field to list outstanding Quotations). I tried to add code to Codeunit 86 Sales-Quote to Order, which is called from a command button, but I cannot get the Sales Header table to Update. Any suggestions welcome.
Thanks
Tim
0
Comments
RIS Plus, LLC
MVP - Business Apps
But why do you need this field? The order you can identify by the field document type.
Or became all new Orders, they are not from a quote also the status "New"?
I doesn't see there a reason ....
Thanks
Tim
When the quote is convereted to order the quote is deleted and the quote no. flows to the sales order. All the quotes you can see have not "won".
Still if you want to manage you can modify the sales header - quote at CU 86 before "Delete" (Which you might have commented for your purpose).
Ritesh K Singh
Any pointers greatfully received.
Thanks
DELETE;
SalesQuoteLine.DELETEALL;
FromDocDim.SETRANGE("Line No.");
FromDocDim.DELETEALL;
YourOrderStatus := YourOrderStatus::Order;
MODIFY;
COMMIT;
CLEAR(CustCheckCreditLimit);
CLEAR(ItemCheckAvail);
Thank you very much.