mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 10:53:37 +00:00
Compare commits
54 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7b4bc23815 | ||
|
274dba7408 | ||
|
31708ca29e | ||
|
671b025588 | ||
|
a7956e4856 | ||
|
355862025a | ||
|
a2a39ee0f8 | ||
|
ec8e39c16f | ||
|
88f714999e | ||
|
c0c2aa3be0 | ||
|
822044820e | ||
|
6ffc182142 | ||
|
3d54a78573 | ||
|
8ddf7d953a | ||
|
8b9e9ad103 | ||
|
5737224c40 | ||
|
ec9aacbcae | ||
|
9395454997 | ||
|
66198a8d98 | ||
|
96ed9a4256 | ||
|
10e54b2263 | ||
|
cf00922ad2 | ||
|
84e8e007a5 | ||
|
d07b2e773b | ||
|
506ef7b0b9 | ||
|
2cd5dae8e2 | ||
|
a1cd49c111 | ||
|
aca2973aef | ||
|
0a7a691c95 | ||
|
72906a7afd | ||
|
d1a4a83570 | ||
|
e0396b29e8 | ||
|
536833cfe0 | ||
|
317b02d1b9 | ||
|
75e279ea0d | ||
|
dc2ad21f4c | ||
|
484d49aae1 | ||
|
ca39438ad4 | ||
|
49a65ebff4 | ||
|
befdc05084 | ||
|
1fbffe761b | ||
|
36aad379ff | ||
|
540cfa072e | ||
|
3b049c15cc | ||
|
3e93ed0a17 | ||
|
d7d9358136 | ||
|
5cf0939ff9 | ||
|
8dc6f91d3c | ||
|
a3a25db230 | ||
|
c06f18c815 | ||
|
6802f04036 | ||
|
beeccdf345 | ||
|
58241ed39d | ||
|
6c48afc37b |
@@ -15,4 +15,5 @@ EMAIL_SMTP=
|
|||||||
EMAIL_DRIVER=smtp
|
EMAIL_DRIVER=smtp
|
||||||
EMAIL_USERNAME=
|
EMAIL_USERNAME=
|
||||||
EMAIL_PASSWORD=
|
EMAIL_PASSWORD=
|
||||||
ANALYTICS_ID=
|
ANALYTICS_ID=
|
||||||
|
EMAIL_PRETEND=false
|
@@ -14,4 +14,5 @@ SESSION_DRIVER=array
|
|||||||
EMAIL_SMTP=
|
EMAIL_SMTP=
|
||||||
EMAIL_USERNAME=
|
EMAIL_USERNAME=
|
||||||
EMAIL_PASSWORD=
|
EMAIL_PASSWORD=
|
||||||
ANALYTICS_ID=ABC
|
ANALYTICS_ID=ABC
|
||||||
|
EMAIL_PRETEND=true
|
106
README.md
106
README.md
@@ -1,46 +1,62 @@
|
|||||||
Firefly III (v3.4.0.2)
|
# Firefly III
|
||||||
===========
|
#### v3.4.0.5
|
||||||
|
|
||||||
[](https://travis-ci.org/JC5/firefly-iii)
|
[](https://travis-ci.org/JC5/firefly-iii)
|
||||||
[](http://stillmaintained.com/JC5/firefly-iii)
|
[](http://stillmaintained.com/JC5/firefly-iii)
|
||||||
[](https://insight.sensiolabs.com/projects/d44c7012-5f50-41ad-add8-8445330e4102)
|
[](https://insight.sensiolabs.com/projects/d44c7012-5f50-41ad-add8-8445330e4102)
|
||||||
[](https://codeclimate.com/github/JC5/firefly-iii)
|
[](https://codeclimate.com/github/JC5/firefly-iii)
|
||||||
[](https://coveralls.io/r/JC5/firefly-iii?branch=master)
|
[](https://coveralls.io/r/JC5/firefly-iii?branch=master)
|
||||||
[](https://coveralls.io/r/JC5/firefly-iii?branch=develop)
|
|
||||||
|
|
||||||
[](https://packagist.org/packages/grumpydictator/firefly-iii)
|
[](https://packagist.org/packages/grumpydictator/firefly-iii)
|
||||||
[](https://packagist.org/packages/grumpydictator/firefly-iii)
|

|
||||||
[](https://packagist.org/packages/grumpydictator/firefly-iii)
|
## About
|
||||||
[](https://packagist.org/packages/grumpydictator/firefly-iii)
|
|
||||||
|
|
||||||
Firefly III is a tool to help you manage your finances. Please read the full description [in the wiki](https://github.com/JC5/firefly-iii/wiki/full-description).
|
"Firefly III" is a financial manager. It can help you keep track of expenses, income, budgets and everything in between. It even supports credit cards, shared
|
||||||
|
household accounts and savings accounts! It's pretty fancy. You should use it to save and organise money.
|
||||||
Firefly Mark III is a new version of Firefly built upon best practices and lessons learned
|
|
||||||
from building [Firefly](https://github.com/JC5/Firefly). It's Mark III since the original Firefly never made it outside of my
|
|
||||||
laptop and [Firefly II](https://github.com/JC5/Firefly) is live.
|
|
||||||
|
|
||||||
If you're not sure if this tool is for you, please read the [full description](https://github.com/JC5/firefly-iii/wiki/full-description).
|
|
||||||
|
|
||||||
To install and use Firefly III, please read [the installation guide](https://github.com/JC5/firefly-iii/wiki/Installation),
|
|
||||||
[the upgrade guide](https://github.com/JC5/firefly-iii/wiki/Upgrade-instructions) (if applicable) and the **[first use guide](https://github.com/JC5/firefly-iii/wiki/First-use)**.
|
|
||||||
|
|
||||||
If you want to try out Firefly III, you can do so on [this dedicated website](https://geld.nder.be/). This site always runs the latest version of Firefly III. If you want to use it, please read the [privacy considerations](https://github.com/JC5/firefly-iii/wiki/Privacy-on-demo-site) for this demo-site.
|
Firefly is a system you'll have install yourself on webhosting of your choosing.
|
||||||
|
|
||||||
|
Personal financial management is pretty difficult, and everybody has their own approach to it. Some people
|
||||||
|
make budgets, other people limit their cashflow by throwing away their credit cards, others get a better job.
|
||||||
|
There are tons of ways to save and earn money.
|
||||||
|
|
||||||
|
|
||||||
|
To get to know Firefly, and to see if it fits you, check out these resources:
|
||||||
|
|
||||||
|
- The screenshots below on this very page.
|
||||||
|
- The featurelist below, also on this very page.
|
||||||
|
- The [full description](https://github.com/JC5/firefly-iii/wiki/full-description), which will tell you how Firefly works,
|
||||||
|
and the philosophy behind it.
|
||||||
|
|
||||||
|
|
||||||
|
### About the name (if you care)
|
||||||
|
|
||||||
|
It's III, or 3, because [version 2](https://github.com/JC5/Firefly) and version 1 (not online) preceded it. It has been growing steadily ever since.
|
||||||
|
|
||||||
|
## Running and installing
|
||||||
|
|
||||||
|
If you're still interested please read [the installation guide](https://github.com/JC5/firefly-iii/wiki/Installation),
|
||||||
|
[the upgrade guide](https://github.com/JC5/firefly-iii/wiki/Upgrade-instructions) (if applicable)
|
||||||
|
and the **[first use guide](https://github.com/JC5/firefly-iii/wiki/First-use)**.
|
||||||
|
|
||||||
|
If you want to try out Firefly III, you can do so on [this dedicated website](https://geld.nder.be/).
|
||||||
|
This site always runs the latest version of Firefly III. If you want to use it, please read the [privacy considerations](https://github.com/JC5/firefly-iii/wiki/Privacy-on-demo-site) for this demo-site.
|
||||||
|
|
||||||
## Current features
|
## Current features
|
||||||
|
|
||||||
- [A double-entry bookkeeping system](https://en.wikipedia.org/wiki/Double-entry_bookkeeping_system);
|
- [A double-entry bookkeeping system](https://en.wikipedia.org/wiki/Double-entry_bookkeeping_system);
|
||||||
- You can store, edit and remove withdrawals, deposits and transfers. This allows you full financial management;
|
- You can store, edit and remove [withdrawals, deposits and transfers](https://en.wikipedia.org/wiki/Financial_transaction). This allows you full financial management;
|
||||||
- You can manage different types of accounts
|
- You can manage different types of accounts
|
||||||
- Asset accounts
|
- [Asset](https://en.wikipedia.org/wiki/Asset) accounts
|
||||||
- Shared asset accounts (household accounts)
|
- Shared [asset accounts](https://en.wikipedia.org/wiki/Asset) ([household accounts](https://en.wikipedia.org/wiki/Household))
|
||||||
- Saving accounts
|
- Saving accounts
|
||||||
- Credit cards
|
- Credit cards
|
||||||
- It's possible to create, change and manage money using _[budgets](https://en.wikipedia.org/wiki/Envelope_system)_;
|
- It's possible to create, change and manage money using _[budgets](https://en.wikipedia.org/wiki/Envelope_system)_;
|
||||||
- Organize transactions using categories;
|
- Organize transactions using categories;
|
||||||
- Save towards a goal using piggy banks;
|
- Save towards a goal using [piggy banks](https://en.wikipedia.org/wiki/Piggy_bank);
|
||||||
- Predict and anticipate bills;
|
- Predict and anticipate [bills](https://en.wikipedia.org/wiki/Invoice);
|
||||||
- View income / expense reports;
|
- View income / expense [reports](https://en.wikipedia.org/wiki/Financial_statement);
|
||||||
- Lots of help text in case you don't get it;
|
- Organize expenses using tags;
|
||||||
|
- Lots of help text in case you don't get it.
|
||||||
|
|
||||||
Everything is organised:
|
Everything is organised:
|
||||||
|
|
||||||
@@ -50,33 +66,29 @@ Everything is organised:
|
|||||||
- Lots of charts because we all love them.
|
- Lots of charts because we all love them.
|
||||||
- Financial reporting showing you how well you are doing;
|
- Financial reporting showing you how well you are doing;
|
||||||
|
|
||||||
## Changes
|
|
||||||
|
|
||||||
Firefly III will feature, but does not feature yet:
|
|
||||||
|
|
||||||
|
|
||||||
- More control over other resources outside of personal finance
|
|
||||||
- Debts
|
|
||||||
- More test-coverage;
|
|
||||||
- Firefly will be able to split transactions; a single purchase can be split in multiple entries, for more fine-grained control.
|
|
||||||
- Firefly will be able to join transactions.
|
|
||||||
- Any other features I might not have thought of.
|
|
||||||
|
|
||||||
Some stuff has been removed:
|
|
||||||
|
|
||||||
- The nesting of budgets, categories and beneficiaries is removed because it was pretty pointless.
|
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|
_Please note that everything in these screenshots is fictional and may not be realistic._
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||

|

|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Current state
|
## Current state
|
||||||
I have the basics up and running. Test coverage is currently coming, slowly.
|
|
||||||
|
|
||||||
Questions, ideas or other things to contribute? [Let me know](https://github.com/JC5/firefly-iii/issues/new)!
|
Firefly III is pretty much all grown up. Full test coverage (nerd alert!) is coming. One of the things on the todo-list
|
||||||
|
is adding translations.
|
||||||
|
|
||||||
|
Questions, ideas, bugs or other things to contribute? [Let me know](https://github.com/JC5/firefly-iii/issues/new)!
|
||||||
|
|
||||||
|
If you like this tool, feel free to [donate me some beer money](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=2ZMV952UUSCLU&lc=NL&item_name=Development%20of%20Firefly¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted).
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* Class Command
|
* Class Command
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Commands
|
* @package FireflyIII\Commands
|
||||||
*/
|
*/
|
||||||
abstract class Command
|
abstract class Command
|
||||||
|
@@ -6,6 +6,7 @@ use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|||||||
/**
|
/**
|
||||||
* Class Kernel
|
* Class Kernel
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Console
|
* @package FireflyIII\Console
|
||||||
*/
|
*/
|
||||||
class Kernel extends ConsoleKernel
|
class Kernel extends ConsoleKernel
|
||||||
|
@@ -3,6 +3,7 @@
|
|||||||
/**
|
/**
|
||||||
* Class Event
|
* Class Event
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Events
|
* @package FireflyIII\Events
|
||||||
*/
|
*/
|
||||||
abstract class Event
|
abstract class Event
|
||||||
|
@@ -6,6 +6,7 @@ use Illuminate\Queue\SerializesModels;
|
|||||||
/**
|
/**
|
||||||
* Class JournalCreated
|
* Class JournalCreated
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Events
|
* @package FireflyIII\Events
|
||||||
*/
|
*/
|
||||||
class JournalCreated extends Event
|
class JournalCreated extends Event
|
||||||
|
@@ -5,6 +5,7 @@ use Illuminate\Queue\SerializesModels;
|
|||||||
/**
|
/**
|
||||||
* Class JournalDeleted
|
* Class JournalDeleted
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Events
|
* @package FireflyIII\Events
|
||||||
*/
|
*/
|
||||||
class JournalDeleted extends Event
|
class JournalDeleted extends Event
|
||||||
|
@@ -6,6 +6,7 @@ use Illuminate\Queue\SerializesModels;
|
|||||||
/**
|
/**
|
||||||
* Class JournalSaved
|
* Class JournalSaved
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Events
|
* @package FireflyIII\Events
|
||||||
*/
|
*/
|
||||||
class JournalSaved extends Event
|
class JournalSaved extends Event
|
||||||
|
@@ -6,6 +6,7 @@ namespace FireflyIII\Exceptions;
|
|||||||
/**
|
/**
|
||||||
* Class FireflyException
|
* Class FireflyException
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Exceptions
|
* @package FireflyIII\Exceptions
|
||||||
*/
|
*/
|
||||||
class FireflyException extends \Exception
|
class FireflyException extends \Exception
|
||||||
|
@@ -6,6 +6,7 @@ use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
|||||||
/**
|
/**
|
||||||
* Class Handler
|
* Class Handler
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Exceptions
|
* @package FireflyIII\Exceptions
|
||||||
*/
|
*/
|
||||||
class Handler extends ExceptionHandler
|
class Handler extends ExceptionHandler
|
||||||
|
@@ -5,6 +5,7 @@ namespace FireflyIII\Exceptions;
|
|||||||
/**
|
/**
|
||||||
* Class NotImplementedException
|
* Class NotImplementedException
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Exceptions
|
* @package FireflyIII\Exceptions
|
||||||
*/
|
*/
|
||||||
class NotImplementedException extends \Exception
|
class NotImplementedException extends \Exception
|
||||||
|
@@ -4,6 +4,7 @@ namespace FireflyIII\Exceptions;
|
|||||||
/**
|
/**
|
||||||
* Class ValidationExceptions
|
* Class ValidationExceptions
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Exception
|
* @package FireflyIII\Exception
|
||||||
*/
|
*/
|
||||||
class ValidationException extends \Exception
|
class ValidationException extends \Exception
|
||||||
|
@@ -5,6 +5,7 @@ use FireflyIII\Events\JournalDeleted;
|
|||||||
/**
|
/**
|
||||||
* Class JournalDeletedHandler
|
* Class JournalDeletedHandler
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Handlers\Events
|
* @package FireflyIII\Handlers\Events
|
||||||
*/
|
*/
|
||||||
class JournalDeletedHandler
|
class JournalDeletedHandler
|
||||||
|
@@ -136,7 +136,7 @@ class ReportHelper implements ReportHelperInterface
|
|||||||
$end = clone $date;
|
$end = clone $date;
|
||||||
$sharedAccounts = [];
|
$sharedAccounts = [];
|
||||||
if ($showSharedReports === false) {
|
if ($showSharedReports === false) {
|
||||||
$sharedCollection = \Auth::user()->accounts()
|
$sharedCollection = Auth::user()->accounts()
|
||||||
->leftJoin('account_meta', 'account_meta.account_id', '=', 'accounts.id')
|
->leftJoin('account_meta', 'account_meta.account_id', '=', 'accounts.id')
|
||||||
->where('account_meta.name', '=', 'accountRole')
|
->where('account_meta.name', '=', 'accountRole')
|
||||||
->where('account_meta.data', '=', json_encode('sharedAsset'))
|
->where('account_meta.data', '=', json_encode('sharedAsset'))
|
||||||
|
@@ -38,6 +38,7 @@ class AuthController extends Controller
|
|||||||
*
|
*
|
||||||
* @param \Illuminate\Contracts\Auth\Guard $auth
|
* @param \Illuminate\Contracts\Auth\Guard $auth
|
||||||
* @param \Illuminate\Contracts\Auth\Registrar $registrar
|
* @param \Illuminate\Contracts\Auth\Registrar $registrar
|
||||||
|
* @codeCoverageIgnore
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function __construct(Guard $auth, Registrar $registrar)
|
public function __construct(Guard $auth, Registrar $registrar)
|
||||||
@@ -51,7 +52,9 @@ class AuthController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Show the application login form.
|
* Show the application login form.
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Http\Response
|
* @return \Illuminate\Http\Response
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
public function getLogin()
|
public function getLogin()
|
||||||
{
|
{
|
||||||
@@ -73,7 +76,9 @@ class AuthController extends Controller
|
|||||||
$this->throwValidationException(
|
$this->throwValidationException(
|
||||||
$request, $validator
|
$request, $validator
|
||||||
);
|
);
|
||||||
|
// @codeCoverageIgnoreStart
|
||||||
}
|
}
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
|
|
||||||
$data = $request->all();
|
$data = $request->all();
|
||||||
$data['password'] = bcrypt($data['password']);
|
$data['password'] = bcrypt($data['password']);
|
||||||
|
@@ -7,7 +7,7 @@ use Illuminate\Foundation\Auth\ResetsPasswords;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Class PasswordController
|
* Class PasswordController
|
||||||
*
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Controllers\Auth
|
* @package FireflyIII\Http\Controllers\Auth
|
||||||
*/
|
*/
|
||||||
class PasswordController extends Controller
|
class PasswordController extends Controller
|
||||||
|
@@ -149,6 +149,7 @@ class GoogleChartController extends Controller
|
|||||||
{
|
{
|
||||||
$chart->addColumn('Budget', 'string');
|
$chart->addColumn('Budget', 'string');
|
||||||
$chart->addColumn('Left', 'number');
|
$chart->addColumn('Left', 'number');
|
||||||
|
$chart->addColumn('Spent', 'number');
|
||||||
$chart->addColumn('Overspent', 'number');
|
$chart->addColumn('Overspent', 'number');
|
||||||
|
|
||||||
$budgets = $repository->getBudgets();
|
$budgets = $repository->getBudgets();
|
||||||
@@ -160,30 +161,31 @@ class GoogleChartController extends Controller
|
|||||||
$repetitions = $repository->getBudgetLimitRepetitions($budget, $start, $end);
|
$repetitions = $repository->getBudgetLimitRepetitions($budget, $start, $end);
|
||||||
if ($repetitions->count() == 0) {
|
if ($repetitions->count() == 0) {
|
||||||
$expenses = $repository->sumBudgetExpensesInPeriod($budget, $start, $end);
|
$expenses = $repository->sumBudgetExpensesInPeriod($budget, $start, $end);
|
||||||
$allEntries->push([$budget->name, 0, $expenses]);
|
$allEntries->push([$budget->name, 0, 0, $expenses]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/** @var LimitRepetition $repetition */
|
/** @var LimitRepetition $repetition */
|
||||||
foreach ($repetitions as $repetition) {
|
foreach ($repetitions as $repetition) {
|
||||||
$expenses = $repository->sumBudgetExpensesInPeriod($budget, $repetition->startdate, $repetition->enddate);
|
$expenses = $repository->sumBudgetExpensesInPeriod($budget, $repetition->startdate, $repetition->enddate);
|
||||||
$allEntries->push([$budget->name . ' (' . $repetition->startdate->format('j M Y') . ')', floatval($repetition->amount), $expenses]);
|
$left = $expenses < floatval($repetition->amount) ? floatval($repetition->amount) - $expenses : 0;
|
||||||
|
$spent = $expenses > floatval($repetition->amount) ? 0 : $expenses;
|
||||||
|
$overspent = $expenses > floatval($repetition->amount) ? $expenses - floatval($repetition->amount) : 0;
|
||||||
|
$allEntries->push(
|
||||||
|
[$budget->name . ' (' . $repetition->startdate->format('j M Y') . ')',
|
||||||
|
$left,
|
||||||
|
$spent,
|
||||||
|
$overspent
|
||||||
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$noBudgetExpenses = $repository->getWithoutBudgetSum($start, $end);
|
$noBudgetExpenses = $repository->getWithoutBudgetSum($start, $end);
|
||||||
$allEntries->push(['(no budget)', 0, $noBudgetExpenses]);
|
$allEntries->push(['(no budget)', 0, 0, $noBudgetExpenses]);
|
||||||
|
|
||||||
foreach ($allEntries as $entry) {
|
foreach ($allEntries as $entry) {
|
||||||
if ($entry[2] > 0) {
|
if ($entry[1] != 0 || $entry[2] != 0 || $entry[3] != 0) {
|
||||||
$left = $entry[1] - $entry[2];
|
$chart->addRow($entry[0], $entry[1], $entry[2], $entry[3]);
|
||||||
if ($left > 0) {
|
|
||||||
$chart->addRow($entry[0], $left, null);
|
|
||||||
} else {
|
|
||||||
if ($left < 0) {
|
|
||||||
$chart->addRow($entry[0], null, $left);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -7,6 +7,7 @@ use Illuminate\Http\Request;
|
|||||||
/**
|
/**
|
||||||
* Class Authenticate
|
* Class Authenticate
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Middleware
|
* @package FireflyIII\Http\Middleware
|
||||||
*/
|
*/
|
||||||
class Authenticate
|
class Authenticate
|
||||||
|
@@ -8,6 +8,7 @@ use Illuminate\Http\Request;
|
|||||||
/**
|
/**
|
||||||
* Class RedirectIfAuthenticated
|
* Class RedirectIfAuthenticated
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Middleware
|
* @package FireflyIII\Http\Middleware
|
||||||
*/
|
*/
|
||||||
class RedirectIfAuthenticated
|
class RedirectIfAuthenticated
|
||||||
|
@@ -10,6 +10,7 @@ use Log;
|
|||||||
/**
|
/**
|
||||||
* Class ReplaceTestVars
|
* Class ReplaceTestVars
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Middleware
|
* @package FireflyIII\Http\Middleware
|
||||||
*/
|
*/
|
||||||
class ReplaceTestVars
|
class ReplaceTestVars
|
||||||
|
@@ -6,6 +6,7 @@ use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
|
|||||||
/**
|
/**
|
||||||
* Class VerifyCsrfToken
|
* Class VerifyCsrfToken
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Middleware
|
* @package FireflyIII\Http\Middleware
|
||||||
*/
|
*/
|
||||||
class VerifyCsrfToken extends BaseVerifier
|
class VerifyCsrfToken extends BaseVerifier
|
||||||
|
@@ -10,6 +10,7 @@ use Input;
|
|||||||
/**
|
/**
|
||||||
* Class AccountFormRequest
|
* Class AccountFormRequest
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Requests
|
* @package FireflyIII\Http\Requests
|
||||||
*/
|
*/
|
||||||
class AccountFormRequest extends Request
|
class AccountFormRequest extends Request
|
||||||
|
@@ -9,6 +9,7 @@ use Input;
|
|||||||
/**
|
/**
|
||||||
* Class BillFormRequest
|
* Class BillFormRequest
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Requests
|
* @package FireflyIII\Http\Requests
|
||||||
*/
|
*/
|
||||||
class BillFormRequest extends Request
|
class BillFormRequest extends Request
|
||||||
|
@@ -9,6 +9,7 @@ use Input;
|
|||||||
/**
|
/**
|
||||||
* Class BudgetFormRequest
|
* Class BudgetFormRequest
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Requests
|
* @package FireflyIII\Http\Requests
|
||||||
*/
|
*/
|
||||||
class BudgetFormRequest extends Request
|
class BudgetFormRequest extends Request
|
||||||
|
@@ -9,6 +9,7 @@ use Input;
|
|||||||
/**
|
/**
|
||||||
* Class CategoryFormRequest
|
* Class CategoryFormRequest
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Requests
|
* @package FireflyIII\Http\Requests
|
||||||
*/
|
*/
|
||||||
class CategoryFormRequest extends Request
|
class CategoryFormRequest extends Request
|
||||||
|
@@ -8,6 +8,7 @@ use Input;
|
|||||||
/**
|
/**
|
||||||
* Class BillFormRequest
|
* Class BillFormRequest
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Requests
|
* @package FireflyIII\Http\Requests
|
||||||
*/
|
*/
|
||||||
class CurrencyFormRequest extends Request
|
class CurrencyFormRequest extends Request
|
||||||
|
@@ -7,6 +7,7 @@ use Auth;
|
|||||||
/**
|
/**
|
||||||
* Class DeleteAccountFormRequest
|
* Class DeleteAccountFormRequest
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Requests
|
* @package FireflyIII\Http\Requests
|
||||||
*/
|
*/
|
||||||
class DeleteAccountFormRequest extends Request
|
class DeleteAccountFormRequest extends Request
|
||||||
|
@@ -10,6 +10,7 @@ use Input;
|
|||||||
/**
|
/**
|
||||||
* Class JournalFormRequest
|
* Class JournalFormRequest
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Requests
|
* @package FireflyIII\Http\Requests
|
||||||
*/
|
*/
|
||||||
class JournalFormRequest extends Request
|
class JournalFormRequest extends Request
|
||||||
|
@@ -8,6 +8,7 @@ use Input;
|
|||||||
/**
|
/**
|
||||||
* Class PiggyBankFormRequest
|
* Class PiggyBankFormRequest
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Requests
|
* @package FireflyIII\Http\Requests
|
||||||
*/
|
*/
|
||||||
class PiggyBankFormRequest extends Request
|
class PiggyBankFormRequest extends Request
|
||||||
|
@@ -7,6 +7,7 @@ use Auth;
|
|||||||
/**
|
/**
|
||||||
* Class ProfileFormRequest
|
* Class ProfileFormRequest
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Requests
|
* @package FireflyIII\Http\Requests
|
||||||
*/
|
*/
|
||||||
class ProfileFormRequest extends Request
|
class ProfileFormRequest extends Request
|
||||||
|
@@ -5,6 +5,7 @@ use Illuminate\Foundation\Http\FormRequest;
|
|||||||
/**
|
/**
|
||||||
* Class Request
|
* Class Request
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Requests
|
* @package FireflyIII\Http\Requests
|
||||||
*/
|
*/
|
||||||
abstract class Request extends FormRequest
|
abstract class Request extends FormRequest
|
||||||
|
@@ -15,6 +15,7 @@ use Input;
|
|||||||
/**
|
/**
|
||||||
* Class TagFormRequest
|
* Class TagFormRequest
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Http\Requests
|
* @package FireflyIII\Http\Requests
|
||||||
*/
|
*/
|
||||||
class TagFormRequest extends Request
|
class TagFormRequest extends Request
|
||||||
|
@@ -319,7 +319,7 @@ Breadcrumbs::register(
|
|||||||
|
|
||||||
Breadcrumbs::register(
|
Breadcrumbs::register(
|
||||||
'reports.month', function (Generator $breadcrumbs, Carbon $date) {
|
'reports.month', function (Generator $breadcrumbs, Carbon $date) {
|
||||||
$breadcrumbs->parent('reports.index');
|
$breadcrumbs->parent('reports.year', $date);
|
||||||
$breadcrumbs->push('Monthly report for ' . $date->format('F Y'), route('reports.month', [$date->year, $date->month]));
|
$breadcrumbs->push('Monthly report for ' . $date->format('F Y'), route('reports.month', [$date->year, $date->month]));
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@@ -29,6 +29,7 @@ class Account extends Model
|
|||||||
/**
|
/**
|
||||||
* @param array $fields
|
* @param array $fields
|
||||||
*
|
*
|
||||||
|
*
|
||||||
* @return Account|null
|
* @return Account|null
|
||||||
*/
|
*/
|
||||||
public static function firstOrCreateEncrypted(array $fields)
|
public static function firstOrCreateEncrypted(array $fields)
|
||||||
@@ -86,6 +87,7 @@ class Account extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
||||||
*/
|
*/
|
||||||
public function accountMeta()
|
public function accountMeta()
|
||||||
@@ -94,6 +96,7 @@ class Account extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||||
*/
|
*/
|
||||||
public function accountType()
|
public function accountType()
|
||||||
@@ -102,6 +105,7 @@ class Account extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getDates()
|
public function getDates()
|
||||||
@@ -110,6 +114,7 @@ class Account extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
* @param $fieldName
|
* @param $fieldName
|
||||||
*
|
*
|
||||||
* @return string|null
|
* @return string|null
|
||||||
@@ -127,6 +132,7 @@ class Account extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
@@ -144,6 +150,7 @@ class Account extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
||||||
*/
|
*/
|
||||||
public function piggyBanks()
|
public function piggyBanks()
|
||||||
@@ -152,6 +159,7 @@ class Account extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param EloquentBuilder $query
|
* @param EloquentBuilder $query
|
||||||
* @param array $types
|
* @param array $types
|
||||||
*/
|
*/
|
||||||
@@ -165,6 +173,7 @@ class Account extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param EloquentBuilder $query
|
* @param EloquentBuilder $query
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param string $value
|
* @param string $value
|
||||||
@@ -181,6 +190,7 @@ class Account extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*/
|
*/
|
||||||
public function setNameAttribute($value)
|
public function setNameAttribute($value)
|
||||||
@@ -190,6 +200,7 @@ class Account extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
||||||
*/
|
*/
|
||||||
public function transactions()
|
public function transactions()
|
||||||
@@ -198,6 +209,7 @@ class Account extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||||
*/
|
*/
|
||||||
public function user()
|
public function user()
|
||||||
|
@@ -6,6 +6,7 @@ use Watson\Validating\ValidatingTrait;
|
|||||||
/**
|
/**
|
||||||
* Class AccountMeta
|
* Class AccountMeta
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Models
|
* @package FireflyIII\Models
|
||||||
*/
|
*/
|
||||||
class AccountMeta extends Model
|
class AccountMeta extends Model
|
||||||
@@ -22,6 +23,7 @@ class AccountMeta extends Model
|
|||||||
protected $table = 'account_meta';
|
protected $table = 'account_meta';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||||
*/
|
*/
|
||||||
public function account()
|
public function account()
|
||||||
|
@@ -5,6 +5,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
/**
|
/**
|
||||||
* Class AccountType
|
* Class AccountType
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Models
|
* @package FireflyIII\Models
|
||||||
*/
|
*/
|
||||||
class AccountType extends Model
|
class AccountType extends Model
|
||||||
|
@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
/**
|
/**
|
||||||
* Class Budget
|
* Class Budget
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Models
|
* @package FireflyIII\Models
|
||||||
*/
|
*/
|
||||||
class Budget extends Model
|
class Budget extends Model
|
||||||
@@ -17,6 +18,7 @@ class Budget extends Model
|
|||||||
protected $fillable = ['user_id', 'name'];
|
protected $fillable = ['user_id', 'name'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
||||||
*/
|
*/
|
||||||
public function budgetlimits()
|
public function budgetlimits()
|
||||||
|
@@ -5,6 +5,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
/**
|
/**
|
||||||
* Class BudgetLimit
|
* Class BudgetLimit
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Models
|
* @package FireflyIII\Models
|
||||||
*/
|
*/
|
||||||
class BudgetLimit extends Model
|
class BudgetLimit extends Model
|
||||||
|
@@ -8,6 +8,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
/**
|
/**
|
||||||
* Class Category
|
* Class Category
|
||||||
*
|
*
|
||||||
|
*
|
||||||
* @package FireflyIII\Models
|
* @package FireflyIII\Models
|
||||||
*/
|
*/
|
||||||
class Category extends Model
|
class Category extends Model
|
||||||
@@ -17,6 +18,7 @@ class Category extends Model
|
|||||||
protected $fillable = ['user_id', 'name'];
|
protected $fillable = ['user_id', 'name'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getDates()
|
public function getDates()
|
||||||
@@ -25,6 +27,7 @@ class Category extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
||||||
*/
|
*/
|
||||||
public function transactionjournals()
|
public function transactionjournals()
|
||||||
@@ -66,6 +69,7 @@ class Category extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||||
*/
|
*/
|
||||||
public function user()
|
public function user()
|
||||||
@@ -74,6 +78,7 @@ class Category extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*/
|
*/
|
||||||
public function setNameAttribute($value)
|
public function setNameAttribute($value)
|
||||||
@@ -83,6 +88,7 @@ class Category extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
@@ -94,9 +100,7 @@ class Category extends Model
|
|||||||
return Crypt::decrypt($value);
|
return Crypt::decrypt($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @codeCoverageIgnoreStart
|
|
||||||
return $value;
|
return $value;
|
||||||
// @codeCoverageIgnoreEnd
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
/**
|
/**
|
||||||
* Class Component
|
* Class Component
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Models
|
* @package FireflyIII\Models
|
||||||
*/
|
*/
|
||||||
class Component extends Model
|
class Component extends Model
|
||||||
|
@@ -13,6 +13,7 @@ class LimitRepetition extends Model
|
|||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||||
*/
|
*/
|
||||||
public function budgetLimit()
|
public function budgetLimit()
|
||||||
@@ -21,6 +22,7 @@ class LimitRepetition extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getDates()
|
public function getDates()
|
||||||
|
@@ -17,6 +17,7 @@ class PiggyBank extends Model
|
|||||||
= ['name', 'account_id', 'order', 'reminder_skip', 'targetamount', 'startdate', 'targetdate', 'reminder', 'remind_me'];
|
= ['name', 'account_id', 'order', 'reminder_skip', 'targetamount', 'startdate', 'targetdate', 'reminder', 'remind_me'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||||
*/
|
*/
|
||||||
public function account()
|
public function account()
|
||||||
@@ -44,6 +45,7 @@ class PiggyBank extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
||||||
*/
|
*/
|
||||||
public function piggyBankRepetitions()
|
public function piggyBankRepetitions()
|
||||||
@@ -52,6 +54,7 @@ class PiggyBank extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getDates()
|
public function getDates()
|
||||||
@@ -60,6 +63,7 @@ class PiggyBank extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
@@ -70,6 +74,7 @@ class PiggyBank extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
||||||
*/
|
*/
|
||||||
public function piggyBankEvents()
|
public function piggyBankEvents()
|
||||||
@@ -78,6 +83,7 @@ class PiggyBank extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\MorphMany
|
* @return \Illuminate\Database\Eloquent\Relations\MorphMany
|
||||||
*/
|
*/
|
||||||
public function reminders()
|
public function reminders()
|
||||||
@@ -86,6 +92,7 @@ class PiggyBank extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*/
|
*/
|
||||||
public function setNameAttribute($value)
|
public function setNameAttribute($value)
|
||||||
@@ -95,6 +102,7 @@ class PiggyBank extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
|
@@ -5,6 +5,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
/**
|
/**
|
||||||
* Class PiggyBankEvent
|
* Class PiggyBankEvent
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Models
|
* @package FireflyIII\Models
|
||||||
*/
|
*/
|
||||||
class PiggyBankEvent extends Model
|
class PiggyBankEvent extends Model
|
||||||
|
@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
/**
|
/**
|
||||||
* Class PiggyBankRepetition
|
* Class PiggyBankRepetition
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Models
|
* @package FireflyIII\Models
|
||||||
*/
|
*/
|
||||||
class PiggyBankRepetition extends Model
|
class PiggyBankRepetition extends Model
|
||||||
|
@@ -5,6 +5,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
/**
|
/**
|
||||||
* Class Preference
|
* Class Preference
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Models
|
* @package FireflyIII\Models
|
||||||
*/
|
*/
|
||||||
class Preference extends Model
|
class Preference extends Model
|
||||||
|
@@ -17,6 +17,7 @@ class Reminder extends Model
|
|||||||
protected $fillable = ['user_id', 'startdate', 'metadata', 'enddate', 'active', 'notnow', 'remindersable_id', 'remindersable_type',];
|
protected $fillable = ['user_id', 'startdate', 'metadata', 'enddate', 'active', 'notnow', 'remindersable_id', 'remindersable_type',];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
@@ -27,6 +28,7 @@ class Reminder extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getDates()
|
public function getDates()
|
||||||
@@ -35,6 +37,7 @@ class Reminder extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
@@ -49,6 +52,7 @@ class Reminder extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
@@ -59,6 +63,7 @@ class Reminder extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
|
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
|
||||||
*/
|
*/
|
||||||
public function remindersable()
|
public function remindersable()
|
||||||
@@ -67,6 +72,7 @@ class Reminder extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param EloquentBuilder $query
|
* @param EloquentBuilder $query
|
||||||
* @param Carbon $start
|
* @param Carbon $start
|
||||||
* @param Carbon $end
|
* @param Carbon $end
|
||||||
@@ -79,6 +85,7 @@ class Reminder extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param EloquentBuilder $query
|
* @param EloquentBuilder $query
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
@@ -92,6 +99,7 @@ class Reminder extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*/
|
*/
|
||||||
public function setMetadataAttribute($value)
|
public function setMetadataAttribute($value)
|
||||||
@@ -101,6 +109,7 @@ class Reminder extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||||
*/
|
*/
|
||||||
public function user()
|
public function user()
|
||||||
|
@@ -67,6 +67,7 @@ class Tag extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getDates()
|
public function getDates()
|
||||||
@@ -75,6 +76,7 @@ class Tag extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
@@ -85,6 +87,7 @@ class Tag extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
@@ -95,6 +98,7 @@ class Tag extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*/
|
*/
|
||||||
public function setDescriptionAttribute($value)
|
public function setDescriptionAttribute($value)
|
||||||
@@ -103,6 +107,7 @@ class Tag extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*/
|
*/
|
||||||
public function setTagAttribute($value)
|
public function setTagAttribute($value)
|
||||||
@@ -111,6 +116,7 @@ class Tag extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
||||||
*/
|
*/
|
||||||
public function transactionjournals()
|
public function transactionjournals()
|
||||||
@@ -119,6 +125,7 @@ class Tag extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||||
*/
|
*/
|
||||||
public function user()
|
public function user()
|
||||||
|
@@ -9,6 +9,7 @@ use Watson\Validating\ValidatingTrait;
|
|||||||
/**
|
/**
|
||||||
* Class Transaction
|
* Class Transaction
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Models
|
* @package FireflyIII\Models
|
||||||
*/
|
*/
|
||||||
class Transaction extends Model
|
class Transaction extends Model
|
||||||
|
@@ -4,8 +4,10 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
* Class TransactionCurrency
|
* Class TransactionCurrency
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Models
|
* @package FireflyIII\Models
|
||||||
*/
|
*/
|
||||||
class TransactionCurrency extends Model
|
class TransactionCurrency extends Model
|
||||||
|
@@ -6,6 +6,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
/**
|
/**
|
||||||
* Class TransactionGroup
|
* Class TransactionGroup
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Models
|
* @package FireflyIII\Models
|
||||||
*/
|
*/
|
||||||
class TransactionGroup extends Model
|
class TransactionGroup extends Model
|
||||||
|
@@ -32,6 +32,7 @@ class TransactionJournal extends Model
|
|||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||||
*/
|
*/
|
||||||
public function bill()
|
public function bill()
|
||||||
@@ -40,6 +41,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
||||||
*/
|
*/
|
||||||
public function budgets()
|
public function budgets()
|
||||||
@@ -48,6 +50,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
||||||
*/
|
*/
|
||||||
public function categories()
|
public function categories()
|
||||||
@@ -94,6 +97,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
||||||
*/
|
*/
|
||||||
public function transactions()
|
public function transactions()
|
||||||
@@ -102,6 +106,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getDates()
|
public function getDates()
|
||||||
@@ -110,6 +115,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
@@ -120,12 +126,11 @@ class TransactionJournal extends Model
|
|||||||
return Crypt::decrypt($value);
|
return Crypt::decrypt($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @codeCoverageIgnoreStart
|
|
||||||
return $value;
|
return $value;
|
||||||
// @codeCoverageIgnoreEnd
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
||||||
*/
|
*/
|
||||||
public function piggyBankEvents()
|
public function piggyBankEvents()
|
||||||
@@ -134,6 +139,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param EloquentBuilder $query
|
* @param EloquentBuilder $query
|
||||||
* @param Account $account
|
* @param Account $account
|
||||||
*/
|
*/
|
||||||
@@ -147,6 +153,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param EloquentBuilder $query
|
* @param EloquentBuilder $query
|
||||||
* @param Carbon $date
|
* @param Carbon $date
|
||||||
*
|
*
|
||||||
@@ -158,6 +165,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param EloquentBuilder $query
|
* @param EloquentBuilder $query
|
||||||
* @param Carbon $date
|
* @param Carbon $date
|
||||||
*
|
*
|
||||||
@@ -169,6 +177,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param EloquentBuilder $query
|
* @param EloquentBuilder $query
|
||||||
* @param $amount
|
* @param $amount
|
||||||
*/
|
*/
|
||||||
@@ -185,6 +194,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param EloquentBuilder $query
|
* @param EloquentBuilder $query
|
||||||
* @param Carbon $date
|
* @param Carbon $date
|
||||||
*
|
*
|
||||||
@@ -196,6 +206,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param EloquentBuilder $query
|
* @param EloquentBuilder $query
|
||||||
* @param array $types
|
* @param array $types
|
||||||
*/
|
*/
|
||||||
@@ -211,6 +222,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* Automatically includes the 'with' parameters to get relevant related
|
* Automatically includes the 'with' parameters to get relevant related
|
||||||
* objects.
|
* objects.
|
||||||
*
|
*
|
||||||
@@ -226,15 +238,17 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @param $value
|
* @param $value
|
||||||
*/
|
*/
|
||||||
public function setDescriptionAttribute($value)
|
public function setDescriptionAttribute($value)
|
||||||
{
|
{
|
||||||
$this->attributes['description'] = \Crypt::encrypt($value);
|
$this->attributes['description'] = Crypt::encrypt($value);
|
||||||
$this->attributes['encrypted'] = true;
|
$this->attributes['encrypted'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
||||||
*/
|
*/
|
||||||
public function tags()
|
public function tags()
|
||||||
@@ -243,6 +257,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||||
*/
|
*/
|
||||||
public function transactionCurrency()
|
public function transactionCurrency()
|
||||||
@@ -251,6 +266,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||||
*/
|
*/
|
||||||
public function transactionType()
|
public function transactionType()
|
||||||
@@ -259,6 +275,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
||||||
*/
|
*/
|
||||||
public function transactiongroups()
|
public function transactiongroups()
|
||||||
@@ -267,6 +284,7 @@ class TransactionJournal extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||||
*/
|
*/
|
||||||
public function user()
|
public function user()
|
||||||
|
@@ -5,6 +5,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
/**
|
/**
|
||||||
* Class TransactionRelation
|
* Class TransactionRelation
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Models
|
* @package FireflyIII\Models
|
||||||
*/
|
*/
|
||||||
class TransactionRelation extends Model
|
class TransactionRelation extends Model
|
||||||
|
@@ -6,6 +6,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
/**
|
/**
|
||||||
* Class TransactionType
|
* Class TransactionType
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Models
|
* @package FireflyIII\Models
|
||||||
*/
|
*/
|
||||||
class TransactionType extends Model
|
class TransactionType extends Model
|
||||||
|
@@ -117,8 +117,8 @@ class EventServiceProvider extends ServiceProvider
|
|||||||
try {
|
try {
|
||||||
$repetition->save();
|
$repetition->save();
|
||||||
} catch (QueryException $e) {
|
} catch (QueryException $e) {
|
||||||
\Log::error('Trying to save new LimitRepetition failed!');
|
Log::error('Trying to save new LimitRepetition failed!');
|
||||||
\Log::error($e->getMessage());
|
Log::error($e->getMessage());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($set->count() == 1) {
|
if ($set->count() == 1) {
|
||||||
|
@@ -10,6 +10,7 @@ use FireflyIII\Support\Preferences;
|
|||||||
use FireflyIII\Support\Steam;
|
use FireflyIII\Support\Steam;
|
||||||
use FireflyIII\Support\Twig\Budget;
|
use FireflyIII\Support\Twig\Budget;
|
||||||
use FireflyIII\Support\Twig\General;
|
use FireflyIII\Support\Twig\General;
|
||||||
|
use FireflyIII\Support\Twig\Translation;
|
||||||
use FireflyIII\Support\Twig\Journal;
|
use FireflyIII\Support\Twig\Journal;
|
||||||
use FireflyIII\Support\Twig\PiggyBank;
|
use FireflyIII\Support\Twig\PiggyBank;
|
||||||
use FireflyIII\Validation\FireflyValidator;
|
use FireflyIII\Validation\FireflyValidator;
|
||||||
@@ -42,6 +43,7 @@ class FireflyServiceProvider extends ServiceProvider
|
|||||||
Twig::addExtension(new General);
|
Twig::addExtension(new General);
|
||||||
Twig::addExtension(new Journal);
|
Twig::addExtension(new Journal);
|
||||||
Twig::addExtension(new Budget);
|
Twig::addExtension(new Budget);
|
||||||
|
Twig::addExtension(new Translation);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function register()
|
public function register()
|
||||||
|
@@ -510,9 +510,6 @@ class AccountRepository implements AccountRepositoryInterface
|
|||||||
'encrypted' => true
|
'encrypted' => true
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
if (!$journal->isValid()) {
|
|
||||||
App::abort(500);
|
|
||||||
}
|
|
||||||
$journal->save();
|
$journal->save();
|
||||||
|
|
||||||
|
|
||||||
@@ -536,9 +533,6 @@ class AccountRepository implements AccountRepositoryInterface
|
|||||||
'amount' => $firstAmount
|
'amount' => $firstAmount
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
if (!$one->isValid()) {
|
|
||||||
App::abort(500);
|
|
||||||
}
|
|
||||||
$one->save();
|
$one->save();
|
||||||
|
|
||||||
// second transaction: to
|
// second transaction: to
|
||||||
@@ -549,9 +543,6 @@ class AccountRepository implements AccountRepositoryInterface
|
|||||||
'amount' => $secondAmount
|
'amount' => $secondAmount
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
if (!$two->isValid()) {
|
|
||||||
App::abort(500);
|
|
||||||
}
|
|
||||||
$two->save();
|
$two->save();
|
||||||
|
|
||||||
return $journal;
|
return $journal;
|
||||||
|
@@ -4,6 +4,7 @@ namespace FireflyIII\Repositories\Bill;
|
|||||||
|
|
||||||
use Auth;
|
use Auth;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
|
use DB;
|
||||||
use FireflyIII\Models\Account;
|
use FireflyIII\Models\Account;
|
||||||
use FireflyIII\Models\AccountType;
|
use FireflyIII\Models\AccountType;
|
||||||
use FireflyIII\Models\Bill;
|
use FireflyIII\Models\Bill;
|
||||||
@@ -119,7 +120,7 @@ class BillRepository implements BillRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function getPossiblyRelatedJournals(Bill $bill)
|
public function getPossiblyRelatedJournals(Bill $bill)
|
||||||
{
|
{
|
||||||
$set = \DB::table('transactions')->where('amount', '>', 0)->where('amount', '>=', $bill->amount_min)->where('amount', '<=', $bill->amount_max)->get(
|
$set = DB::table('transactions')->where('amount', '>', 0)->where('amount', '>=', $bill->amount_min)->where('amount', '<=', $bill->amount_max)->get(
|
||||||
['transaction_journal_id']
|
['transaction_journal_id']
|
||||||
);
|
);
|
||||||
$ids = [];
|
$ids = [];
|
||||||
@@ -261,11 +262,8 @@ class BillRepository implements BillRepositoryInterface
|
|||||||
/*
|
/*
|
||||||
* Attach expense account to description for more narrow matching.
|
* Attach expense account to description for more narrow matching.
|
||||||
*/
|
*/
|
||||||
if (count($journal->transactions) < 2) {
|
$transactions = $journal->transactions()->get();
|
||||||
$transactions = $journal->transactions()->get();
|
|
||||||
} else {
|
|
||||||
$transactions = $journal->transactions;
|
|
||||||
}
|
|
||||||
/** @var Transaction $transaction */
|
/** @var Transaction $transaction */
|
||||||
foreach ($transactions as $transaction) {
|
foreach ($transactions as $transaction) {
|
||||||
/** @var Account $account */
|
/** @var Account $account */
|
||||||
|
@@ -10,6 +10,7 @@ use FireflyIII\Models\LimitRepetition;
|
|||||||
use Illuminate\Database\Query\Builder as QueryBuilder;
|
use Illuminate\Database\Query\Builder as QueryBuilder;
|
||||||
use Illuminate\Pagination\LengthAwarePaginator;
|
use Illuminate\Pagination\LengthAwarePaginator;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
|
use Input;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class BudgetRepository
|
* Class BudgetRepository
|
||||||
@@ -24,21 +25,6 @@ class BudgetRepository implements BudgetRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function cleanupBudgets()
|
public function cleanupBudgets()
|
||||||
{
|
{
|
||||||
$limits = BudgetLimit::leftJoin('budgets', 'budgets.id', '=', 'budget_limits.budget_id')->get(['budget_limits.*']);
|
|
||||||
|
|
||||||
// loop budget limits:
|
|
||||||
$found = [];
|
|
||||||
/** @var BudgetLimit $limit */
|
|
||||||
foreach ($limits as $limit) {
|
|
||||||
$key = $limit->budget_id . '-' . $limit->startdate;
|
|
||||||
if (isset($found[$key])) {
|
|
||||||
$limit->delete();
|
|
||||||
} else {
|
|
||||||
$found[$key] = true;
|
|
||||||
}
|
|
||||||
unset($key);
|
|
||||||
}
|
|
||||||
|
|
||||||
// delete limits with amount 0:
|
// delete limits with amount 0:
|
||||||
BudgetLimit::where('amount', 0)->delete();
|
BudgetLimit::where('amount', 0)->delete();
|
||||||
|
|
||||||
@@ -162,7 +148,7 @@ class BudgetRepository implements BudgetRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function getJournals(Budget $budget, LimitRepetition $repetition = null, $take = 50)
|
public function getJournals(Budget $budget, LimitRepetition $repetition = null, $take = 50)
|
||||||
{
|
{
|
||||||
$offset = intval(\Input::get('page')) > 0 ? intval(\Input::get('page')) * $take : 0;
|
$offset = intval(Input::get('page')) > 0 ? intval(Input::get('page')) * $take : 0;
|
||||||
|
|
||||||
|
|
||||||
$setQuery = $budget->transactionJournals()->withRelevantData()->take($take)->offset($offset)
|
$setQuery = $budget->transactionJournals()->withRelevantData()->take($take)->offset($offset)
|
||||||
|
@@ -137,7 +137,7 @@ class JournalRepository implements JournalRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function getWithDate($id, Carbon $date)
|
public function getWithDate($id, Carbon $date)
|
||||||
{
|
{
|
||||||
return Auth::user()->transactionjournals()->where('id', $id)->where('date', $date->format('Y-m-d'))->first();
|
return Auth::user()->transactionjournals()->where('id', $id)->where('date', $date->format('Y-m-d 00:00:00'))->first();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -379,14 +379,19 @@ class JournalRepository implements JournalRepositoryInterface
|
|||||||
$to = Account::find($data['account_to_id']);
|
$to = Account::find($data['account_to_id']);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (is_null($to->id)) {
|
if (is_null($to) || (!is_null($to) && is_null($to->id))) {
|
||||||
Log::error('"to"-account is null, so we cannot continue!');
|
Log::error('"to"-account is null, so we cannot continue!');
|
||||||
App::abort(500, '"to"-account is null, so we cannot continue!');
|
App::abort(500, '"to"-account is null, so we cannot continue!');
|
||||||
|
// @codeCoverageIgnoreStart
|
||||||
}
|
}
|
||||||
if (is_null($from->id)) {
|
// @codeCoverageIgnoreEnd
|
||||||
|
|
||||||
|
if (is_null($from) || (!is_null($from) && is_null($from->id))) {
|
||||||
Log::error('"from"-account is null, so we cannot continue!');
|
Log::error('"from"-account is null, so we cannot continue!');
|
||||||
App::abort(500, '"from"-account is null, so we cannot continue!');
|
App::abort(500, '"from"-account is null, so we cannot continue!');
|
||||||
|
// @codeCoverageIgnoreStart
|
||||||
}
|
}
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
|
|
||||||
return [$from, $to];
|
return [$from, $to];
|
||||||
}
|
}
|
||||||
|
@@ -145,14 +145,20 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface
|
|||||||
/**
|
/**
|
||||||
* Set all piggy banks to order 0.
|
* Set all piggy banks to order 0.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public function reset()
|
public function reset()
|
||||||
{
|
{
|
||||||
DB::table('piggy_banks')
|
// split query to make it work in sqlite:
|
||||||
->leftJoin('accounts', 'accounts.id', '=', 'piggy_banks.id')
|
$set = PiggyBank::
|
||||||
->where('accounts.user_id', Auth::user()->id)
|
leftJoin('accounts', 'accounts.id', '=', 'piggy_banks.id')
|
||||||
->update(['order' => 0, 'piggy_banks.updated_at' => DB::Raw('NOW()')]);
|
->where('accounts.user_id', Auth::user()->id)->get(['piggy_banks.*']);
|
||||||
|
foreach ($set as $e) {
|
||||||
|
$e->order = 0;
|
||||||
|
$e->save();
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -9,6 +9,7 @@ use FireflyIII\Models\Reminder;
|
|||||||
/**
|
/**
|
||||||
* Class PiggyBankPart
|
* Class PiggyBankPart
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Collection
|
* @package FireflyIII\Collection
|
||||||
*/
|
*/
|
||||||
class PiggyBankPart
|
class PiggyBankPart
|
||||||
|
@@ -20,7 +20,7 @@ class ReminderRepository implements ReminderRepositoryInterface
|
|||||||
protected $helper;
|
protected $helper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* @codeCoverageIgnore
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
@@ -52,6 +52,7 @@ class TagRepository implements TagRepositoryInterface
|
|||||||
|
|
||||||
$withdrawals = $tag->transactionjournals()->where('transaction_type_id', $withdrawal->id)->count();
|
$withdrawals = $tag->transactionjournals()->where('transaction_type_id', $withdrawal->id)->count();
|
||||||
$transfers = $tag->transactionjournals()->where('transaction_type_id', $transfer->id)->count();
|
$transfers = $tag->transactionjournals()->where('transaction_type_id', $transfer->id)->count();
|
||||||
|
$deposits = $tag->transactionjournals()->where('transaction_type_id', $deposit->id)->count();
|
||||||
|
|
||||||
if ($tag->tagMode == 'balancingAct') {
|
if ($tag->tagMode == 'balancingAct') {
|
||||||
|
|
||||||
@@ -73,39 +74,47 @@ class TagRepository implements TagRepositoryInterface
|
|||||||
}
|
}
|
||||||
if ($tag->tagMode == 'advancePayment') {
|
if ($tag->tagMode == 'advancePayment') {
|
||||||
|
|
||||||
|
// advance payments cannot accept transfers:
|
||||||
|
if ($journal->transaction_type_id == $transfer->id) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// only if this is the only withdrawal
|
// the first transaction to be attached to this
|
||||||
if ($journal->transaction_type_id == $withdrawal->id && $withdrawals < 1) {
|
// tag is attached just like that:
|
||||||
|
if ($withdrawals < 1 && $deposits < 1) {
|
||||||
$journal->tags()->save($tag);
|
$journal->tags()->save($tag);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// only if this is a deposit.
|
// if withdrawal and already has a withdrawal, return false:
|
||||||
if ($journal->transaction_type_id == $deposit->id) {
|
if ($journal->transaction_type_id == $withdrawal->id && $withdrawals == 1) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// if this is a deposit, account must match the current only journal
|
// if already has transaction journals, must match ALL asset account id's:
|
||||||
// (if already present):
|
if ($deposits > 0 || $withdrawals == 1) {
|
||||||
$currentWithdrawal = $tag->transactionjournals()->where('transaction_type_id', $withdrawal->id)->first();
|
$match = true;
|
||||||
|
/** @var TransactionJournal $check */
|
||||||
if ($currentWithdrawal && $currentWithdrawal->assetAccount->id == $journal->assetAccount->id) {
|
foreach ($tag->transactionjournals as $check) {
|
||||||
|
if ($check->assetAccount->id != $journal->assetAccount->id) {
|
||||||
|
$match = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($match) {
|
||||||
$journal->tags()->save($tag);
|
$journal->tags()->save($tag);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
|
||||||
if (is_null($currentWithdrawal)) {
|
|
||||||
$journal->tags()->save($tag);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// @codeCoverageIgnoreStart
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Tag $tag
|
* @param Tag $tag
|
||||||
|
@@ -7,6 +7,7 @@ use Validator;
|
|||||||
/**
|
/**
|
||||||
* Class Registrar
|
* Class Registrar
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Services
|
* @package FireflyIII\Services
|
||||||
*/
|
*/
|
||||||
class Registrar implements RegistrarContract
|
class Registrar implements RegistrarContract
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace FireflyIII\Support;
|
namespace FireflyIII\Support;
|
||||||
|
|
||||||
use Cache;
|
|
||||||
use FireflyIII\Models\Transaction;
|
use FireflyIII\Models\Transaction;
|
||||||
use FireflyIII\Models\TransactionCurrency;
|
use FireflyIII\Models\TransactionCurrency;
|
||||||
use FireflyIII\Models\TransactionJournal;
|
use FireflyIII\Models\TransactionJournal;
|
||||||
@@ -39,17 +38,10 @@ class Amount
|
|||||||
if (defined('FFCURRENCYSYMBOL')) {
|
if (defined('FFCURRENCYSYMBOL')) {
|
||||||
return FFCURRENCYSYMBOL;
|
return FFCURRENCYSYMBOL;
|
||||||
}
|
}
|
||||||
if (\Cache::has('FFCURRENCYSYMBOL')) {
|
|
||||||
define('FFCURRENCYSYMBOL', \Cache::get('FFCURRENCYSYMBOL'));
|
|
||||||
|
|
||||||
return FFCURRENCYSYMBOL;
|
|
||||||
}
|
|
||||||
|
|
||||||
$currencyPreference = Prefs::get('currencyPreference', 'EUR');
|
$currencyPreference = Prefs::get('currencyPreference', 'EUR');
|
||||||
$currency = TransactionCurrency::whereCode($currencyPreference->data)->first();
|
$currency = TransactionCurrency::whereCode($currencyPreference->data)->first();
|
||||||
|
|
||||||
\Cache::forever('FFCURRENCYSYMBOL', $currency->symbol);
|
|
||||||
|
|
||||||
define('FFCURRENCYSYMBOL', $currency->symbol);
|
define('FFCURRENCYSYMBOL', $currency->symbol);
|
||||||
|
|
||||||
return $currency->symbol;
|
return $currency->symbol;
|
||||||
@@ -160,7 +152,6 @@ class Amount
|
|||||||
$currency = TransactionCurrency::whereCode($currencyPreference->data)->first();
|
$currency = TransactionCurrency::whereCode($currencyPreference->data)->first();
|
||||||
if ($currency) {
|
if ($currency) {
|
||||||
|
|
||||||
Cache::forever('FFCURRENCYCODE', $currency->code);
|
|
||||||
define('FFCURRENCYCODE', $currency->code);
|
define('FFCURRENCYCODE', $currency->code);
|
||||||
|
|
||||||
return $currency->code;
|
return $currency->code;
|
||||||
|
@@ -7,6 +7,7 @@ use Illuminate\Support\Facades\Facade;
|
|||||||
/**
|
/**
|
||||||
* Class Amount
|
* Class Amount
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Support\Facades
|
* @package FireflyIII\Support\Facades
|
||||||
*/
|
*/
|
||||||
class Amount extends Facade
|
class Amount extends Facade
|
||||||
|
@@ -7,6 +7,7 @@ use Illuminate\Support\Facades\Facade;
|
|||||||
/**
|
/**
|
||||||
* Class Amount
|
* Class Amount
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Support\Facades
|
* @package FireflyIII\Support\Facades
|
||||||
*/
|
*/
|
||||||
class ExpandedForm extends Facade
|
class ExpandedForm extends Facade
|
||||||
|
@@ -7,6 +7,7 @@ use Illuminate\Support\Facades\Facade;
|
|||||||
/**
|
/**
|
||||||
* Class Navigation
|
* Class Navigation
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Support\Facades
|
* @package FireflyIII\Support\Facades
|
||||||
*/
|
*/
|
||||||
class Navigation extends Facade
|
class Navigation extends Facade
|
||||||
|
@@ -7,6 +7,7 @@ use Illuminate\Support\Facades\Facade;
|
|||||||
/**
|
/**
|
||||||
* Class Preferences
|
* Class Preferences
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Support\Facades
|
* @package FireflyIII\Support\Facades
|
||||||
*/
|
*/
|
||||||
class Preferences extends Facade
|
class Preferences extends Facade
|
||||||
|
@@ -7,6 +7,7 @@ use Illuminate\Support\Facades\Facade;
|
|||||||
/**
|
/**
|
||||||
* Class Steam
|
* Class Steam
|
||||||
*
|
*
|
||||||
|
* @codeCoverageIgnore
|
||||||
* @package FireflyIII\Support\Facades
|
* @package FireflyIII\Support\Facades
|
||||||
*/
|
*/
|
||||||
class Steam extends Facade
|
class Steam extends Facade
|
||||||
|
42
app/Support/Twig/Translation.php
Normal file
42
app/Support/Twig/Translation.php
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace FireflyIII\Support\Twig;
|
||||||
|
|
||||||
|
use FireflyIII\Models\LimitRepetition;
|
||||||
|
use Twig_Extension;
|
||||||
|
use Twig_SimpleFilter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Budget
|
||||||
|
*
|
||||||
|
* @package FireflyIII\Support\Twig
|
||||||
|
*/
|
||||||
|
class Translation extends Twig_Extension
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function getFilters()
|
||||||
|
{
|
||||||
|
$filters = [];
|
||||||
|
|
||||||
|
$filters[] = new Twig_SimpleFilter(
|
||||||
|
'_', function ($name) {
|
||||||
|
|
||||||
|
return trans('firefly.'.$name);
|
||||||
|
|
||||||
|
}, ['is_safe' => ['html']]
|
||||||
|
);
|
||||||
|
|
||||||
|
return $filters;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getName()
|
||||||
|
{
|
||||||
|
return 'FireflyIII\Support\Twig\Translation';
|
||||||
|
}
|
||||||
|
}
|
10
composer.lock
generated
10
composer.lock
generated
@@ -943,16 +943,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "laravel/framework",
|
"name": "laravel/framework",
|
||||||
"version": "v5.0.28",
|
"version": "v5.0.29",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/laravel/framework.git",
|
"url": "https://github.com/laravel/framework.git",
|
||||||
"reference": "06a09429322cf53e5bd4587db1060f02a291562e"
|
"reference": "aa7046645e094b0134a4125cce6694f4b076ac62"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/laravel/framework/zipball/06a09429322cf53e5bd4587db1060f02a291562e",
|
"url": "https://api.github.com/repos/laravel/framework/zipball/aa7046645e094b0134a4125cce6694f4b076ac62",
|
||||||
"reference": "06a09429322cf53e5bd4587db1060f02a291562e",
|
"reference": "aa7046645e094b0134a4125cce6694f4b076ac62",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -1065,7 +1065,7 @@
|
|||||||
"framework",
|
"framework",
|
||||||
"laravel"
|
"laravel"
|
||||||
],
|
],
|
||||||
"time": "2015-04-21 01:44:32"
|
"time": "2015-05-08 12:57:10"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "league/commonmark",
|
"name": "league/commonmark",
|
||||||
|
@@ -119,6 +119,6 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'pretend' => false,
|
'pretend' => env('EMAIL_PRETEND', false),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@@ -3,7 +3,8 @@ google.setOnLoadCallback(drawChart);
|
|||||||
|
|
||||||
function drawChart() {
|
function drawChart() {
|
||||||
googleLineChart('chart/home/account', 'accounts-chart');
|
googleLineChart('chart/home/account', 'accounts-chart');
|
||||||
googleColumnChart('chart/home/budgets', 'budgets-chart');
|
//googleColumnChart('chart/home/budgets', 'budgets-chart');
|
||||||
|
googleStackedColumnChart('chart/home/budgets', 'budgets-chart');
|
||||||
googleColumnChart('chart/home/categories', 'categories-chart');
|
googleColumnChart('chart/home/categories', 'categories-chart');
|
||||||
googlePieChart('chart/home/bills', 'bills-chart');
|
googlePieChart('chart/home/bills', 'bills-chart');
|
||||||
getBoxAmounts();
|
getBoxAmounts();
|
||||||
|
@@ -1,14 +1,16 @@
|
|||||||
if (typeof(google) != 'undefined') {
|
if (typeof(google) != 'undefined') {
|
||||||
google.setOnLoadCallback(drawChart);
|
google.setOnLoadCallback(drawChart);
|
||||||
function drawChart() {
|
|
||||||
googleColumnChart('chart/reports/income-expenses/' + year, 'income-expenses-chart');
|
|
||||||
googleColumnChart('chart/reports/income-expenses-sum/' + year, 'income-expenses-sum-chart')
|
|
||||||
|
|
||||||
googleStackedColumnChart('chart/budgets/spending/' + year, 'budgets');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function drawChart() {
|
||||||
|
googleColumnChart('chart/reports/income-expenses/' + year, 'income-expenses-chart');
|
||||||
|
googleColumnChart('chart/reports/income-expenses-sum/' + year, 'income-expenses-sum-chart')
|
||||||
|
|
||||||
|
googleStackedColumnChart('chart/budgets/spending/' + year, 'budgets');
|
||||||
|
}
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
$('.openModal').on('click', openModal);
|
$('.openModal').on('click', openModal);
|
||||||
includeSharedToggle();
|
includeSharedToggle();
|
||||||
|
12
resources/lang/en/firefly.php
Normal file
12
resources/lang/en/firefly.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
return [
|
||||||
|
'welcome' => 'Welcome to Firefly!',
|
||||||
|
'mainTitle' => 'What\'s playing?',
|
||||||
|
'close' => 'Clone',
|
||||||
|
'pleaseHold' => 'Please hold...',
|
||||||
|
'mandatoryFields' => 'Mandatory fields',
|
||||||
|
'optionalFields' => 'Optional fields',
|
||||||
|
'options' => 'Options',
|
||||||
|
'something' => 'Something!'
|
||||||
|
|
||||||
|
];
|
@@ -9,7 +9,7 @@
|
|||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa {{ subTitleIcon }}"></i> Mandatory fields
|
<i class="fa {{ subTitleIcon }}"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.text('name') }}
|
{{ ExpandedForm.text('name') }}
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
{% if what == 'asset' %}
|
{% if what == 'asset' %}
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
<i class="fa fa-smile-o"></i> {{ 'optionalFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
||||||
@@ -34,11 +34,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- panel for options -->
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('create','account') }}
|
{{ ExpandedForm.optionsList('create','account') }}
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa {{ subTitleIcon }}"></i> Mandatory fields
|
<i class="fa {{ subTitleIcon }}"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.text('name') }}
|
{{ ExpandedForm.text('name') }}
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
<i class="fa fa-smile-o"></i> {{ 'optionalFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{% if account.accounttype.type == 'Default account' or account.accounttype.type == 'Asset account' %}
|
{% if account.accounttype.type == 'Default account' or account.accounttype.type == 'Asset account' %}
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
<!-- panel for options -->
|
<!-- panel for options -->
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('update','account') }}
|
{{ ExpandedForm.optionsList('update','account') }}
|
||||||
|
@@ -5,10 +5,9 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
<div class="col-lg-6 col-md-12 col-sm-6">
|
||||||
<!-- panel for mandatory fields -->
|
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-exclamation-circle"></i> Mandatory fields
|
<i class="fa fa-exclamation-circle"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.text('name') }}
|
{{ ExpandedForm.text('name') }}
|
||||||
@@ -22,10 +21,9 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
<div class="col-lg-6 col-md-12 col-sm-6">
|
||||||
<!-- panel for optional fields -->
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
<i class="fa fa-smile-o"></i> {{ 'optionalFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.integer('skip',0) }}
|
{{ ExpandedForm.integer('skip',0) }}
|
||||||
@@ -37,7 +35,7 @@
|
|||||||
<!-- panel for options -->
|
<!-- panel for options -->
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('create','bill') }}
|
{{ ExpandedForm.optionsList('create','bill') }}
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
<div class="col-lg-6 col-md-12 col-sm-6">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-exclamation-circle"></i> Mandatory fields
|
<i class="fa fa-exclamation-circle"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.text('name') }}
|
{{ ExpandedForm.text('name') }}
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
<div class="col-lg-6 col-md-12 col-sm-6">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
<i class="fa fa-smile-o"></i> {{ 'optionalFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.integer('skip') }}
|
{{ ExpandedForm.integer('skip') }}
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('update','bill') }}
|
{{ ExpandedForm.optionsList('update','bill') }}
|
||||||
|
@@ -25,3 +25,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% block styles %}
|
||||||
|
<link rel="stylesheet" href="css/bootstrap-sortable.css" type="text/css" media="all" />
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block scripts %}
|
||||||
|
<script type="text/javascript" src="js/bootstrap-sortable.js"></script>
|
||||||
|
{% endblock %}
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-exclamation"></i> Mandatory fields
|
<i class="fa fa-exclamation"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.text('name') }}
|
{{ ExpandedForm.text('name') }}
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
<!-- panel for options -->
|
<!-- panel for options -->
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('create','budget') }}
|
{{ ExpandedForm.optionsList('create','budget') }}
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
<div class="col-lg-6 col-md-12 col-sm-6">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-fw fa-exclamation"></i> Mandatory fields
|
<i class="fa fa-fw fa-exclamation"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.checkbox('active') }}
|
{{ ExpandedForm.checkbox('active') }}
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
<!-- panel for options -->
|
<!-- panel for options -->
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('update','budget') }}
|
{{ ExpandedForm.optionsList('update','budget') }}
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-exclamation"></i> Mandatory fields
|
<i class="fa fa-exclamation"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.text('name') }}
|
{{ ExpandedForm.text('name') }}
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
<!-- panel for options -->
|
<!-- panel for options -->
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('create','category') }}
|
{{ ExpandedForm.optionsList('create','category') }}
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-exclamation"></i> Mandatory fields
|
<i class="fa fa-exclamation"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.text('name') }}
|
{{ ExpandedForm.text('name') }}
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
<!-- panel for options -->
|
<!-- panel for options -->
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('update','category') }}
|
{{ ExpandedForm.optionsList('update','category') }}
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa {{ subTitleIcon }}"></i> Mandatory fields
|
<i class="fa {{ subTitleIcon }}"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.text('name',null,{'maxlength' : 48}) }}
|
{{ ExpandedForm.text('name',null,{'maxlength' : 48}) }}
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
<!-- panel for options -->
|
<!-- panel for options -->
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('create','currency') }}
|
{{ ExpandedForm.optionsList('create','currency') }}
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa {{ subTitleIcon }}"></i> Mandatory fields
|
<i class="fa {{ subTitleIcon }}"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.text('name',null,{'maxlength' : 48}) }}
|
{{ ExpandedForm.text('name',null,{'maxlength' : 48}) }}
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
<!-- panel for options -->
|
<!-- panel for options -->
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('update','currency') }}
|
{{ ExpandedForm.optionsList('update','currency') }}
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
{% if count == 0 %}
|
{% if count == 0 %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||||
<p class="lead">Welcome to Firefly III.</p>
|
<p class="lead">{{ 'welcome'|_ }}</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Create a new asset account to get started.
|
Create a new asset account to get started.
|
||||||
|
@@ -89,15 +89,15 @@
|
|||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span>
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">{{ 'close'|_ }}</span>
|
||||||
</button>
|
</button>
|
||||||
<h4 class="modal-title" id="helpTitle">Please hold...</h4>
|
<h4 class="modal-title" id="helpTitle">{{ 'pleaseHold'|_ }}</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body" id="helpBody">
|
<div class="modal-body" id="helpBody">
|
||||||
<i class="fa fa-refresh fa-spin"></i>
|
<i class="fa fa-refresh fa-spin"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped sortable">
|
||||||
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th> </th>
|
<th data-defaultsort="disabled"> </th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Matches on</th>
|
<th>Matches on</th>
|
||||||
<th colspan="2">Matching amount</th>
|
<th colspan="2">Matching amount</th>
|
||||||
@@ -9,8 +10,9 @@
|
|||||||
<th>Is active</th>
|
<th>Is active</th>
|
||||||
<th>Will be automatched</th>
|
<th>Will be automatched</th>
|
||||||
<th>Repeats every</th>
|
<th>Repeats every</th>
|
||||||
<th> </th>
|
<th data-defaultsort="disabled"> </th>
|
||||||
</tr>
|
</tr></thead>
|
||||||
|
<tbody>
|
||||||
{% for entry in bills %}
|
{% for entry in bills %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@@ -22,46 +24,52 @@
|
|||||||
<td>
|
<td>
|
||||||
<a href="{{route('bills.show',entry.id)}}" title="{{ entry.name }}">{{ entry.name }}</a>
|
<a href="{{route('bills.show',entry.id)}}" title="{{ entry.name }}">{{ entry.name }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td data-value="{{ entry.match }}">
|
||||||
{% for match in entry.match|split(',') %}
|
{% for match in entry.match|split(',') %}
|
||||||
<span class="label label-info">{{ match }}</span>
|
<span class="label label-info">{{ match }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td data-value="{{ entry.amount_min }}">
|
||||||
{{ entry.amount_min|formatAmount }}
|
{{ entry.amount_min|formatAmount }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td data-value="{{ entry.amount_max }}">
|
||||||
{{ entry.amount_max|formatAmount }}
|
{{ entry.amount_max|formatAmount }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
{% if entry.lastFoundMatch %}
|
{% if entry.lastFoundMatch %}
|
||||||
|
<td data-value="{{ entry.lastFoundMatch.format('U') }}">
|
||||||
{{entry.lastFoundMatch.format('j F Y')}}
|
{{entry.lastFoundMatch.format('j F Y')}}
|
||||||
|
</td>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<td data-value="0">
|
||||||
<em>Unknown</em>
|
<em>Unknown</em>
|
||||||
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{% if entry.nextExpectedMatch%}
|
{% if entry.nextExpectedMatch%}
|
||||||
|
<td data-value="{{entry.nextExpectedMatch.format('U')}}">
|
||||||
{{entry.nextExpectedMatch.format('j F Y')}}
|
{{entry.nextExpectedMatch.format('j F Y')}}
|
||||||
|
</td>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<td data-value="0">
|
||||||
<em>Unknown</em>
|
<em>Unknown</em>
|
||||||
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
|
||||||
<td>
|
<td data-value="{{ entry.active }}">
|
||||||
{% if entry.active %}
|
{% if entry.active %}
|
||||||
<i class="fa fa-fw fa-check"></i>
|
<i class="fa fa-fw fa-check"></i>
|
||||||
{% else %}
|
{% else %}
|
||||||
<i class="fa fa-fw fa-ban"></i>
|
<i class="fa fa-fw fa-ban"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td data-value="{{ entry.automatch }}">
|
||||||
{% if entry.automatch %}
|
{% if entry.automatch %}
|
||||||
<i class="fa fa-fw fa-check"></i>
|
<i class="fa fa-fw fa-check"></i>
|
||||||
{% else %}
|
{% else %}
|
||||||
<i class="fa fa-fw fa-ban"></i>
|
<i class="fa fa-fw fa-ban"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td data-value="{{ entry.repeat_freq }}{{ entry.skip }}">
|
||||||
{{ entry.repeat_freq }}
|
{{ entry.repeat_freq }}
|
||||||
{% if entry.skip > 0 %}
|
{% if entry.skip > 0 %}
|
||||||
skips over {{entry.skip}}
|
skips over {{entry.skip}}
|
||||||
@@ -75,4 +83,5 @@
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
<div class="col-lg-6 col-md-12 col-sm-6">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-fw fa-exclamation"></i> Mandatory fields
|
<i class="fa fa-fw fa-exclamation"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
||||||
@@ -20,10 +20,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
<div class="col-lg-6 col-md-12 col-sm-12">
|
||||||
<!-- panel for optional fields -->
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
<i class="fa fa-smile-o"></i> {{ 'optionalFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.date('targetdate') }}
|
{{ ExpandedForm.date('targetdate') }}
|
||||||
@@ -35,7 +34,7 @@
|
|||||||
<!-- panel for options -->
|
<!-- panel for options -->
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('create','piggy bank') }}
|
{{ ExpandedForm.optionsList('create','piggy bank') }}
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
<div class="col-lg-6 col-md-12 col-sm-6">
|
<div class="col-lg-6 col-md-12 col-sm-6">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-fw fa-exclamation"></i> Mandatory fields
|
<i class="fa fa-fw fa-exclamation"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
||||||
@@ -23,10 +23,9 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
<div class="col-lg-6 col-md-12 col-sm-12">
|
||||||
<!-- panel for optional fields -->
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
<i class="fa fa-smile-o"></i> {{ 'optionalFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.date('targetdate') }}
|
{{ ExpandedForm.date('targetdate') }}
|
||||||
@@ -38,7 +37,7 @@
|
|||||||
<!-- panel for options -->
|
<!-- panel for options -->
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('update','piggy bank') }}
|
{{ ExpandedForm.optionsList('update','piggy bank') }}
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<div class="col-lg-5 col-md-5 col-sm-12">
|
<div class="col-lg-5 col-md-5 col-sm-12">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-tag"></i> Mandatory fields
|
<i class="fa fa-tag"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.text('tag') }}
|
{{ ExpandedForm.text('tag') }}
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
<i class="fa fa-smile-o"></i> {{ 'optionalFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.date('date') }}
|
{{ ExpandedForm.date('date') }}
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
<!-- panel for options -->
|
<!-- panel for options -->
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('create','tag') }}
|
{{ ExpandedForm.optionsList('create','tag') }}
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
<div class="col-lg-5 col-md-5 col-sm-12">
|
<div class="col-lg-5 col-md-5 col-sm-12">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-tag"></i> Mandatory fields
|
<i class="fa fa-tag"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.text('tag') }}
|
{{ ExpandedForm.text('tag') }}
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
<i class="fa fa-smile-o"></i> {{ 'optionalFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.date('date') }}
|
{{ ExpandedForm.date('date') }}
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
<!-- panel for options -->
|
<!-- panel for options -->
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('update','tag') }}
|
{{ ExpandedForm.optionsList('update','tag') }}
|
||||||
|
@@ -6,10 +6,9 @@
|
|||||||
<input type="hidden" name="what" value="{{ what }}" />
|
<input type="hidden" name="what" value="{{ what }}" />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
<div class="col-lg-6 col-md-12 col-sm-12">
|
||||||
<!-- panel for mandatory fields -->
|
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-exclamation-circle"></i> Mandatory fields
|
<i class="fa fa-exclamation-circle"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<!-- DESCRIPTION ALWAYS AVAILABLE -->
|
<!-- DESCRIPTION ALWAYS AVAILABLE -->
|
||||||
@@ -46,10 +45,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
<div class="col-lg-6 col-md-12 col-sm-12">
|
||||||
<!-- panel for optional fields -->
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
<i class="fa fa-smile-o"></i> {{ 'optionalFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<!-- BUDGET ONLY WHEN CREATING A WITHDRAWAL -->
|
<!-- BUDGET ONLY WHEN CREATING A WITHDRAWAL -->
|
||||||
@@ -73,7 +71,7 @@
|
|||||||
<!-- panel for options -->
|
<!-- panel for options -->
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('create','transaction') }}
|
{{ ExpandedForm.optionsList('create','transaction') }}
|
||||||
|
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||||
<!-- panel for mandatory fields -->
|
|
||||||
<div class="panel panel-danger">
|
<div class="panel panel-danger">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-exclamation-circle"></i> Destroy "{{ journal.description }}"
|
<i class="fa fa-exclamation-circle"></i> Destroy "{{ journal.description }}"
|
||||||
|
@@ -8,10 +8,9 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
<div class="col-lg-6 col-md-12 col-sm-12">
|
||||||
<!-- panel for mandatory fields -->
|
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-exclamation-circle"></i> Mandatory fields
|
<i class="fa fa-exclamation-circle"></i> {{ 'mandatoryFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<!-- ALWAYS AVAILABLE -->
|
<!-- ALWAYS AVAILABLE -->
|
||||||
@@ -48,10 +47,9 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
<div class="col-lg-6 col-md-12 col-sm-12">
|
||||||
<!-- panel for optional fields -->
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-smile-o"></i> Optional fields
|
<i class="fa fa-smile-o"></i> {{ 'optionalFields'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<!-- BUDGET ONLY WHEN CREATING A WITHDRAWAL -->
|
<!-- BUDGET ONLY WHEN CREATING A WITHDRAWAL -->
|
||||||
@@ -76,7 +74,7 @@
|
|||||||
<!-- panel for options -->
|
<!-- panel for options -->
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bolt"></i> Options
|
<i class="fa fa-bolt"></i> {{ 'options'|_ }}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ ExpandedForm.optionsList('update','transaction') }}
|
{{ ExpandedForm.optionsList('update','transaction') }}
|
||||||
|
@@ -42,7 +42,7 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
|||||||
Log::debug('Created new database.');
|
Log::debug('Created new database.');
|
||||||
touch($original);
|
touch($original);
|
||||||
Artisan::call('migrate');
|
Artisan::call('migrate');
|
||||||
copy($original, $copy);
|
|
||||||
|
|
||||||
// create EUR currency
|
// create EUR currency
|
||||||
/** @var TransactionCurrency $currency */
|
/** @var TransactionCurrency $currency */
|
||||||
@@ -50,8 +50,11 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
|||||||
$currency->code = 'EUR';
|
$currency->code = 'EUR';
|
||||||
$currency->save();
|
$currency->save();
|
||||||
Log::debug('Created new EUR currency.');
|
Log::debug('Created new EUR currency.');
|
||||||
|
copy($original, $copy);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (file_exists($copy)) {
|
if (file_exists($copy)) {
|
||||||
|
Log::debug('Copied copy back over original.');
|
||||||
copy($copy, $original);
|
copy($copy, $original);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
68
tests/controllers/AuthControllerTest.php
Normal file
68
tests/controllers/AuthControllerTest.php
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
<?php
|
||||||
|
use League\FactoryMuffin\Facade as FactoryMuffin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class AuthControllerTest
|
||||||
|
*/
|
||||||
|
class AuthControllerTest extends TestCase
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Sets up the fixture, for example, opens a network connection.
|
||||||
|
* This method is called before a test is executed.
|
||||||
|
*/
|
||||||
|
public function setUp()
|
||||||
|
{
|
||||||
|
parent::setUp();
|
||||||
|
FactoryMuffin::create('FireflyIII\User');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method is called before the first test of this test class is run.
|
||||||
|
*
|
||||||
|
* @since Method available since Release 3.4.0
|
||||||
|
*/
|
||||||
|
public static function setUpBeforeClass()
|
||||||
|
{
|
||||||
|
parent::setUpBeforeClass();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tears down the fixture, for example, closes a network connection.
|
||||||
|
* This method is called after a test is executed.
|
||||||
|
*/
|
||||||
|
public function tearDown()
|
||||||
|
{
|
||||||
|
parent::tearDown();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testPostRegister()
|
||||||
|
{
|
||||||
|
|
||||||
|
$data = [
|
||||||
|
'email' => 'test@example.com',
|
||||||
|
'password' => 'onetwothree',
|
||||||
|
'password_confirmation' => 'onetwothree',
|
||||||
|
'_token' => 'replaceMe'
|
||||||
|
];
|
||||||
|
$this->call('POST', '/auth/register', $data);
|
||||||
|
$this->assertResponseStatus(302);
|
||||||
|
$this->assertSessionHas('success');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testPostRegisterFails()
|
||||||
|
{
|
||||||
|
|
||||||
|
$data = [
|
||||||
|
'email' => 'test@example.com',
|
||||||
|
'password' => 'onetwothree',
|
||||||
|
'password_confirmation' => 'onetwofour',
|
||||||
|
'_token' => 'replaceMe'
|
||||||
|
];
|
||||||
|
$this->call('POST', '/auth/register', $data);
|
||||||
|
$this->assertResponseStatus(302);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user