php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /var/www/html/fl/cron_job/ |
files >> /var/www/html/fl/cron_job/update_cicilan_customer.php |
<?php include "../konfig/koneksi.php"; $customer = mysql_query("SELECT * FROM customer"); $total_cicilan = 0; $tunggak = 0; while($r = mysql_fetch_array($customer)){ $list_orderan = mysql_query("SELECT * FROM list_orderan WHERE id_customer='$r[id_customer]' AND id_status_lo='2'"); //echo"SELECT * FROM list_orderan WHERE id_customer='$r[id_customer]' AND id_status_lo='2'"; while($d = mysql_fetch_array($list_orderan)){ $total_cicilan = $total_cicilan + ($d['cicilan'] * ($d['sisa']+$d['tunggak'])); $tunggak = $tunggak + $d['tunggak']; } mysql_query("UPDATE customer SET total_cicilan = '$total_cicilan', jumlah_tunggakan='$tunggak' WHERE id_customer='$r[id_customer]'"); } ?>y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`