intuit/QuickBooks-V3-PHP-SDK

FindAll method - pagenumber is actually start position

LiamAshdown opened this issue · 1 comments

/**
     * Retrieves all entities by name
     *
     * @param string $entityName
     * @param int $pageNumber
     * @param int $pageSize
     * @return array Returns an array of entities of specified type.
     */
    public function FindAll($entityName, $pageNumber = 0, $pageSize = 500)

I was expecting the page number to be my nth set of pages based on the page size however it looks like this then formats a query

$httpsPostBody = "select * from $entityName startPosition $pageNumber maxResults $pageSize";

so actually $pageNumber is startposition and maxresults

I have also noticed this - we just use the query method instead