mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 05:58:27 +00:00
* fix: set valid_from in created Item Price (#54696)
Co-authored-by: Kaajal-Chhattani <kaajal.chhattani@aurigait.com>
(cherry picked from commit 6246a9aa6e)
# Conflicts:
# erpnext/stock/get_item_details.py
* chore: resolve conflicts
---------
Co-authored-by: Kaajalchhattani <89331214+Kaajalchhattani@users.noreply.github.com>
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
This commit is contained in:
@@ -1134,6 +1134,7 @@ def insert_item_price(ctx: ItemDetailsCtx):
|
||||
currency=ctx.currency,
|
||||
uom=ctx.stock_uom,
|
||||
price_list=ctx.price_list,
|
||||
valid_from=transaction_date,
|
||||
)
|
||||
item_price.insert()
|
||||
frappe.msgprint(
|
||||
@@ -1156,6 +1157,7 @@ def insert_item_price(ctx: ItemDetailsCtx):
|
||||
"currency": ctx.currency,
|
||||
"price_list_rate": price_list_rate,
|
||||
"uom": ctx.stock_uom,
|
||||
"valid_from": transaction_date,
|
||||
}
|
||||
)
|
||||
item_price.insert()
|
||||
|
||||
Reference in New Issue
Block a user