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());…
Here is a code snippet to convert any file into a base64 string in x++ using some dot net inbuilt classes in AX. To convert it, initially clrinterop permission must be granted to access the dot net inbuilt classes then load the file into file info, initialize the byte array with the length of file,…
The simplest way to store an image for a record into AX tables is by using the CompanyImage Menu Item. I will explain you with an example below: Generally, most of the customers would request for a functionality to store an image for an item. For this, there is no need of high customization. Initially,…
I have already posted 6 sections on the differences between various versions of AX in my previous two posts. In this post, I am going to discuss on the last 3 sections of differences. Workflow S.No. AXAPTA 4.0 AXAPTA 5.0 AXAPTA 2012 1 •Forward only, sequential workflows •Only interactive elements (tasks and approvals) •Support for…
Recently, For one of our customers we have developed an SSRS report and published it on Enterprise portal using Internet Explorer 8. When trying to print the report we were getting an error message box “An error occurred during this operation” When I tried to google it, I found a support link from Microsoft. The workaround…
I have come across many people having a problem in printing the AX reports into the file system of server using batch job scheduling………… The main problem is in configuration……… The solution is pretty simple and is as follows: As AX batch job scheduling always runs on the server, the below configuration has to be…