Fix cron, tempoh >= tempohbayar for fasa 2

This commit is contained in:
root
2023-01-12 00:24:31 +08:00
parent 88a4c3894d
commit 6ed88a908a
+2 -1
View File
@@ -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;