mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 15:25:19 +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:
@@ -1117,6 +1117,7 @@ def insert_item_price(ctx: ItemDetailsCtx):
|
|||||||
currency=ctx.currency,
|
currency=ctx.currency,
|
||||||
uom=ctx.stock_uom,
|
uom=ctx.stock_uom,
|
||||||
price_list=ctx.price_list,
|
price_list=ctx.price_list,
|
||||||
|
valid_from=transaction_date,
|
||||||
)
|
)
|
||||||
item_price.insert()
|
item_price.insert()
|
||||||
frappe.msgprint(
|
frappe.msgprint(
|
||||||
@@ -1139,6 +1140,7 @@ def insert_item_price(ctx: ItemDetailsCtx):
|
|||||||
"currency": ctx.currency,
|
"currency": ctx.currency,
|
||||||
"price_list_rate": price_list_rate,
|
"price_list_rate": price_list_rate,
|
||||||
"uom": ctx.stock_uom,
|
"uom": ctx.stock_uom,
|
||||||
|
"valid_from": transaction_date,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
item_price.insert()
|
item_price.insert()
|
||||||
|
|||||||
Reference in New Issue
Block a user