mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-25 00:44:03 -04:00
Fix requisitions report (can be found under receiving type = requisitions)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user