Hello.
I am introducing the chart of accounts.
There are heading accounts with 1, 2, 3 and 5 digits.
And there are posting accounts with 9 digits.
Por example:
1
10
100
10000
100000001
110
I run "Indent chart of accounts" and get this error:
"The length of account 10000 cannot be different than the next ones".
This problem is relationed with accounts 10000 and 100000001, because if i delete account 100000001, there is no error with account 10000 .
Any idea?
Thanks
0
Comments
example/
10001
10010
10100
11000
20001
20010
etc etc
I've personally never seen such wacky g/l account numbers.
http://www.BiloBeauty.com
http://www.autismspeaks.org
This may be a country specific localization issue, as the NA database has the following code:
There are no text constants that match the error that you have described. What is the version string on codeunit 3?
I could see a country adding this as SQL Server sorts data types differently than that of C/SIDE...we have run into this many times with customers that convert to SQL Server.
- Scott
Vice President, Deployment Operations
Symbiant Technologies, Inc.
http://www.symbiantsolutions.com
IF STRLEN("No.") > 4 THEN
"Account Type" := "Account Type"::Posting
ELSE
"Account Type" := "Account Type"::Heading;
IF "Account Type" = "Account Type"::Heading THEN BEGIN
//The length of a heading account cannot be greater than 9
IF STRLEN("No.") > 8 THEN
You can see that Navision makes all accounts (heading or posting) with more than 4, posting account. I need heading account with 5.
But, afterwards, Navision looks if the length of a heading account is greater than 8.
It has no sense, no?
I will change IF STRLEN("No.") > 4 THEN
with
IF STRLEN("No.") > 8 THEN
Thanks
I think you willhave to change the code this way
Albert
I'd personally rip out that code...as it is not very useful in my mind.
Mind you, I do not know this as it could be something specific (government regulation). Check with Microsoft on why this code is there....
- Scott
Vice President, Deployment Operations
Symbiant Technologies, Inc.
http://www.symbiantsolutions.com