journal voucher

suri
Member Posts: 123
hi all
i have question,Stop posting of a JV(journal voucher) if that posting document No. already exisits in G/L entries.
how can i solve this question can any one can give suggestion please.
thank you
i have question,Stop posting of a JV(journal voucher) if that posting document No. already exisits in G/L entries.
how can i solve this question can any one can give suggestion please.
thank you
0
Comments
-
Can you elaborate on your question some more?0
-
hi all,
we have a g/l entry table ,in that we have document no field...
coming to forms we have general journal in this we have document no
when we are entering document no in the forms of general journal....if it was already exists in document no of g/l entry table ...
it must need to throw an error ,document no already exists....
this my actual question,can any one can give suggestion
thank you0 -
hi all
i have written this code
document no onvalidate();
glentry.INIT;
IF "Document No." <>glentry."Document No." THEN
glentry.INSERT
ELSE
ERROR('document no already exists');
i am not getting the error0 -
Why are you inserting entry into G/L Entry table?
You just have to check whether Document No. is already existing or not.
You have put filter on G/L Entry Document No. field with Current Document No. and if it found then show error message..0 -
thanks for giving reply
mohana
even though i am not getting ...what you have suggested i have done
thank you....0 -
suri wrote:even though i am not getting ...what you have suggested i have done0
-
in g/l entry we have document no
document no
100
200
300
in general journal form we have document no field
if we are again entering the same values
let us consider with the number 300..then it was inserting into the g/l entry document no field0 -
i have also tried like this
onvalidate()
if document.no=g/lentry.document no then
begin
message('document no already exists');0 -
suri wrote:let us consider with the number 300..then it was inserting into the g/l entry document no field0
-
suri wrote:i have also tried like this
onvalidate()
if document.no=g/lentry.document no then
begin
message('document no already exists');
Where did you get glentry table?
You need to either use GET/SETRANGE/FINDFIRST to get the G/L Entry..0 -
You must have set "No. Series" in General Journal Batches..which will check for Next No. each time and it will not allow duplicate no.0
-
we have a batch name:cash and default
i kept batch name:cash and no.series=gen journal
i have checked like this i am getting the same error
can you briefly explain what the process is going on
why we have to keep batch name:cash/default and as well as no series
thank you0
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
- 322 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