mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-01 19:47:11 +00:00
Some basic code for liability accounts.
This commit is contained in:
@@ -123,6 +123,13 @@ interface AccountRepositoryInterface
|
||||
*/
|
||||
public function getCashAccount(): Account;
|
||||
|
||||
/**
|
||||
* @param $account
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getInterestPerDay(Account $account): string;
|
||||
|
||||
/**
|
||||
* Return meta value for account. Null if not found.
|
||||
*
|
||||
@@ -151,7 +158,6 @@ interface AccountRepositoryInterface
|
||||
*/
|
||||
public function getOpeningBalanceAmount(Account $account): ?string;
|
||||
|
||||
|
||||
/**
|
||||
* Return date of opening balance as string or null.
|
||||
*
|
||||
@@ -170,6 +176,31 @@ interface AccountRepositoryInterface
|
||||
*/
|
||||
public function getReconciliation(Account $account): ?Account;
|
||||
|
||||
/**
|
||||
* @param Account $account
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isLiability(Account $account): bool;
|
||||
|
||||
/**
|
||||
* Returns the date of the very first transaction in this account.
|
||||
*
|
||||
* @param Account $account
|
||||
*
|
||||
* @return TransactionJournal|null
|
||||
*/
|
||||
public function latestJournal(Account $account): ?TransactionJournal;
|
||||
|
||||
/**
|
||||
* Returns the date of the very last transaction in this account.
|
||||
*
|
||||
* @param Account $account
|
||||
*
|
||||
* @return Carbon|null
|
||||
*/
|
||||
public function latestJournalDate(Account $account): ?Carbon;
|
||||
|
||||
/**
|
||||
* Returns the date of the very first transaction in this account.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user