diff --git a/erpnext/selling/doctype/quotation/quotation.py b/erpnext/selling/doctype/quotation/quotation.py index f15e83a0b3c..603aeb9c7ec 100644 --- a/erpnext/selling/doctype/quotation/quotation.py +++ b/erpnext/selling/doctype/quotation/quotation.py @@ -356,7 +356,9 @@ def get_list_context(context=None): @frappe.whitelist() -def make_sales_order(source_name: str, target_doc: Document | None = None, args: str | dict | None = None): +def make_sales_order( + source_name: str, target_doc: str | Document | None = None, args: str | dict | None = None +): if not frappe.db.get_singles_value( "Selling Settings", "allow_sales_order_creation_for_expired_quotation" ): diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.py b/erpnext/selling/page/point_of_sale/point_of_sale.py index b49805dfa5c..0e7b174668d 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.py +++ b/erpnext/selling/page/point_of_sale/point_of_sale.py @@ -133,7 +133,12 @@ def get_parent_item_group(pos_profile: str): @frappe.whitelist() def get_items( - start: str, page_length: str, price_list: str, item_group: str, pos_profile: str, search_term: str = "" + start: str | int, + page_length: str | int, + price_list: str | None, + item_group: str, + pos_profile: str, + search_term: str = "", ): warehouse, hide_unavailable_items = frappe.db.get_value( "POS Profile", pos_profile, ["warehouse", "hide_unavailable_items"] diff --git a/erpnext/selling/report/payment_terms_status_for_sales_order/payment_terms_status_for_sales_order.py b/erpnext/selling/report/payment_terms_status_for_sales_order/payment_terms_status_for_sales_order.py index 8e596ba35c0..eb2b7cc21d8 100644 --- a/erpnext/selling/report/payment_terms_status_for_sales_order/payment_terms_status_for_sales_order.py +++ b/erpnext/selling/report/payment_terms_status_for_sales_order/payment_terms_status_for_sales_order.py @@ -94,7 +94,7 @@ def get_descendants_of(doctype, group_name): @frappe.whitelist() @frappe.validate_and_sanitize_search_inputs def get_customers_or_items( - doctype: str, txt: str, searchfield: str, start: int, page_len: int, filters: list + doctype: str, txt: str, searchfield: str, start: int, page_len: int, filters: list | None ): filter_list = [] if isinstance(filters, list):