mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-12 06:01:46 +00:00
fix: add type hints to conversion factor API
This commit is contained in:
@@ -1453,7 +1453,7 @@ def get_item_details(item_code, company=None):
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_uom_conv_factor(uom, stock_uom):
|
||||
def get_uom_conv_factor(uom: str | None, stock_uom: str | None):
|
||||
"""Get UOM conversion factor from uom to stock_uom
|
||||
e.g. uom = "Kg", stock_uom = "Gram" then returns 1000.0
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user