removed white spaces
This commit is contained in:
parent
9961fb82d6
commit
5e994ddf65
@ -5,14 +5,12 @@ from __future__ import unicode_literals
|
|||||||
import frappe
|
import frappe
|
||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
|
|
||||||
def execute(filters=None):
|
def execute(filters=None):
|
||||||
if not filters: filters = {}
|
if not filters: filters = {}
|
||||||
columns = get_columns()
|
columns = get_columns()
|
||||||
data = get_bom_stock(filters)
|
data = get_bom_stock(filters)
|
||||||
return columns, data
|
return columns, data
|
||||||
|
|
||||||
|
|
||||||
def get_columns():
|
def get_columns():
|
||||||
"""return columns"""
|
"""return columns"""
|
||||||
columns = [
|
columns = [
|
||||||
@ -25,7 +23,6 @@ def get_columns():
|
|||||||
|
|
||||||
return columns
|
return columns
|
||||||
|
|
||||||
|
|
||||||
def get_bom_stock(filters):
|
def get_bom_stock(filters):
|
||||||
conditions = ""
|
conditions = ""
|
||||||
bom = filters.get("bom")
|
bom = filters.get("bom")
|
||||||
@ -57,5 +54,4 @@ def get_bom_stock(filters):
|
|||||||
WHERE
|
WHERE
|
||||||
bom_item.parent = '%s'
|
bom_item.parent = '%s'
|
||||||
|
|
||||||
GROUP BY bom_item.item_code""" %
|
GROUP BY bom_item.item_code""" % (conditions, bom))
|
||||||
(conditions, bom))
|
|
||||||
|
Loading…
Reference in New Issue
Block a user