web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

how to get the method that change quotation status from created to sent in Project quotation form AX 2012

(0) ShareShare
ReportReport
Posted on by 10,280

plz somebody help me

*This post is locked for comments

I have the same question (0)
  • David Massey Profile Picture
    on at

    For Project quotations, workflow must be configured and activated. Once the quotation is approved, it can be marked as to "Sent" to customer/prospect. Setting the quotation to approved state without using workflow is not supported.

  • Suggested answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    I agree to what David Massey has said above.

    In addition I would like to mention following

    1. If you are using Project3 Configuration Key, you have no way to skip Quotation Workflow (This is Behavior of Standard AX). So workflow classes are responsible for changing status of quotation
    2. If you want to Use Project3 Configuration key, But on other hand you don't want to use workflow, i.e. you want to avoid usage of Standard AX, that is also POSSIBLE with a very minor change using Customization.

  • Codehunter Profile Picture
    10,280 on at

    i need to set the status "sent " if i change certain control value ;otherwise,i need it to set the status "Revised"

  • Suggested answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    PSAProjQuotationStateChangeManager (class) is responsible to change status of Quotation in  case you are using Workflow.

  • Codehunter Profile Picture
    10,280 on at

    i know but how to change it in case of modified one control

  • David Massey Profile Picture
    on at

    Revised is not intended for value change of a control.  It is a document state.  The process flow for entering this state is that the quote has been sent to a customer (Once sent to a customer the quotation can not be edited). After the quote has been sent, the document needs to be edited (Proposal change, Requested work changed, etc.). There is an explicit action (button) to set the document into the Revised state. This allows editing of the quotation and forces the workflow process to be started again.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Forcefully you can do anything 'On changing value of any control' or 'On modified field of any field'.

    But that would not be appropriate.

    I cannot understand your issue. Can you please explain what you really looking for. From start of thread till yet no idea what you want to do. Please elaborate

  • Codehunter Profile Picture
    10,280 on at

    I need to stop changing its type sent to revised in case certain control has been selected.

  • Suggested answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    you can write your code in class which is responsible for changing status of Workflow i.e.

    PSAProjQuotationStateChangeManager (Class) updateStatus (method)

    static void updateStatus (RecId _salesQuotationRecId, SalesQuotationStatus _status)
    {
        SalesQuotationTable salesQuotationTable;
    
        ;
    
        select forupdate salesQuotationTable where
            salesQuotationTable.RecId == _salesQuotationRecId;
    
        if (salesQuotationTable)
        {
            salesQuotationTable.QuotationStatus = _status;
            if(salesQuotationTable.QuotationStatus != SalesQuotationStatus::Revised)
            {
                salesQuotationTable.update();
            }
            else
            {
                if(!ConditionOfYourControl)
                {
                    salesQuotationTable.update();
                }
            }
        }
    
    }

    if you don't want to modify your workflow classes a shortcut could be writing your code in update(method) of SalesQuotationTable and prevent there from updating status to revised.

  • David Massey Profile Picture
    on at

    I should have started the discussion with the question What version of Ax 2012 are you using?.   This functionality has changed between AX 2012 RTM and AX 2012 R3.  In R3 you can not modify a quotation once has been Sent unless the user set the document state to Revised for editing.  There are some KBs to earlier versions around editing a quotation which was sent that update the document to Modified state.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans