mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 12:39:18 +00:00
style: Remove leftout print statements
This commit is contained in:
@@ -46,14 +46,11 @@ def get_item_details(args, doc=None, overwrite_warehouse=True):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
args = process_args(args)
|
args = process_args(args)
|
||||||
print('warehouse', args.warehouse, '========')
|
|
||||||
item = frappe.get_cached_doc("Item", args.item_code)
|
item = frappe.get_cached_doc("Item", args.item_code)
|
||||||
validate_item_details(args, item)
|
validate_item_details(args, item)
|
||||||
|
|
||||||
out = get_basic_details(args, item, overwrite_warehouse)
|
out = get_basic_details(args, item, overwrite_warehouse)
|
||||||
|
|
||||||
print('warehouse2', out.warehouse, '========')
|
|
||||||
|
|
||||||
get_item_tax_template(args, item, out)
|
get_item_tax_template(args, item, out)
|
||||||
out["item_tax_rate"] = get_item_tax_map(args.company, args.get("item_tax_template") if out.get("item_tax_template") is None \
|
out["item_tax_rate"] = get_item_tax_map(args.company, args.get("item_tax_template") if out.get("item_tax_template") is None \
|
||||||
else out.get("item_tax_template"), as_json=True)
|
else out.get("item_tax_template"), as_json=True)
|
||||||
@@ -800,7 +797,6 @@ def get_projected_qty(item_code, warehouse):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_bin_details(item_code, warehouse):
|
def get_bin_details(item_code, warehouse):
|
||||||
print(item_code, warehouse, '---------------------------')
|
|
||||||
return frappe.db.get_value("Bin", {"item_code": item_code, "warehouse": warehouse},
|
return frappe.db.get_value("Bin", {"item_code": item_code, "warehouse": warehouse},
|
||||||
["projected_qty", "actual_qty", "reserved_qty"], as_dict=True, cache=True) \
|
["projected_qty", "actual_qty", "reserved_qty"], as_dict=True, cache=True) \
|
||||||
or {"projected_qty": 0, "actual_qty": 0, "reserved_qty": 0}
|
or {"projected_qty": 0, "actual_qty": 0, "reserved_qty": 0}
|
||||||
|
|||||||
Reference in New Issue
Block a user