Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sales Graph Missing Period Names
11-30-2017, 12:03 AM, (This post was last modified: 11-30-2017, 12:17 AM by VortecCPI.)
#1
Sales Graph Missing Period Names
Locale - USA

Main Menu > Sales > Sales Graphs

The periods are shown as numbers and I prefer them shown as dates.

Before:
   
   

After:
   
   

Code below:

//$GraphTitle .= ' ' . _('From Period') . ' ' . $_POST['FromPeriod'] . ' ' . _('to') . ' ' . $_POST['ToPeriod'] . "\n\r";

// Retrieve Period Date Names
$sql = "SELECT lastdate_in_period FROM periods WHERE periodno='" . $_POST['FromPeriod'] . "'";
$PeriodFromDate = MonthAndYearFromSQLDate(DB_fetch_row(DB_query($sql))[0]);
$sql = "SELECT lastdate_in_period FROM periods WHERE periodno='" . $_POST['ToPeriod'] . "'";
$PeriodToDate = MonthAndYearFromSQLDate(DB_fetch_row(DB_query($sql))[0]);
$GraphTitle .= ' ' . _('From Period') . ' ' . $PeriodFromDate . ' ' . _('to') . ' ' . $PeriodToDate . "\n\r";
https://www.linkedin.com/in/eclipsepaulbecker
Reply


Messages In This Thread
Sales Graph Missing Period Names - by VortecCPI - 11-30-2017, 12:03 AM
RE: Sales Graph Missing Period Names - by TurboPT - 01-08-2018, 03:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)