Hello all,
A report my company uses displays "Sales Header"."Entry Time".
Has anyone out there created functionality for the Sales Order 'Release' time as well? Is this available somewhere already in NAV?
If not I'd appreciate any options anyone has available.
Thanks and have a great day - Chris
0
Answers
This is not a difficult mod - but will need an developent licence. add a field to the sales header for time released and add code to the release codeunit (414) to set this.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Regards - Chris
http://www.BiloBeauty.com
http://www.autismspeaks.org
just add
before the modify statement in the onrun trigger of codeunit 414. The if statements are to give the first release so remove them to get the last release - only an issue if reopened and re-released.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
in 414 add OnRun
...
...blah..
...blah..
END;
"Released Time" := TIME; //<-insert here
MODIFY(TRUE);
...
...
your code I see checks to see if the field is filled an bypasses it if it is.
if you want it updated each time just lose the IF & '' part.
http://www.BiloBeauty.com
http://www.autismspeaks.org
just kidding (I Had To Google GMTA) :-$
http://www.BiloBeauty.com
http://www.autismspeaks.org
Hi Harry,
Saw it on a post on Tuesday and had to google it myself
Not up on these abbreviations and took me a while to figure out IHTG - I think you've invented a new one
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Thanks much to both of you for your help - I coded out something similar and you've provided validation. I will set this as solved. Have a great day - Chris
I Had To Google
http://www.BiloBeauty.com
http://www.autismspeaks.org
Thanks again for the input...I thought there was native release time, date somewhere in NAV. Since I needed an updated time EVERY time an open then release occurred I just wrote:
"Release Date" := TODAY;
"Release Time" := TIME;
MODIFY(TRUE);
...in the OnRun of Codeunit 414. Have a great day - Chris