Thursday, December 31, 2015

Sales quotation GST through X++

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());
    info(strFmt("Sales quotation total GST: %1", conpeek(cont, TradeTotals::posTaxTotal())));
}


No comments:

Post a Comment

I will appreciate your comments !

How to enable new Microsoft teams - Public Preview!

New Microsoft Teams is just AWESOME, quick but useful post below shows how you have this preview feature to make your life EASY!  Open Micr...