calculate total sales order or sales quotation amount / discounts / tax etc., through code( X++ ) in AX
Now, this can be achieved through code using SalesTotals class. Check out the below code snippet.
Subscribe to be the first to learn about a new blog post. Sign up today!
Now, this can be achieved through code using SalesTotals class. Check out the below code snippet.
I have observed that lot of developers face difficulty in printing the Sales Invoice report into file system through code. Here is the code snippet for it. SalesFormLetter salesFormLetter; PrintJobSettings printJobSettings; CustInvoiceJour custInvoiceJour; SalesId salesId; #File salesid = “SO-100010”; salesFormLetter = SalesFormLetter::construct(DocumentStatus::Invoice,false); printJobSettings = new PrintJobSettings(); printJobSettings.setTarget(PrintMedium::File); printJobSettings.format(PrintFormat); printJobSettings.fileName( ‘//10.0.57.22/AOSPrintShare//’ + salesId+#pdf ); printJobSettings.warnIfFileExists(false); SalesFormLetter.updatePrinterSettingsFormLetter(printJobSettings.packPrintJobSettings());…
In this post, I am going to discuss about how to rename a primary key in AX. The renaming can be done for any record using the CCPrimaryKey Class. Let us suppose, if Customer Id 1000 has to be renamed as Cust_1000 then it will be renamed in all the tables(SalesTable, CustTable, SalesQuotationTable etc.,) wherever…
Hi folks……… If you would like to link two Enterprise Portal web pages in AX 2009 having different/same datasets then it is very simple. You have to create the two web controls using the two different/same datasets. Add it to the two different web pages and link the second web page using the url menuitem….
Till AX 2009 version whenever the configuration key is disabled for a table the underlying table was dropped. But now when you disable the configuration key for a table that is listed in the AOT in AX 2012, the corresponding table in the underlying database management system is not dropped. Now when you modify a…
Hi All, The user can create a timesheet but cannot submit a timesheet on the Enterprise Portal website, as the Submit button is not available. To be able to submit the timesheet, you have to go to the previous page of Timesheet List and then reopen the timesheet, then the Submit button appears. However, the Submit button should…
Hi Folks, In AX 2009, We had an option of importing the new objects with ids using xpo from one layer to another. However, In AX 2012, The object ids are installation specific and we do not have an option to import them with object ids and this may affect in losing the data. The…