mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-27 18:58:02 -05:00
Tom git-svn-id: svn+ssh://jekkos@svn.code.sf.net/p/opensourcepos/code/@24 c3eb156b-1dc0-44e1-88ae-e38439141b53
31 lines
762 B
PHP
31 lines
762 B
PHP
<?php
|
|
require_once("report.php");
|
|
class Inventory_low extends Report
|
|
{
|
|
function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
public function getDataColumns()
|
|
{
|
|
return array($this->lang->line('reports_item_name'), $this->lang->line('reports_item_number'), $this->lang->line('reports_description'), $this->lang->line('reports_count'), $this->lang->line('reports_reorder_level'));
|
|
}
|
|
|
|
public function getData(array $inputs)
|
|
{
|
|
$this->db->select('name, item_number, quantity, reorder_level, description');
|
|
$this->db->from('items');
|
|
$this->db->where('quantity <= reorder_level and deleted=0');
|
|
$this->db->order_by('name');
|
|
|
|
return $this->db->get()->result_array();
|
|
|
|
}
|
|
|
|
public function getSummaryData(array $inputs)
|
|
{
|
|
return array();
|
|
}
|
|
}
|
|
?>
|