style: format code with black
This commit is contained in:
@@ -4,13 +4,18 @@ from erpnext.stock.stock_balance import get_indented_qty, update_bin_qty
|
||||
|
||||
|
||||
def execute():
|
||||
bin_details = frappe.db.sql("""
|
||||
bin_details = frappe.db.sql(
|
||||
"""
|
||||
SELECT item_code, warehouse
|
||||
FROM `tabBin`""",as_dict=1)
|
||||
FROM `tabBin`""",
|
||||
as_dict=1,
|
||||
)
|
||||
|
||||
for entry in bin_details:
|
||||
if not (entry.item_code and entry.warehouse):
|
||||
continue
|
||||
update_bin_qty(entry.get("item_code"), entry.get("warehouse"), {
|
||||
"indented_qty": get_indented_qty(entry.get("item_code"), entry.get("warehouse"))
|
||||
})
|
||||
update_bin_qty(
|
||||
entry.get("item_code"),
|
||||
entry.get("warehouse"),
|
||||
{"indented_qty": get_indented_qty(entry.get("item_code"), entry.get("warehouse"))},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user