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!
Answers
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.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
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.
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,