Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
SvbZ3r0 committed Dec 9, 2023
1 parent db95108 commit a50d67c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions erpnext/manufacturing/doctype/bom_creator/bom_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,20 +347,16 @@ def get_children(doctype=None, parent=None, **kwargs):
"amount",
"fetched_from_bom",
"bom_created",
"parent_row_no"
"parent_row_no",
]

query_filters = {
"fg_item": parent,
"parent": kwargs.parent_id,
}

if(kwargs.parent_row_no):
query_filters.update(
{
"parent_row_no": kwargs.parent_row_no
}
)
if kwargs.parent_row_no:
query_filters.update({"parent_row_no": kwargs.parent_row_no})

if kwargs.name:
query_filters["name"] = kwargs.name
Expand Down Expand Up @@ -466,8 +462,8 @@ def get_items_from_bom(bom, qty):
for i, item in enumerate(frappe.get_doc("BOM", bom).items):
items.append(
{
'item_code': item.item_code,
'qty': item.qty * flt(qty),
"item_code": item.item_code,
"qty": item.qty * flt(qty),
}
)
return items
Expand Down

0 comments on commit a50d67c

Please sign in to comment.