on 11-24-2014 8:30 AM
Hi all.
I wish to print the number & date of the original invoice in credit note.
I can find RPC1.BaseDocNum as the original invoice number and trying to use FMS for the date of original invoice.
I have created one UDF, InvoiceDate at Marketing Documents Title and applied the following query:
SELECT T0.[DocDate] FROM OPCH T0 WHERE T0.[DocNum] =$[RPC1.BaseDocNum]
when DocNum field changes.
but how to get the original invoice date automatically when the user added the credit note? Which field should I use for the changes to be triggered?
First, I was managed to get the invoice date by manually refresh the UDF after added the credit note but suddenly it shows 'Incorrect syntax near 'RPC1.BaseDocNum'
Please guide me on the above issue.
Thanks & BR,
Leng
Hi,
Try this FMS and set auto refresh option to Refresh regularly.
SELECT T0.[DocDate] FROM OPCH T0 WHERE T0.[DocNum] = $[$38.44.number]
Thanks & Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.