* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * */ require_once('includes/common.php'); checkLogin('accounting'); require_once('includes/SI_Reports.php'); $title = 'Item Code Sales'; $reports = new SI_Reports(); $start_ts = 0; $end_ts = 0; if(isset($_REQUEST['start'])){ $start_ts = getTSFromInput($_REQUEST['start']); }elseif(isset($_REQUEST['start_ts'])){ $start_ts = $_REQUEST['start_ts']; }else{ $start_ts = mktime(0, 0, 0, date("n"), 1, date("Y")); } $next_start_ts = mktime(0, 0, 0, date("n", $start_ts) + 1, 1, date("Y", $start_ts)); $prev_start_ts = mktime(0, 0, 0, date("n", $start_ts) - 1, 1, date("Y", $start_ts)); if(isset($_REQUEST['end'])){ $end_ts = getTSFromInput($_REQUEST['end']) + 86399;
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * */ require_once('includes/common.php'); checkLogin('accounting'); require_once('includes/SI_Reports.php'); $title = 'Individual Gross'; $reports = new SI_Reports(); $start_ts = 0; $end_ts = 0; if(isset($_REQUEST['start'])){ $start_ts = getTSFromInput($_REQUEST['start']); }elseif(isset($_REQUEST['start_ts'])){ $start_ts = $_REQUEST['start_ts']; }else{ $start_ts = mktime(0, 0, 0, date("n"), 1, date("Y")); } $next_start_ts = mktime(0, 0, 0, date("n", $start_ts) + 1, 1, date("Y", $start_ts)); $prev_start_ts = mktime(0, 0, 0, date("n", $start_ts) - 1, 1, date("Y", $start_ts)); if(isset($_REQUEST['end'])){ $end_ts = getTSFromInput($_REQUEST['end']) + 86399;