removing zeros

silk
Member Posts: 5
hi guys
last week the Zimbabwean Central Bank slashed off 3 zeros from our currency, which means that 1 000 000 is now 1 000. I need help with some code which will do this thing in navision automatically. A program whcih will go into all the table changing the 3 zeros or just dividing by a thousands.
last week the Zimbabwean Central Bank slashed off 3 zeros from our currency, which means that 1 000 000 is now 1 000. I need help with some code which will do this thing in navision automatically. A program whcih will go into all the table changing the 3 zeros or just dividing by a thousands.
0
Comments
-
Hi silk,
We had this similair problem a few year back and we used the ECT( euro conversion tool) Now the ECT worked for standaard navision but for the addons i had to write a function to change the currency.
Take a look at the ECT . it could help you.0 -
thank you for the reply,, where can i find the ECT, since i use standard navision for the african region. i was playing around with a small function yesteday but it didnt seem to work here it is.
GLE.RESET;
IF GLE.FIND('-') THEN
REPEAT
BEGIN
myzero:=1000;
GLE.Amount := GLE.Amount/myzero;
IF GLE."Debit Amount" <> 0 THEN GLE."Debit Amount" := GLE."Debit Amount" / myzero;
IF GLE."Credit Amount" <> 0 THEN
GLE."Credit Amount" := GLE."Credit Amount" / myzero;
GLE.MODIFY;
END;
UNTIL GLE.NEXT = 0;
MESSAGE('The GL Entry table has been succesifully revalued!');
what am i doing wrong is this what yours looked like, because i was thinking that once it works for table 17 then i can identify all them other ledger entrie tables.0 -
Hi Silk
Be careful of flowfields :whistle:0 -
silk,
Whats your email? i'll mail it to you.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions