
X++ code to achieve this; static void SalesTax_Per_SalesQuotation(Args _args) { SalesQuotationTable salesQuotationTable; SalesQuotationTotals salesQuotationTotals; container cont; salesQuotationTotals = SalesQuotationTotals::construct(SalesQuotationTable::find(“QUOT000022”)); salesQuotationTotals.calc(); cont = salesQuotationTotals.displayFieldsCurrency(salesQuotationTotals.currencyCode());
Sales order GST: Total GST of Sales order can be seen from following screen in AX 2012 X++ code to achieve this; static void SalesTax_Per_SalesOrder(Args _args) { TaxTmpWorkTransForm taxTmpWorkTransForm; SalesTotals salesTotals; TaxSales taxSales; SalesLine salesLine; container cont;
Below piece of code can be used to retrieve next record Id from the table. static void getNextRecId(Args _args) { //Table that stores record ids details for tables
AX 2012 R3 comes with new feature of searching any issue, if there is any, against each AOT object. Let’s take example of SalesTable table and try to lookup issues
Today I found an interesting thing with regards to AX tables and this post is all about this new experience which is the PostLoad() method in AX tables. When we
We often require to check size of the table to moniter database performance, specially working with files and storing it in database. AX does store files in database which can
Below code snipet is one of the way to retrieve employee/worker’s primary email address. private LogisticsElectronicAddressLocator getInstructorEmail(HcmWorkerRecId _workerRecId) { LogisticsElectronicAddress logisticsElectronicAddress; HcmWorker
During database upgrade checklist I was failed to connect with source database. I followed the suggested steps from upgrade guide as pasted below but these weren’t enough in my case
AX 2009 if(!UnitConvert::canConvert(this.inventTableModuleInvent().UnitId, this.SAB_ProdPickingUOM, this.ItemId)) AX 2012 unitConvFound = UnitOfMeasureConverter::canBeConverted(UnitOfMeasure::findBySymbol(this.inventTableModuleInvent().UnitId).RecId,
This sample code is used to show Customer Name in lookup, In AX 2009 we had name field in CustTable but now its moved to DirPartyTable. We still have name()
Do you have a topic you'd like me to cover or questions you'd like answered? Submit your requests, and you might see your answers featured in an upcoming blog post! You can send me an email at the address below. I look forward to hearing from you and exploring the topics that matter most to you!
Join our subscribers list to get the latest news,
update specials offers and delivered directly in your inbox.