Skip to content

Commit

Permalink
fix cancellazione movimento. closes #255
Browse files Browse the repository at this point in the history
  • Loading branch information
madbob committed Feb 6, 2024
1 parent 54b7abb commit f46db92
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
6 changes: 6 additions & 0 deletions code/app/Console/Commands/FixDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Database\Schema\Blueprint;

use App\Gas;
use App\User;
Expand Down Expand Up @@ -64,5 +66,9 @@ public function handle()
$mod->identifier = 'shipping';
$mod->save();
}

Schema::table('invoices', function (Blueprint $table) {
$table->integer('payment_id')->nullable()->change();
});
}
}
4 changes: 1 addition & 3 deletions code/app/Http/Controllers/MovementsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,16 +262,14 @@ public function askDelete(Request $request, $id)
'password_protected' => true,
'text' => _i('Vuoi davvero eliminare il movimento<br>%s?', [$mov->printableName()]),
'extra' => [
'close-modal' => '.movement-modal',

/*
Se sono nel contesto di un utente/fornitore/GAS ricarica il
pannello coi bilanci, se sono nel pannello di gestione delle
quote utente ricarica la riga del relativo utente
*/
'reload-portion' => ['.balance-summary', '.holding-movement-' . $id],

'post-saved-function' => ['refreshFilter']
'post-saved-function' => ['closeAllModals', 'refreshFilter']
]
]);
}
Expand Down
2 changes: 1 addition & 1 deletion code/public/js/gasdotto.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion code/public/js/gasdotto.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion code/public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/js/gasdotto.js": "/js/gasdotto.js?id=72fd34340876f5d4c490bb9278c26dab",
"/js/gasdotto.js": "/js/gasdotto.js?id=44f2a5b7346983558f45b7b334c7f030",
"/css/gasdotto.css": "/css/gasdotto.css?id=f473d9704bc2c2380df5890184d297e1"
}
5 changes: 5 additions & 0 deletions code/resources/assets/js/callables.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ class Callables {

/* post-saved-function ****************************************************/

static closeAllModals()
{
$('.modal.fade.show').modal('hide');
}

static triggerPayment(form)
{
/*
Expand Down

0 comments on commit f46db92

Please sign in to comment.