From a1e211c9888398dac5b4c3dcd1bc50f65a277676 Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Sun, 5 Mar 2023 18:52:42 +0800 Subject: [PATCH] add wakil untuk ansuran --- app/Http/Controllers/GadaiController.php | 1 + app/Http/Controllers/TebusController.php | 1 + app/Transaction.php | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/GadaiController.php b/app/Http/Controllers/GadaiController.php index bd4e250..bea74e4 100644 --- a/app/Http/Controllers/GadaiController.php +++ b/app/Http/Controllers/GadaiController.php @@ -459,6 +459,7 @@ class GadaiController extends Controller 'duit_masuk' => $request->bayaran, 'created_at' => $current, 'bakiharga' => $baki_hargajualan, + 'nowakil' => (int)$request->nowakil ]); $transaction_upah = TransaksiKeuntungan::on('mysql7')->create([ diff --git a/app/Http/Controllers/TebusController.php b/app/Http/Controllers/TebusController.php index daa85f3..ba04abe 100644 --- a/app/Http/Controllers/TebusController.php +++ b/app/Http/Controllers/TebusController.php @@ -543,6 +543,7 @@ class TebusController extends Controller 'duit_masuk' => $harga_tebus, 'created_at' => $current, 'bakiharga' => $baki_hargajualan, + 'nowakil' => (int)$request->nowakil ]); } diff --git a/app/Transaction.php b/app/Transaction.php index cbb58a8..0dfd13e 100644 --- a/app/Transaction.php +++ b/app/Transaction.php @@ -14,7 +14,7 @@ class Transaction extends Model * @var array */ protected $fillable = [ - 'trans_type','norujukan','nokp','teller','kodcaw','duit_masuk','duit_keluar','created_at','bakiharga' + 'trans_type','norujukan','nokp','teller','kodcaw','duit_masuk','duit_keluar','created_at','bakiharga','nowakil' ]; /**