Ways to register lines in general journal form.

jdurany82
Member Posts: 4
Hi,
This is my first post in this forum. I’m from Spain, and in my Enterprise we are beginning with Dynamics Nav 2009.
I have a problem when i try to register my lines in the general journal form.
I expose my problem:
I’m developing a form that will manage payrolls. When a payroll it’s ok, I fill the general journal (via code) and after, if i go to the general journal form and i push the register button, it Works correctly and i receive a Message where i'm informed that lines have been registered.
I have copied the functionality of register button (general journal form) in my payroll form (call to one code unit), and when I register the payroll, it correctly copies the lines in the general journal and after it updates to the G/L entry table, but I receive every time the message.
Is there another way to register in G/L entry table my lines that i have introduced in the general journal? Every time that i execute the register functionality in my payroll form, i receive a Message saying me that the general journal has registered every line of the journal. Is there a way to register every line of general journal without receiving this message?
Thank you very much
This is my first post in this forum. I’m from Spain, and in my Enterprise we are beginning with Dynamics Nav 2009.
I have a problem when i try to register my lines in the general journal form.
I expose my problem:
I’m developing a form that will manage payrolls. When a payroll it’s ok, I fill the general journal (via code) and after, if i go to the general journal form and i push the register button, it Works correctly and i receive a Message where i'm informed that lines have been registered.
I have copied the functionality of register button (general journal form) in my payroll form (call to one code unit), and when I register the payroll, it correctly copies the lines in the general journal and after it updates to the G/L entry table, but I receive every time the message.
Is there another way to register in G/L entry table my lines that i have introduced in the general journal? Every time that i execute the register functionality in my payroll form, i receive a Message saying me that the general journal has registered every line of the journal. Is there a way to register every line of general journal without receiving this message?
Thank you very much
0
Comments
-
Hi,
I think you are using condeunit 13 to register the section. I recommend you use codeunit 12. You need to take in consideration that you must delete every line you post and you have to make COMMITs to save a transaction.
If you need I have a post on my blog (spanish) that describes the ways to make this:
http://www.sergisoft.com/2011/09/registrar-asientos-contables-y-tener-el-control/
Sergi Navarro
MCTS: Microsoft Dynamics™ NAV 2009 C/SIDE Solution Development
Visit my Navision Spanish Blog here: http://www.sergisoft.com0 -
The messages you are talking about are generated from codeunit 231 Gen. Jnl.-Post.
One possible option is to add a boolean field to table 80 Gen. Journal Template to define which template won't show these messages when used for posting, then you check for this field in codeunit 2310
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