When we want to show the original document of a transaction we make the following:
For this example we are going to create an Invoice Journal, Find the Invoice in:
Accounts Payable >> Inquiries >> Journal >> Invoice Journal
Find our Invoice and click in Voucher
Click in transaction Origins
And here, we are going to see the Voucher original document
There is another way to do this by code, this way is the following:
We are going to use the same Invoice that we used before.
For this example we are going to create a Job.
- Declare the following variables:
LedgerTransModule: is the class that load the data.
tmpLedgerBase: is the table that contain the original document information.
generalJournalEntry: is the table that contain the Voucher data.
Initialize our LedgerTransModule variable
Execute the process
Return the information to the table temp
We loop through the table temp and specify the Module that can be:
- Ledger
- Bank
- Cust
- Vend
- Sales, etc.
And we can use the fields that we need of the table temp, in this case we need the following:
- Module
- Voucher
- Id
- IdName
Ready, the result set is the following:
Hi,
ReplyDeleteThe images are not supporting 8n this post. I have tried in chrome /IE/ Microsoft Edge... But doesn't load the image.
Could you please load the images and help us.
I have the same issue could you please share the post again
DeleteVery informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. 정보이용료 현금화
ReplyDelete