mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
fix: add missing type hints
This commit is contained in:
@@ -770,7 +770,7 @@ def make_purchase_receipt(
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def make_purchase_invoice(
|
def make_purchase_invoice(
|
||||||
source_name: str, target_doc: str | Document | None = None, args: str | None = None
|
source_name: str, target_doc: str | Document | None = None, args: str | dict | None = None
|
||||||
):
|
):
|
||||||
return get_mapped_purchase_invoice(source_name, target_doc, args=args)
|
return get_mapped_purchase_invoice(source_name, target_doc, args=args)
|
||||||
|
|
||||||
@@ -904,7 +904,11 @@ def make_inter_company_sales_order(source_name: str, target_doc: str | Document
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def make_subcontracting_order(
|
def make_subcontracting_order(
|
||||||
source_name: str, target_doc=None, save=False, submit: bool = False, notify: bool = False
|
source_name: str,
|
||||||
|
target_doc: str | Document | None = None,
|
||||||
|
save: bool = False,
|
||||||
|
submit: bool = False,
|
||||||
|
notify: bool = False,
|
||||||
):
|
):
|
||||||
if not is_po_fully_subcontracted(source_name):
|
if not is_po_fully_subcontracted(source_name):
|
||||||
target_doc = get_mapped_subcontracting_order(source_name, target_doc)
|
target_doc = get_mapped_subcontracting_order(source_name, target_doc)
|
||||||
|
|||||||
@@ -461,7 +461,7 @@ def make_supplier_quotation_from_rfq(
|
|||||||
|
|
||||||
# This method is used to make supplier quotation from supplier's portal.
|
# This method is used to make supplier quotation from supplier's portal.
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def create_supplier_quotation(doc: str | dict):
|
def create_supplier_quotation(doc: str | Document | dict):
|
||||||
if isinstance(doc, str):
|
if isinstance(doc, str):
|
||||||
doc = json.loads(doc)
|
doc = json.loads(doc)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user