September 2001
Intermediate to advanced
768 pages
32h 45m
English
int ccvs_count(string session, string status)
Counts the number of invoices with a certain status.
Returns:
Number of matching invoices on success; 0 on failure
Description:
ccvs_count() returns the number of invoices in a given state. Any of the status strings plus the string all may be used; all returns the total number of invoices in the session. session must be a valid session ID as returned by ccvs_init().
Note that this function returns 0 on error or if there are no matching invoices. In this case, you can use ccvs_textvalue() to resolve the ambiguity. If an error has occurred in ccvs_count(), ccvs_textvalue() returns the empty string, and if no error occurred but no matching invoices were found, a string is returned containing ...
Read now
Unlock full access