Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Some extensions.
James Cole8d982c1a902f
diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.phpindex a0c828a2c5..9eb08a7f94 100644--- a/app/Http/Controllers/HomeController.php+++ b/app/Http/Controllers/HomeController.php@@ -49,7 +49,7 @@ class HomeController extends Controller// check if all books are correct.$sum = floatval(Auth::user()->transactions()->sum('amount'));- if ($sum == 0) {+ if ($sum != 0) {Session::flash('error', 'Your transactions are unbalanced. This means a'. ' withdrawal, deposit or transfer was not stored properly. 'diff --git a/database/migrations/2015_03_29_174140_changes_for_336.php b/database/migrations/2015_03_29_174140_changes_for_336.phpnew file mode 100644index 0000000000..a1681111be--- /dev/null+++ b/database/migrations/2015_03_29_174140_changes_for_336.php@@ -0,0 +1,33 @@+<?php++use Illuminate\Database\Schema\Blueprint;+use Illuminate\Database\Migrations\Migration;++class ChangesFor336 extends Migration {++ /**+ * Run the migrations.+ *+ * @return void+ */+ public function up()+ {+ Schema::table(+ 'budgets', function (Blueprint $table) {+ $table->smallInteger('active',false,true)->default(1);++ }+ );+ }++ /**+ * Reverse the migrations.+ *+ * @return void+ */+ public function down()+ {+ //+ }++}diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.phpindex 4c2e245530..4fc3a0b3d2 100644--- a/database/seeds/DatabaseSeeder.php+++ b/database/seeds/DatabaseSeeder.php@@ -21,7 +21,7 @@ class DatabaseSeeder extends Seeder$this->call('TransactionCurrencySeeder');$this->call('TransactionTypeSeeder');- if (App::environment() == 'testing' || App::environment() == 'homestead') {+ if (App::environment() == 'testing' || App::environment() == 'homestead' || gethostname() == 'vagrant-firefly-iii') {$this->call('TestDataSeeder');}}