Wednesday 19 November 2014

Adjustment allowed on SalesTaxForm for classes extending TAX

As , we know we are extending TAX class in order to have our own customization in place and then we use the below peice of code to show the Calculated TAX :

yourExtendedClass = new yourExtendedClass (buffer);
    yourExtendedClass .calc(true,false);
    Tax::showTaxes(menuitemDisplayStr(TaxTmpWorkSalesOrder),yourExtendedClass .CustTax(),buffer);


So now when you open the form , you will notice that Tab Adjustment is not available :




So what we need to do is , we have to override the method :


/// <summary>
/// Returns a Boolean value that indicates whether the current transaction being calculated supports
/// sales tax adjustments.
/// </summary>
/// <returns>
/// true if the current transaction supports sales tax adjustment; otherwise, false.
/// </returns>
/// <remarks>
/// By default, the current transaction does not supports sales tax adjustments.
/// </remarks>
public boolean useSalesTaxAdjustments()
{
    return true;
}



this will make sure that we are having Adjustment tab on same form :





Thursday 22 May 2014

Retail Server Installation and Configuration

Ax 2012 R3 comes with a new App -Modern POS , As per Technet :

Microsoft Dynamics AX 2012 R3 includes Modern POS, a point-of-sale app for PCs, tablets, and phones. Sales staff can process sales transactions, customer orders, and perform daily operations and inventory management with mobile devices anywhere in the store, as well as at PC-based registers.

M-POS is dependent upon Retail server for communication with StoreDB , While activating the M-POS ,we were getting the error  : MPOS can not be activated , error in communication with Server.


So we found there are several points which we need to take care while installing the Retail server ,
  • Don't Configure the Retail Server using setup , unmark the check box of configuration in setup.
  • Update the rs-setting.xml file , which can be found in location : "C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Server\Tools"


  • Now configure the Retail Server using Powershell , you can use the below commands :
$Cred = @((New-Object
System.Management.Automation.PSCredential(‘domain\useraccount',(ConvertTo-SecureString
'password' -AsPlainText -Force))))


.\DeployRetailServer.ps1 -SettingsXmlFilePath .\rs-settings-updated.xml -TopologyXmlFilePath .\rs-topology-updated.xml -Credential $Cred -Authentication $Cred

Once you are done with configuration , launch IE with below URL :
http://<yourservername>:<portnumber of Retailserver>/<name of retailserver web site>/v1/$metadata ,

you should be able to see the meta data similar to 









Once this is done , you are good to go for MPOS installation and activation.


Wednesday 16 April 2014

AX 2012 services not getting started

I was stuck in a issue , where i was not able to start the AX 2012 R3 service , it remains in starting mode after starting services and after some time(20-25  mins) , again come back to stop mode.

Then I tried to start services from command prompt with elevated permissions using the below command :
"net start AOS60$01"

And it works  , within 5-6 mins services started .