Work Date Security

pmcampos
Member Posts: 12
Hello,
How can i guarantee that my users don't change the work date of the system? For me to be sure that the date in all documents and entries are correct i must limit the access to the work date.
Or just by saying in the Number Series configuration that i must have a "Date Order" is enough?! With only this I have guarantees that all my entries in the system will be sequential?!
Many Thanks to All
Pedro
How can i guarantee that my users don't change the work date of the system? For me to be sure that the date in all documents and entries are correct i must limit the access to the work date.
Or just by saying in the Number Series configuration that i must have a "Date Order" is enough?! With only this I have guarantees that all my entries in the system will be sequential?!
Many Thanks to All
Pedro
0
Comments
-
Hi,
Not only Work Date. You have to block changing computer's system date.
Have you seen a topic on 'Server Date'?
http://www.mibuso.com/forum/viewtopic.p ... erver+date
Anyhow, what are you trying to achieve?
If you want to block posting for all days but current, you can use 'Allow Posting To' on General Ledger Setup form.http://www.NaviTools.com
Documentation for Microsoft Navision
E/R diagrams, Workflow diagrams, UML diagrams, process diagrams0 -
Hi,
what i'm trying to achieve is, using a Navision native db, prevent the user from changing the work date, so all the documents are posted with the correct (today) date on the database.
I've saw the topic server date, can i do that, add Server Date and Server Time fields on a setup table, to solve my problem in a native navision db?!0 -
The workdate exists exactly for users change the date of posting of documents. If you want to prevent users to post documents in a certain period you must use de "alow posting from..." "alow posting to..." in GL configuration or in User configuration.0
-
so you should change G/L setup and/or user setup just after midnight and set allow posting from/to both to the "today". (except maybe for some super users)
you can do this using app.server, etc.®obi
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯0 -
Hi...
I had a same problem.
I searched for "WORKDARE" on MIBUSO site
But I do not resolved on MIBUSO
So I solved myself.
It is simple.....
==============================
Codeunit 1
MakeDateText trigger
declare global or local variable
PreWorkDate : date
On first line add below:
IF (UPPERCASE(USERID) <> 'SA') THEN
BEGIN
PreWorkDate := WORKDATE;
MESSAGE('%1', 'Not Permitted you to change "WORKDATE". WORKDATE is resetted');
DateText := FORMAT(PreWorkDate);
WORKDATE := PreWorkDate;
EXIT(1);
END;
========================
After Add above Coding, compile codeunit 1, turn off Navision,
restart Navision
But one problem exists...
If user change Client PC's datetime...0 -
hi ranian92,
i tried your solution. But it doesn't work.
nothing was triggered in MakeDateText - CodeUnit 1.
I tried this on Navision 2013.
May be i miss something ?0 -
Some of the functions MakeText, MakeDate etc. are not called since in NAV >= 2009 RTC. At least not in an an C/AL accessible way. See also
here: viewtopic.php?f=32&t=58200&hilit=maketext
Hope this helps
Thomas0 -
hi Thomas,
Thank you for your information.
Btw,other member suggest me to look for "OnGlobalInsert", "OnGlobalModify", "OnGlobalDelete", and "OnGlobalRename" on Code Unit 1. But i can't find those function. Are those functions still exist in nav 2013 ?
Thanks0 -
I have NAV 2009 and tried the above but it stopped me from editing any date. Where exactly would the code need to go?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