X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fdashboard.inc;h=9a5a9f4b5ce57e024ebc5292ffecdcfde36c7e31;hb=7e6e0807990447d2977b970c3a0fd28dc9250194;hp=9acfc45dd80b97e09b4b2560b4664ea7850c59d1;hpb=dfc8254c800df90e357cbdf9087d28d8999bcafa;p=fa-stable.git diff --git a/includes/dashboard.inc b/includes/dashboard.inc index 9acfc45d..9a5a9f4b 100644 --- a/includes/dashboard.inc +++ b/includes/dashboard.inc @@ -195,7 +195,7 @@ function customer_top($today, $limit=10, $width="33", &$pg=null) while ($myrow = db_fetch($result)) { alt_table_row_color($k); - $name = $myrow["debtor_no"]." ".$myrow["name"]; + $name = $myrow["debtor_no"]." ".htmlspecialchars_decode($myrow["name"]); label_cell($name); amount_cell($myrow['total']); if ($pg != null) @@ -232,7 +232,7 @@ function supplier_top($today, $limit=10, $width="33", &$pg=null) while ($myrow = db_fetch($result)) { alt_table_row_color($k); - $name = $myrow["supplier_id"]." ".$myrow["supp_name"]; + $name = $myrow["supplier_id"]." ".htmlspecialchars_decode($myrow["supp_name"]); label_cell($name); amount_cell($myrow['total']); if ($pg != null) @@ -272,7 +272,7 @@ function stock_top($today, $limit=10, $width="33", $type=0, &$pg=null) SUM(qty) AS qty FROM ".TB_PREF."stock_master AS s, ".TB_PREF."stock_moves AS m WHERE s.stock_id=m.stock_id "; if ($type == 1) - $sql .= "AND s.mb_flag='M' AND m.qty > 0 "; + $sql .= "AND s.mb_flag='M' AND m.type <> ".ST_CUSTDELIVERY." AND m.type <> ".ST_CUSTCREDIT." "; elseif ($type == 2) $sql .= "AND s.mb_flag='F' "; }