mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-03 20:20:37 -06:00
Small bug fix.
This commit is contained in:
parent
9a8a3e94d6
commit
3fabe2e9fb
@ -449,7 +449,7 @@ class GoogleChartController extends BaseController
|
|||||||
/** @var \FireflyIII\Database\RecurringTransaction\RecurringTransaction $rcr */
|
/** @var \FireflyIII\Database\RecurringTransaction\RecurringTransaction $rcr */
|
||||||
$rcr = App::make('FireflyIII\Database\RecurringTransaction\RecurringTransaction');
|
$rcr = App::make('FireflyIII\Database\RecurringTransaction\RecurringTransaction');
|
||||||
|
|
||||||
$recurring = $rcr->get();
|
$recurring = $rcr->getActive();
|
||||||
|
|
||||||
/** @var \RecurringTransaction $entry */
|
/** @var \RecurringTransaction $entry */
|
||||||
foreach ($recurring as $entry) {
|
foreach ($recurring as $entry) {
|
||||||
|
@ -16,7 +16,7 @@ use Illuminate\Support\MessageBag;
|
|||||||
*
|
*
|
||||||
* @package FireflyIII\Database
|
* @package FireflyIII\Database
|
||||||
*/
|
*/
|
||||||
class PiggyBank implements CUD, CommonDatabaseCalls, PiggybankInterface
|
class PiggyBank implements CUD, CommonDatabaseCalls, PiggyBankInterface
|
||||||
{
|
{
|
||||||
use SwitchUser;
|
use SwitchUser;
|
||||||
|
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
namespace FireflyIII\Database\PiggyBank;
|
namespace FireflyIII\Database\PiggyBank;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface PiggybankInterface
|
* Interface PiggyBankInterface
|
||||||
*
|
*
|
||||||
* @package FireflyIII\Database\Ifaces
|
* @package FireflyIII\Database\Ifaces
|
||||||
*/
|
*/
|
||||||
interface PiggybankInterface
|
interface PiggyBankInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +18,7 @@ use Illuminate\Support\MessageBag;
|
|||||||
*
|
*
|
||||||
* @package FireflyIII\Database
|
* @package FireflyIII\Database
|
||||||
*/
|
*/
|
||||||
class RepeatedExpense implements CUD, CommonDatabaseCalls, PiggybankInterface
|
class RepeatedExpense implements CUD, CommonDatabaseCalls, PiggyBankInterface
|
||||||
{
|
{
|
||||||
use SwitchUser;
|
use SwitchUser;
|
||||||
|
|
||||||
|
@ -211,6 +211,16 @@ class RecurringTransaction implements CUD, CommonDatabaseCalls, RecurringTransac
|
|||||||
throw new NotImplementedException;
|
throw new NotImplementedException;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns all objects.
|
||||||
|
*
|
||||||
|
* @return Collection
|
||||||
|
*/
|
||||||
|
public function getActive()
|
||||||
|
{
|
||||||
|
return $this->getUser()->recurringtransactions()->where('active', 1)->get();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \RecurringTransaction $recurring
|
* @param \RecurringTransaction $recurring
|
||||||
* @param Carbon $start
|
* @param Carbon $start
|
||||||
|
Loading…
Reference in New Issue
Block a user