x++


What is the _isMexican boolean for in the Global::Checkpower method?


Quite simply, what is this method for, and what is _isMexican? My online searching has proven futile.
http://msdn.microsoft.com/en-us/library/global.checkpower.aspx
This has to do with how Dynamics AX translates numeric currency values into text.
Try creating a new job in the AOT with the following contents:
static void Job1(Args _args)
{
info(Global::numeralsToTxt_ES(120000.45,GenderMaleFemale::Female,0,"MXN",1,0));
}
The parameters are as follows:
Currency Amount
Gender
Enclose (not certain)
ISO Currency Code
isMexican Boolean
isCheck Boolean
With isMexican = 1, it outputs this result: Ciento veinte mil 45/100
With isMexican = 0, it outputs this result: CIENTO VEINTE MIL con CUARENTA Y CINCO centimos
So basically, this is a text formatter for translation of currency amounts into a given language. Some languages or Countries have specific ways they want the written form to appear, that boolean influences it.
The CheckPower method is part of this logic, and it recursively calls itself to iterate over all the powers of a given currency (Billions, Millions, etc), each time adding the proper word to the currency string.

Related Links

Dynamic linking gets cleared when inserting new records
Box::info showing “refreshEx”
How to filter lookup values on a dialogfield in Report Dialog based on another dialogfield in AX 2012 AOT reports?
Adding scrollbar to a Group in AX 2012 form
Table query inconsistent
AX2012 Sales Order Creation through AX Classes
How can I loop over Tables which contain specific characters in their AOT name and delete the data?
Having button that runs code, but doesn't submit data to (or validates against) table
Where are Duties (table name) stored in AX?
Advanced query range
How to read from an Excel file?
group by clause in X++
Determine the number of affected rows by an update_recordset call in Dynamics 4.0?
how to protect the x++ source code
About Data Dictionary
setTimeOut and local function

Categories

HOME
sonarqube
httparty
assembly
facebook-oauth
developer-tools
static
components
jelastic
carousel
simulink
switch-statement
big-o
hpc
tvos
crystal-lang
elasticsearch-5
discrete-mathematics
okhttp
mautic
emoji
jxl
jsonpath
pybossa
shared-libraries
entitymanager
mvc-mini-profiler
dimensional-modeling
dreamweaver
vuejs
symfony-console
breadth-first-search
squashfs
direct3d11
beta
shared
delimiter
mat
google-earth
dotspatial
joomla2.5
slacktextviewcontroller
numpy-broadcasting
google-knowledge-graph
tex
node-mssql
comparison-operators
plaintext
outputcache
apache-directory
term
linter
chai-as-promised
yii2-api
fclose
insight
bluez
openblas
opengl-4
headless
excel-dna
er-diagram
oozie-coordinator
reshape
gpg-signature
baidu
stripe-connect
cronexpression
winusb
model-associations
drawstring
simevents
cda
turbo-prolog
createprocess
fink
nupic
thread-sleep
toast
linklabel
google-books
zen-cart
visual-sourcesafe-2005
jdk1.7
kubuntu
packet-sniffers
administration
webfinger
insight.database
codeplex
vsx
fpdi
dsym
gae-quotas
conditionaltagsupport
http-patch
code-duplication
mantle
alice
paginator
jsr286
workflow-services
google-floodlight
silent
drupal-fivestar
int64
pbcopy
great-circle

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App