Get Vendor GSTIN from purchase order in ax 2012


Description:Here I have get vendor GSTIN number from purchase order number. It’s simple to get from table but we need to fire query for that instead of Sql query we can use table method to get GSTIN number for Customer or Vendor.

Use below code to get vendor GSTIN number from purchase order number.

info(strFmt("%1",TaxRegistrationNumbers_IN::find(TaxInformation_IN::findDefaultbyLocation(DirPartyTable::findRec(VendTable::find(PurchTable::find("PurchaseOrderId").OrderAccount).Party).PrimaryAddressLocation).GSTIN).RegistrationNumber));
 

Related Posts

Previous
Next Post »

Thanks for comments.....