Creating a cash receipt jounral using code unit
kamranshehzad
Member Posts: 165
I want to create a cash receipt journal with entries using a code unit to do the following
1- payment on account
2- applying entries to a customer invoice.
Any suggestion on how to do it?
regards,
1- payment on account
2- applying entries to a customer invoice.
Any suggestion on how to do it?
regards,
KS
0
Answers
-
First, do it manual with the debugger. Fill everything in and note the order you use for filling up the fields.
When filling a record that is usually filled manually, this is the order you need.
With the debugger you can see what happens, especially when you need to launch a function to do something.
For filling up a record in a codeunit, in general you need very few VALIDATES to prepare your record.
A small note: if you want to immediately post your journal after filling it up, you can avoid filling up the primary-key fields. When finished filling up all, just throw the record in codeunit 12. Codeunit 80/90/... work like that when posting an invoice/CM.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Alright. So i need to create a manual entry in cash receipt journal and make a note of those entries,
then run the debugger to to see how it works wth cu 12.
then create my own code unit to prepare the record n pass it to cu 12 and post the journal.
ill try that..
thanks.KS0 -
Can't i receive payments based on payment methods? like if i want to identify CC , cheque payments separately?
I can see payment methods on cust /vend cards but they seem to be there only for notional purposes? is it so?
please advise?
regards,KS0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions