Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

to get sales order processing status using display method

(0) ShareShare
ReportReport
Posted on by 1,479
hi,
I want to create the display method on form where where sales order processing status can be display but i am not getting how to do it , can any one help me out with it please .
 
thanks ,regards 
Dinesh
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,479 on at
    to get sales order processing status using display method
    hi , 
    martin 
    thanks for reply my problem is resolved ,
    i have created the displlay method which changes the status of enum field according to the status of salesorder.salesstatus and salesorder.documentststus ,now its working fine .
     
    thanks,
    regards,
    Dinesh 
  • Martin Dráb Profile Picture
    Martin Dráb 230,934 Most Valuable Professional on at
    to get sales order processing status using display method
    Do I understand correctly that your problem is resolved? If not, please explain the problem. ("i dont have idea about the sales order processing status" doesn't tell me what logic you want to implement.)
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,479 on at
    to get sales order processing status using display method
    hi martin ,
    thanks for reply 
    i have display method its working fine , i dont have idea about the sales order processing status so that was my issue .
    my code is below.
    [ExtensionOf(tableStr(SalesTable))]
    final class SalesTableProcessingStatus_Extension
    {
        display str SalesOrderProcessingStatus()
        {
            SalesOrderProcessingStatus processingStatus;
    
            if(this.SalesStatus== SalesStatus::Backorder && this.DocumentStatus == DocumentStatus::None)
            {
                processingStatus = SalesOrderProcessingStatus::Active;
            }
            else if(this.SalesStatus== SalesStatus::Backorder && this.DocumentStatus == DocumentStatus::Confirmation)
            {
                processingStatus = SalesOrderProcessingStatus::Confirmed;
            }
            else if(this.SalesStatus== SalesStatus::Backorder && this.DocumentStatus == DocumentStatus::PickingList)
            {
                processingStatus = SalesOrderProcessingStatus::Picked;
            }
            else if(this.SalesStatus== SalesStatus::Backorder && this.DocumentStatus == DocumentStatus::PackingSlip)
            {
                processingStatus = SalesOrderProcessingStatus::PartiallyDelivered;
            }
            else if(this.SalesStatus== SalesStatus::Delivered && this.DocumentStatus == DocumentStatus::PackingSlip)
            {
                processingStatus = SalesOrderProcessingStatus::Delivered;
            }
            else if(this.SalesStatus== SalesStatus::Delivered && this.DocumentStatus == DocumentStatus::Invoice)
            {
                processingStatus = SalesOrderProcessingStatus::PartiallyInvoiced;
            }
            else if(this.SalesStatus== SalesStatus::Invoiced && this.DocumentStatus == DocumentStatus::Invoice)
            {
                processingStatus = SalesOrderProcessingStatus::Invoiced;
            }
            //else if(this.SalesStatus== SalesStatus::Canceled && this.DocumentStatus == DocumentStatus::)
            //{
    
            //}
            
            return  enum2Str(processingStatus);
        }
    }
    
    thanks,
    regards,
    dinesh
  • Martin Dráb Profile Picture
    Martin Dráb 230,934 Most Valuable Professional on at
    to get sales order processing status using display method
    Please be more specific? Do you mean that you don't know to create a display method or how the get the status in your specific case (unknown to us)?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,111 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans