diff --git a/app/Library/FinanceHelper.php b/app/Library/FinanceHelper.php index a8c0bf108..e60fcb90d 100644 --- a/app/Library/FinanceHelper.php +++ b/app/Library/FinanceHelper.php @@ -53,6 +53,7 @@ class FinanceHelper { //If more than one page is found, decode the first set of wallet entries, then call for the next pages do { + $this->line($currentPage); //Call the first page of the wallet journal, as we are always going to get at least one page. //If we have more pages, then we will continue through the while loop. try { @@ -88,6 +89,8 @@ class FinanceHelper { $currentPage++; //Continue looping through the do while loop until the current page is greater than or equal to the total pages. } while ($currentPage < $totalPages); + + return $currentPage; } /**