mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Some extensions.
This commit is contained in:
@@ -49,7 +49,7 @@ class HomeController extends Controller
|
|||||||
|
|
||||||
// check if all books are correct.
|
// check if all books are correct.
|
||||||
$sum = floatval(Auth::user()->transactions()->sum('amount'));
|
$sum = floatval(Auth::user()->transactions()->sum('amount'));
|
||||||
if ($sum == 0) {
|
if ($sum != 0) {
|
||||||
Session::flash(
|
Session::flash(
|
||||||
'error', 'Your transactions are unbalanced. This means a'
|
'error', 'Your transactions are unbalanced. This means a'
|
||||||
. ' withdrawal, deposit or transfer was not stored properly. '
|
. ' withdrawal, deposit or transfer was not stored properly. '
|
||||||
|
33
database/migrations/2015_03_29_174140_changes_for_336.php
Normal file
33
database/migrations/2015_03_29_174140_changes_for_336.php
Normal file
@@ -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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@@ -21,7 +21,7 @@ class DatabaseSeeder extends Seeder
|
|||||||
$this->call('TransactionCurrencySeeder');
|
$this->call('TransactionCurrencySeeder');
|
||||||
$this->call('TransactionTypeSeeder');
|
$this->call('TransactionTypeSeeder');
|
||||||
|
|
||||||
if (App::environment() == 'testing' || App::environment() == 'homestead') {
|
if (App::environment() == 'testing' || App::environment() == 'homestead' || gethostname() == 'vagrant-firefly-iii') {
|
||||||
$this->call('TestDataSeeder');
|
$this->call('TestDataSeeder');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user