Monday, 28 August 2017
Dynamics NAV Updating/ Checking WorkDate in code
Hello, there are times when you wish to perform an operation based on the work date set in NAV. For example, a colleague one time was modifying a POS system. He wanted to set the work date to the next day whenever it clocked 17 hrs in the evening. It was a requirement from a client. Definitely there were many proposals like
IF TIME > 17T THEN
WORKDATE := TODAY +1 ;
// This only works if the Days date is appropriately set for client PC
// It will modify the work date to today's date plus 1 day which sets it to tomorrow
In such a scenario, the risk is that you will only have correct results when the Operating System time on the client is correctly setup.
Details of the work date function are available on MSD Community. Click here
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment