I have a single field that has invoice#'s and Credit Note# {*.DOCNUM) in one table, this field is linked to 2 fields in 2 other tables an invoice table and Credit note table (where IN's are separate from CN's).
The goal is to return the order number associated with the DOCNUM. I've created the formula below which returns the order number of DOCNUM's that are invoices but not for DOCNUM's that are Credit notes, can anyone help.
Thanks in advance,
Rinder
If {OECOMM.DOCNUM} = {OEINVH.INVNUMBER} then {OEINVH.ORDNUMBER}
else
if {OECOMM.DOCNUM} = {OECRDH.CRDNUMBER} then {OECRDH.ORDNUMBER}
The goal is to return the order number associated with the DOCNUM. I've created the formula below which returns the order number of DOCNUM's that are invoices but not for DOCNUM's that are Credit notes, can anyone help.
Thanks in advance,
Rinder
If {OECOMM.DOCNUM} = {OEINVH.INVNUMBER} then {OEINVH.ORDNUMBER}
else
if {OECOMM.DOCNUM} = {OECRDH.CRDNUMBER} then {OECRDH.ORDNUMBER}