Purchase invoice posting problem

xina_man
Member Posts: 116
Hi there!
When I'm posting a purchase invoice it appears this message:
"Amount 3.203,48000000000001 needs to be rounded in Gen. Jounal Line Journal Template Name=",Journal Batch Name=", Line No.='0'."
I've tried many things to solve this problem, but i've faild. Does anyone know how to solve this problems, or the reason for this message?
Many thanks
When I'm posting a purchase invoice it appears this message:
"Amount 3.203,48000000000001 needs to be rounded in Gen. Jounal Line Journal Template Name=",Journal Batch Name=", Line No.='0'."
I've tried many things to solve this problem, but i've faild. Does anyone know how to solve this problems, or the reason for this message?
Many thanks
0
Comments
-
Hi,
what many things have you tried?
Any idea if there is a line in that journal with this amount?
how did it get into the journal? through code?
If yes, use the rounding capabilities...Dynamics Rules!0 -
Yeah, I think the default number of decimal places for an amount field is 5. Since your number obviously has more than that it is throwing the error because it can't fit it into the field.0
-
xina_man wrote:Hi there!
When I'm posting a purchase invoice it appears this message:
"Amount 3.203,48000000000001 needs to be rounded in Gen. Jounal Line Journal Template Name=",Journal Batch Name=", Line No.='0'."
I've tried many things to solve this problem, but i've faild. Does anyone know how to solve this problems, or the reason for this message?
Many thanks
problem is that the amount 3.203,48000000000001 is different than the amount that is rounded with "amount rounding precision" in the general ledger setup.. i think that the error occured in the InsertGLEntry function of cu 22.. the reason is, possibly, a piece of wrong code.i mean cu 22 tries to post an amount that has not been rounded properly.. search for customized section in the posting procedures.
also there is one more posting in the forum about this error..
http://www.mibuso.com/forum/viewtopic.php?t=17916&highlight=needs+rounded0 -
xina_man wrote:Hi there!
When I'm posting a purchase invoice it appears this message:
"Amount 3.203,48000000000001 needs to be rounded in Gen. Jounal Line Journal Template Name=",Journal Batch Name=", Line No.='0'."
I've tried many things to solve this problem, but i've faild. Does anyone know how to solve this problems, or the reason for this message?
Many thanks
The codeunit used when I post the purchase invoice is CU90. But I can't find where is the problem... I can Post invoices, but only this one show this error...0 -
CU 90 creates Gen Jnl Lines that are posted through CU 12. The amount field of these obviously are filled wrong from some kind of modification to the system. It should be pretty easy to find, either by using the debugger or to modify the code in the test database to inssert the journal lines instead of posting them.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