can someone please suggest me on a point that I'm working on.
I want to make a validation in my purchase order that it should not allow receiving of material for the previous month after 2nd of the current month.
e.g if I'm working in 3rd September then it should not allow receiving of previous month dates i.e for the month of August but could do receiving for 1st and 2nd of September and the same would repeat every month. The receiving for the previous month could be done until 2nd of the current month. The validation should e on the posting date.
Thanks in advance.
On the 3rd of every month, you could change the posting date (allowed posting from, Allow Posting To) on the General Ledger Setup.
Then you do not need to change NAV but only your setting.
no, but that would block every transaction. I only need it for PO.
Then you need to develope a feature, you could hook into Codeunit 90 - Purch. -post and use Eventpublisher "OnBeforePostPurchaseDoc"
Lars Sander said:use Eventpublisher "OnBeforePostPurchaseDoc"
Which is a great suggestion, except we don't know if that option is available,as Yuneek Singh didn't tell us which version his question was about.
its nav 2013.
Erik P. Ernst rigth you are
Yuneek Singh as Erik point out you cannot use a subscriber, you have to code/hook into codeunit 90