mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
refactor: cleanup args structure akin to some typing (#44226)
* refactor: cleanup args structure akin to some typing this clarification is a human precondition to being able to fix https://github.com/frappe/erpnext/issues/44219 * chore: excempt previous commit from git blame * fix: adapt signature
This commit is contained in:
@@ -125,3 +125,27 @@ def taxes_and_totals_get_itemised_taxable_amount(items):
|
||||
itemised_taxable_amount[item_code] += item.net_amount
|
||||
|
||||
return itemised_taxable_amount
|
||||
|
||||
|
||||
@deprecated(
|
||||
"erpnext.stock.get_pos_profile_item_details",
|
||||
"2024-11-19",
|
||||
"v16",
|
||||
"Use erpnext.stock.get_pos_profile_item_details_ with a flipped signature",
|
||||
)
|
||||
def get_pos_profile_item_details(company, ctx, pos_profile=None, update_data=False):
|
||||
from erpnext.stock.get_item_details import get_pos_profile_item_details_
|
||||
|
||||
return get_pos_profile_item_details_(ctx, company, pos_profile=pos_profile, update_data=update_data)
|
||||
|
||||
|
||||
@deprecated(
|
||||
"erpnext.stock.get_item_warehouse",
|
||||
"2024-11-19",
|
||||
"v16",
|
||||
"Use erpnext.stock.get_item_warehouse_ with a flipped signature",
|
||||
)
|
||||
def get_item_warehouse(item, ctx, overwrite_warehouse, defaults=None):
|
||||
from erpnext.stock.get_item_details import get_item_warehouse_
|
||||
|
||||
return get_item_warehouse_(ctx, item, overwrite_warehouse, defaults=defaults)
|
||||
|
||||
Reference in New Issue
Block a user