Dynamics AX
  RSS Feed  LinkedIn  Twitter
Want to turn you're data into a true asset? Ready to break free from the report factory?
Ready to gain true insights that are action focused for truly data informed decisions?
Want to do all of this across mutliple companies, instances of Dynamics and your other investments?
Hillstar Business Intelligence is the answer then! (www.HillstarBI.com)

Hillstar Business Intelligence for Microsoft Dynamics AX and NAV on Mobile, Desktop, Tablet

Let us prove to you how we can take the complexity out of the schema and truly enable users to answer the needed questions to run your business! Visit Hillstar Business Solutions at: www.HillstarBI.com

Thursday, December 29, 2005

Confirm a Sales Order through code

Over the next few days I am going to post code that walks through the sales life cycle. To start below is code that will take a given SalesId and confirm it.

public boolean confirmSalesOrder(SalesId _salesId)
SalesFormletter SalesFormletter;
SalesTable SalesTable;

SalesFormletter =


SalesTable = SalesTable::find(_salesId);


This code is straight forward and simple. It has been very useful to me, because we made a lot of changes to the Sales Life cycle of Axapta. What I did was create a Class that contained different methods for taking sales orders through the sales life cycle. Next is Packing Slip Update (when changed the name of this to Delivered.)

Find a job at: www.DynamicsAXJobs.com


Anonymous Anonymous said...

this is more short equivalent
public boolean confirmSalesOrder(SalesId _salesId)
SalesTable salesTable = SalesTable::find(_salesId);
SalesFormletter salesFormletter = SalesFormletter::construct(DocumentStatus::Confirmation,true);
salesFormletter.update(salesTable, systemDateGet(), SalesUpdate::All, AccountOrder::None,
false, false);


Formatted, Translated to Russian and placed at http://erpkb.com/Axapta/KakProgramnoPodtverdit'Zakaz

12:59 AM  
Anonymous Anonymous said...

Thank you for posting.

Very helpfull for me. In my job, I needed exactly that implementation methods.

see you later.

11:57 AM  
Anonymous Anonymous said...

Hi All

Is there any way to cancel a Sales Order in code ? I tried DocumentStatus::Cancel and doesnt work.


4:36 AM  

Post a Comment

<< Home

Copyright 2005-2011, J. Brandon George - All rights Reserved