Skip to content

Commit

Permalink
bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
tianrosandhy committed Jul 23, 2019
1 parent b8cba44 commit e669e14
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion application/models/Mdmutasi.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function get_current_mutasi($list, $iddiv=0){



$sql2 = query("SELECT id_master, id_divisi, SUM(jml) AS jml_kirim FROM cc_kirim $imp GROUP BY id_master");
$sql2 = query("SELECT id_master, id_divisi, SUM(jml) AS jml_kirim FROM cc_kirim $imp GROUP BY id_master, id_divisi");
foreach($sql2->result_array() as $row){
if($iddiv == 0){
if(isset($arr[$row['id_master']])){
Expand Down
2 changes: 1 addition & 1 deletion application/models/Mdreport.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function report_master($detail=0){

$sql3 = query("SELECT * FROM cc_kirim WHERE stat <> 9 ORDER BY tgl");
foreach($sql3->result_array() as $row3){
$tgl = strtotime($row3['tgl'] + $n);
$tgl = strtotime($row3['tgl']) + $n;
$arr[$row3['id_master']][$tgl]["kirim"] = $row3['jml'];
$arr[$row3['id_master']][$tgl]["ket"] = $row3['ket'];
$n++;
Expand Down
2 changes: 1 addition & 1 deletion application/models/Mdsetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function report_master($idproj, $detail=0){

$sql3 = query("SELECT * FROM cc_temp WHERE tb = 'cc_kirim' AND id_project = ".quote($idproj)." AND stat <> 9 ORDER BY tgl");
foreach($sql3->result_array() as $row3){
$tgl = strtotime($row3['tgl'] + $n);
$tgl = strtotime($row3['tgl']) + $n;
$arr[$row3['id_master']][$tgl]["kirim"] = $row3['jml'];
$arr[$row3['id_master']][$tgl]["ket"] = $row3['ket'];
$n++;
Expand Down
8 changes: 4 additions & 4 deletions application/views/laporan.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@
$n++;
}
else{
$masuk += $terima;
$keluar += $kirim;
$masuk += intval($terima);
$keluar += intval($kirim);
}
}

Expand Down Expand Up @@ -229,8 +229,8 @@
$n++;
}
else{
$masuk += $kirim;
$keluar += $jual;
$masuk += intval($kirim);
$keluar += intval($jual);
}
}

Expand Down

0 comments on commit e669e14

Please sign in to comment.