ORGPAY ​
Returns information from the original payment in refund reporting.
Reporting Area(s) ​
Accounting
Required Parameters ​
- Receipt Number (pyrecnum)
Optional Parameters ​
- Logical .t. returns True if payment was a credit card, returns False if payment was not. .f. does not return T/F (default)
- Logical .t. display description of original payment type irrespective of parameter #2, .f. do not display (default)
- Field from Pay table to return (i.e. "pyamt", "pydate")
Example(s) ​
ORGPAY(pyrecnum) returns the pay type of the original payment (i.e. 2)
ORGPAY(pyrecnum,.t.) returns True if payment was by credit card, returns False if payment was cash, check or other
ORGPAY(pyrecnum, .f., .t.) returns description of payment type (i.e. Visa)
ORGPAY(pyrecnum,.f.,.f.,"pyamt") returns amount of original payment (i.e. 100)