[fix] Fixed gross profit report due to removal of designation field from Sales Team table
This commit is contained in:
parent
42701b2160
commit
1901ca5a45
@ -221,8 +221,7 @@ class GrossProfitGenerator(object):
|
|||||||
item.item_code, item.item_name, item.description, item.warehouse,
|
item.item_code, item.item_name, item.description, item.warehouse,
|
||||||
item.item_group, item.brand, item.dn_detail, item.delivery_note,
|
item.item_group, item.brand, item.dn_detail, item.delivery_note,
|
||||||
item.qty, item.base_net_rate, item.base_net_amount, item.name as "item_row",
|
item.qty, item.base_net_rate, item.base_net_amount, item.name as "item_row",
|
||||||
sales.sales_person, sales.sales_designation, sales.allocated_amount,
|
sales.sales_person, sales.allocated_amount, sales.incentives
|
||||||
sales.incentives
|
|
||||||
from `tabSales Invoice` si
|
from `tabSales Invoice` si
|
||||||
inner join `tabSales Invoice Item` item on item.parent = si.name
|
inner join `tabSales Invoice Item` item on item.parent = si.name
|
||||||
left join `tabSales Team` sales on sales.parent = si.name
|
left join `tabSales Team` sales on sales.parent = si.name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user