Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Merge branch 'develop' into feature/credit_calc
James Cole65c49c7a71a3
diff --cc app/Transformers/AccountTransformer.phpindex 49e5aa6623,742585dcf4..23c9627a51--- a/app/Transformers/AccountTransformer.php+++ b/app/Transformers/AccountTransformer.php@@@ -116,8 -114,7 +116,8 @@@ class AccountTransformer extends Abstra'opening_balance' => $openingBalance,'opening_balance_date' => $openingBalanceDate,'liability_type' => $liabilityType,+ 'liability_direction' => $liabilityDirection,- 'interest' => (float)$interest,+ 'interest' => $interest,'interest_period' => $interestPeriod,'include_net_worth' => $includeNetWorth,'longitude' => $longitude,diff --cc config/firefly.phpindex 0f388c4444,82a3b3b649..f57d61962f--- a/config/firefly.php+++ b/config/firefly.php@@@ -628,16 -630,14 +630,14 @@@ return// expected source types for each transaction type, in order of preference.'expected_source_types' => ['source' => [- TransactionTypeModel::WITHDRAWAL => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE],- TransactionTypeModel::DEPOSIT => [AccountType::REVENUE, AccountType::CASH, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE,- AccountType::INITIAL_BALANCE, AccountType::RECONCILIATION,],- TransactionTypeModel::TRANSFER => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE],- TransactionTypeModel::OPENING_BALANCE => [AccountType::INITIAL_BALANCE, AccountType::ASSET, AccountType::LOAN, AccountType::DEBT,- AccountType::MORTGAGE,],- TransactionTypeModel::RECONCILIATION => [AccountType::RECONCILIATION, AccountType::ASSET],- TransactionTypeModel::LIABILITY_CREDIT => [AccountType::LIABILITY_CREDIT,],+ TransactionTypeModel::WITHDRAWAL => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE],+ TransactionTypeModel::DEPOSIT => [AccountType::REVENUE, AccountType::CASH, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE],+ TransactionTypeModel::TRANSFER => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE],+ TransactionTypeModel::OPENING_BALANCE => [AccountType::INITIAL_BALANCE, AccountType::ASSET, AccountType::LOAN, AccountType::DEBT,+ AccountType::MORTGAGE,],+ TransactionTypeModel::RECONCILIATION => [AccountType::RECONCILIATION, AccountType::ASSET],// in case no transaction type is known yet, it could be anything.- 'none' => [+ 'none' => [AccountType::ASSET,AccountType::EXPENSE,AccountType::REVENUE,