Fix cron, tempoh >= tempohbayar for fasa 2
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user