PlSADTable::lookupPurchase Method
Shows a lookup for non-invoiced purchase orders in a given currency and for a given vendor.
Syntax
client public static void lookupPurchase(
FormControl _formControl,
CurrencyCode _currency,
PlSADNumberCode _sadNumberCode,
[VendAccount _orderAccount])
Run On
Client
Parameters
- _formControl
Type: FormControl Class
The control to look up the value for. It is assumed that the control is based on the PurchId data type.
- _currency
Type: CurrencyCode Extended Data Type
The currency to use to filter purchase orders.
- _sadNumberCode
Type: PlSADNumberCode Extended Data Type
The SAD number to filter out only SAD-related vendors if a vendor account is not specified in the _orderAccount parameter.
- _orderAccount
Type: VendAccount Extended Data Type
The vendor account to use to filter purchase orders.
Remarks
The SAD document does not let you link to purchase orders that use a currency that differs from the SAD currency.
Additionally, you cannot link to invoiced purchase orders, because the purchase orders cannot be invoiced one more time.