|
IsPayment()
Determines if a transaction is a payment.
Syntax
IsPayment() -->
lPayment
Returns
Logical TRUE is returned if the transaction is a
payment, otherwise logical FALSE is returned. If the invoice.dbf or
accpay.dbf database has not been opened by the form, logical FALSE
is always returned.
Description
Determines whether a transaction is a payment and
returns logical TRUE if so. Only transactions held in either the
invoice.dbf (customer transactions) database or accpay.dbf
(supplier transactions) database can be payments. The form must
therefore open either the invoice.dbf or accpay.dbf database.
Ensure that IsPayment() is used in the specific body that opens
invoice.dbf or accpay.dbf, otherwise logical FALSE will always be
returned.
In the event that both invoice.dbf and accpay.dbf
are opened by the same body at the same time, use the alias
operator to refer to the one you need to query.
Example
If
invoice->(IsPayment())
Echo('Customer transaction is a
payment.')
Endif
If
accpay->(IsPayment())
Echo('Supplier transaction is a
payment.')
Endif
____________________________
Related Topics
Business
Function List
Unpaid()
|