mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-24 08:20:54 -04:00
Fix detailed sales report (#2967)
This commit is contained in:
@@ -145,20 +145,20 @@ class Detailed_sales extends Report
|
||||
foreach($data['summary'] as $key=>$value)
|
||||
{
|
||||
$this->db->select('
|
||||
name,
|
||||
category,
|
||||
quantity_purchased,
|
||||
item_location,
|
||||
item_number,
|
||||
description,
|
||||
subtotal,
|
||||
tax,
|
||||
total,
|
||||
cost,
|
||||
profit,
|
||||
discount,
|
||||
discount_type,
|
||||
sale_status');
|
||||
MAX(name) AS name,
|
||||
MAX(category) AS category,
|
||||
MAX(quantity_purchased) AS quantity_purchased,
|
||||
MAX(item_location) AS item_location,
|
||||
MAX(item_number) AS item_number,
|
||||
MAX(description) AS description,
|
||||
MAX(subtotal) AS subtotal,
|
||||
MAX(tax) AS tax,
|
||||
MAX(total) AS total,
|
||||
MAX(cost) AS cost,
|
||||
MAX(profit) AS profit,
|
||||
MAX(discount) AS discount,
|
||||
MAX(discount_type) AS discount_type,
|
||||
MAX(sale_status) AS sale_status');
|
||||
$this->db->from('sales_items_temp');
|
||||
if(count($inputs['definition_ids']) > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user