update cron job lelong ujrah

This commit is contained in:
Nur Izzati Zulkifli
2023-12-19 22:46:10 +08:00
parent 4b426438d8
commit 94e696cd55
@@ -82,6 +82,8 @@ class kemaskiniLelongUjrah extends Command
$beza_keuntungan = $total_untung_asal - $total_untung_rebet;
if($gadai->tempohbayar == $gadai->tempoh ){
$keuntungan = 0.00;
$rounded_ujrah = 0.00;
$rounded_onepercent = 0.00;
}else{
//kiraan keuntungan ujrah
@@ -121,9 +123,13 @@ class kemaskiniLelongUjrah extends Command
$beza_keuntungan = $total_untung_asal - $total_untung_rebet;
if($gadai->tempohbayar == 12){
$keuntungan = 0.00;
$rounded_ujrah = 0.00;
$rounded_onepercent = 0.00;
}
elseif($gadai->tempohbayar == $gadai->tempoh ){
$keuntungan = 0.00;
$rounded_ujrah = 0.00;
$rounded_onepercent = 0.00;
}
else{