Sales Credit Memo Postind Error

imclever1205
Member Posts: 94
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.
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
-
What about the Allow Posting From and Allow Posting to dates in user setup table?0
-
Yeah in the User Setup Table also i have defined it,and i even deleted the Item No. which was in the Item Journal Line Table.0
-
imclever1205 wrote:i even deleted the Item No. which was in the Item Journal Line Table.
If you are a technical person, can you check with activating debugger where exactly you are getting error?0 -
A functional told to delete it thinking it would solve the issue but it as in vain.
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;0 -
Did you check what are the values in
"Posting Date" field and AllowPostingFrom,AllowPostingto variables?0 -
The first time it is executing the posting date is 30/09/2011.
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.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