diff --git a/app/Console/Commands/kemaskiniLelong.php b/app/Console/Commands/kemaskiniLelong.php index 2702e6a0..1226d3ed 100644 --- a/app/Console/Commands/kemaskiniLelong.php +++ b/app/Console/Commands/kemaskiniLelong.php @@ -10,6 +10,7 @@ use App\Models\TransaksiKeuntungan; use App\Models\LelongTebus; use App\Models\LogUser; use App\Models\User; +use Illuminate\Support\Facades\Http; class kemaskiniLelong extends Command { @@ -99,7 +100,7 @@ class kemaskiniLelong extends Command $total_untung_rebet = TransaksiKeuntungan::on('main')->where('norujukan',$lelongbid->norujukan)->sum('keuntungan_rebet'); $total_untung_asal = TransaksiKeuntungan::on('main')->where('norujukan',$lelongbid->norujukan)->sum('bayaran_keuntungan'); $beza_keuntungan = $total_untung_asal - $total_untung_rebet; - if($gadai->tempohbayar == $gadai->tempoh ){ + if($gadai->tempoh >= $gadai->tempohbayar ){ $keuntungan = 0.00; }else{ $jbg = $gadai->tempoh - $gadai->tempohbayar;