Fix requisitions report (can be found under receiving type = requisitions)

This commit is contained in:
jekkos-t520
2014-08-07 13:15:21 +02:00
parent e53265cca8
commit 55ad3a20c2

View File

@@ -29,9 +29,9 @@ class Detailed_receivings extends Report
{
$this->db->where('quantity_purchased < 0');
}
elseif ($inputs['receiving_type'] == 'requisition')
elseif ($inputs['receiving_type'] == 'requisitions')
{
$this->db->where('quantity_purchased = 0');
$this->db->having('items_purchased = 0');
}
$this->db->group_by('receiving_id');
$this->db->order_by('receiving_date');
@@ -65,6 +65,10 @@ class Detailed_receivings extends Report
{
$this->db->where('quantity_purchased < 0');
}
elseif ($inputs['receiving_type'] == 'requisitions')
{
$this->db->where('quantity_purchased = 0');
}
return $this->db->get()->row_array();
}
}