mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
chore: apply pre-commit formatting
This commit is contained in:
@@ -907,6 +907,7 @@ def get_pos_reserved_qty(item_code, warehouse):
|
||||
|
||||
return direct_reserved + bundle_reserved
|
||||
|
||||
|
||||
def get_direct_pos_reserved_qty(item_code, warehouse):
|
||||
"""Reserved qty for the item from direct lines in submitted POS Invoices (matching warehouse)."""
|
||||
|
||||
@@ -926,6 +927,7 @@ def get_direct_pos_reserved_qty(item_code, warehouse):
|
||||
).run(as_dict=True)
|
||||
return flt(reserved_qty[0].stock_qty) if reserved_qty else 0
|
||||
|
||||
|
||||
def get_bundle_pos_reserved_qty(item_code, warehouse):
|
||||
"""Reserved qty for the item as a component of Product Bundles in submitted POS Invoices (matching warehouse)."""
|
||||
|
||||
@@ -952,6 +954,7 @@ def get_bundle_pos_reserved_qty(item_code, warehouse):
|
||||
).run(as_dict=True)
|
||||
return flt(bundle_reserved[0].stock_qty) if bundle_reserved else 0
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def make_sales_return(source_name, target_doc=None):
|
||||
from erpnext.controllers.sales_and_purchase_return import make_return_doc
|
||||
|
||||
Reference in New Issue
Block a user