Hi All,
I am having a problem while Posting a Sales Credit Memo,I am getting an error message as such:
" Posting Date is not within your range of allowed Posting Date,in Item Journal Line,Journal Template Name",Line No='0'
My Posting Date of the credit memo is 30/09/2011.
In Financial Management->Setup->General Setup and the User Setup,I have defined
Allow Posting From:29/09/2011
Allow Posting To:01/10/2011
Please any suggestion will be most welcome.
0
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
If you are a technical person, can you check with activating debugger where exactly you are getting error?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Yeah i am a technical person and after debugging the error occurred in the Function CheckAllowedPostingDate(ItemJournalLine)
WITH ItemJnlLine DO BEGIN
IF (AllowPostingFrom = 0D) AND (AllowPostingTo = 0D) THEN BEGIN
InvtSetup.GET;
GLSetup.GET;
IF USERID <> '' THEN
IF UserSetup.GET(USERID) THEN BEGIN
AllowPostingFrom := UserSetup."Allow Posting From";
AllowPostingTo := UserSetup."Allow Posting To";
END;
IF (AllowPostingFrom = 0D) AND (AllowPostingTo = 0D) THEN BEGIN
AllowPostingFrom := GLSetup."Allow Posting From";
AllowPostingTo := GLSetup."Allow Posting To";
END;
IF AllowPostingTo = 0D THEN
AllowPostingTo := 31129999D;
END;
*Error occured in this line =IF ("Posting Date" < AllowPostingFrom) OR ("Posting Date" > AllowPostingTo) THEN
FIELDERROR("Posting Date",Text001)
END;
"Posting Date" field and AllowPostingFrom,AllowPostingto variables?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
The error comes when it is executed for the second time because the posting date takes a value of 28/02/2012,causing the error to be displayed.
What i am not getting is why it is executing 2 times,why does it go the table Item Journal Line ,when there are no records about this item there.
And on my credit Sales Credit Memo subform i have only one line and it is an Item.