update sale item reoprt for item dis and foc

This commit is contained in:
Aung Myo
2017-12-05 18:19:18 +06:30
parent 97bb6ae211
commit f4a7e1baa0
3 changed files with 11 additions and 10 deletions

View File

@@ -646,7 +646,7 @@ end
def self.get_item_query()
query = Sale.select("acc.title as account_name,mi.account_id, i.item_instance_code as item_code,i.account_id as account_id, " +
"SUM(i.qty * i.unit_price) as grand_total,SUM(i.qty) as total_item," +
"SUM(i.qty * i.unit_price) as grand_total,SUM(i.qty) as total_item,i.qty as qty," +
"i.remark as status_type,"+
" i.unit_price as unit_price,i.product_name as product_name, mc.name as" +
" menu_category_name,mc.id as menu_category_id ")