I am trying to integrate my system with the NAV to read the vendor ledger entries for invoices and process the payment outside the NAV. The problem that i am facing is, after reading the invoices from ledger entries table and making the payments against those invoices through my system, i want to update the payment details back to the NAV which I coudn't identify a way so far. So to summarize, i am looking a way to update the payment information in NAV, possibly through API(page web services) or by any means. I have got a vague idea, that it has to be through the payment journals but i am not very sure. Any help on this issue is much appreciated.
0
Comments
So as you say, if i need to update the payment details, i need to make an entry in the payment journal table for the corresponding Document No. In that case, similar to the manual updation process of the payments through UI, we might need to post the payment journal entry as well, after which the record will be moved to vendor ledger entries table as a doc.type Payment.If this is the case, then how can we post a payment journal through web services.
Hope my understanding about the process is right, otherwise please do explain the correct process.
A function called by your system, accepting all the necessary parameters, will perform:
- Insert of a record in Gen. Journal Line table (this method allows you also to do additional checks on value accuracy).
- Call of Gen. Jnl.-Post Batch codeunit to post the line .
As you have suggested to use code unit service for inserting Journal Line and to post the line, I am seeing two code units already available with the demo version which are
1.Gen. Jnl.-Post Line
2.Gen. Jnl.-Post Batch
So, can i use these code units to post the line and the batch ?
Anyway as said before you can include a call to this codeunit inside a "wrapping" object which can be used by an external systems.
Please let me know if my understanding is correct.
If this is the case, which are the functions that has to be called from the respective code units to Insert as well as posting the line.
Appreciate your patience in answering my questions.
But the problem is I dont have the permissions to create a code unit, this i figured out is for the developers license, after going through the forums .
Here i was just wondering if i need a developer's license for just creating one code unit, or is there any other options available in the terms of license.
If there are no other options, what would be the minimum version needed to create a single codeunit in NAV?