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:
David Arnold
2024-11-19 23:27:57 +01:00
committed by GitHub
parent a9bb6b9970
commit daabe847b0
9 changed files with 467 additions and 399 deletions

View File

@@ -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)