Update gross_profit.py
This commit is contained in:
parent
18bb431baa
commit
bee3b40725
@ -234,7 +234,6 @@ class GrossProfitGenerator(object):
|
|||||||
where a.item_code = %s and a.docstatus=1
|
where a.item_code = %s and a.docstatus=1
|
||||||
and modified <= %s
|
and modified <= %s
|
||||||
order by a.modified desc limit 1""", (item_code,self.filters.to_date))
|
order by a.modified desc limit 1""", (item_code,self.filters.to_date))
|
||||||
return flt(last_purchase_rate[0][0]) if last_purchase_rate else 0
|
|
||||||
else:
|
else:
|
||||||
last_purchase_rate = frappe.db.sql("""
|
last_purchase_rate = frappe.db.sql("""
|
||||||
select (a.base_rate / a.conversion_factor)
|
select (a.base_rate / a.conversion_factor)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user