on 06-06-2019 10:41 AM
Hi, I have added some script in the Payment Order xbo. I've added this script for me to be able to get the values of Journal Entry. I think the behavior of the transaction is the reason why I am having an error. I want to ask where can I put the script that I am executing from Outgoing Check. I am always getting a null error whenever I save/post the document. Upon my understanding, once I click the post button from outgoing check creation, the status will change and the Journal Entry ID will be created. but I am getting a null error when my break point reaches the validation for Journal Entry ID. Hoping that you can help me fix my error. I just need to know what script should I use to execute it correctly during posting. I have attached a screenshot of the script that I created. Hoping for your immediate assistance.
Thanks and Regards,
JM Angeles
You are assuming this.AccountingDocument always has a value. You should add a call to its .IsSet() before it:
if (this.AccountingDocument.IsSet())
{
...
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vincent,
Can you confirm if the script that I created is on the correct execution based on my description above? I have added the .IsSet function, the error is gone but my script does not execute the line of code that I need. It returns that the Accounting Document is empty.
Appreciate all the help.
Thanks and Regards,
JM Angeles
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.