X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fdashboard.inc;h=6bdc84c9985c4f288258f3c1b3a165744bf13438;hb=9cd7f3275f7ddac4944f6783a68a6478834fbe6d;hp=962152b24f816a8826ec0164b24c6c3176a014f2;hpb=e817d2423ce2da9f48548d4c91652a435df9fc23;p=fa-stable.git diff --git a/includes/dashboard.inc b/includes/dashboard.inc index 962152b2..6bdc84c9 100644 --- a/includes/dashboard.inc +++ b/includes/dashboard.inc @@ -181,7 +181,7 @@ function customer_top($today, $limit=10, $width="33", &$pg=null) AND tran_date >= '$begin1' AND tran_date <= '$today1' GROUP by d.debtor_no ORDER BY total DESC, d.debtor_no LIMIT $limit"; $result = db_query($sql); - $title = _("Top $limit customers in fiscal year"); + $title = sprintf(_("Top %s customers in fiscal year"), $limit); display_title($title); $th = array(_("Customer"), _("Amount")); start_table(TABLESTYLE, "width='$width%'"); @@ -218,7 +218,7 @@ function supplier_top($today, $limit=10, $width="33", &$pg=null) AND tran_date >= '$begin1' AND tran_date <= '$today1' GROUP by s.supplier_id ORDER BY total DESC, s.supplier_id LIMIT $limit"; $result = db_query($sql); - $title = _("Top $limit suppliers in fiscal year"); + $title = sprintf(_("Top %s suppliers in fiscal year"), $limit); display_title($title); $th = array(_("Supplier"), _("Amount")); start_table(TABLESTYLE, "width='$width%'"); @@ -279,11 +279,11 @@ function stock_top($today, $limit=10, $width="33", $type=0, &$pg=null) LIMIT $limit"; $result = db_query($sql); if ($type == 1) - $title = _("Top $limit Manufactured Items in fiscal year"); + $title = sprintf(_("Top %s Manufactured Items in fiscal year"), $limit); elseif ($type == 2) - $title = _("Top $limit Fixed Assets"); + $title = sprintf(_("Top %s Fixed Assets"), $limit); else - $title = _("Top $limit Sold Items in fiscal year"); + $title = sprintf(_("Top %s Sold Items in fiscal year"), $limit); display_title($title); if ($type == 0) $th = array(_("Item"), _("Sales"), _("Costs"), _("Quantity")); @@ -328,7 +328,7 @@ function dimension_top($today, $limit=10, $width="33", &$pg=null) (t.dimension_id = d.id OR t.dimension2_id = d.id) AND t.tran_date >= '$begin1' AND t.tran_date <= '$today1' GROUP BY d.id ORDER BY total DESC LIMIT $limit"; $result = db_query($sql, "Transactions could not be calculated"); - $title = _("Top $limit Dimensions in fiscal year"); + $title = sprintf(_("Top %s Dimensions in fiscal year"), $limit); display_title($title); $th = array(_("Dimension"), _("Amount")); start_table(TABLESTYLE, "width='$width%'");