Skip to content

Commit bbb4e79

Browse files
mergify[bot]Kaajalchhattanimihir-kandoi
authored
fix: set valid_from in created Item Price (backport #54696) (#54700)
* fix: set valid_from in created Item Price (#54696) Co-authored-by: Kaajal-Chhattani <kaajal.chhattani@aurigait.com> (cherry picked from commit 6246a9a) # 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>
1 parent bca893a commit bbb4e79

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

erpnext/stock/get_item_details.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,7 @@ def insert_item_price(ctx: ItemDetailsCtx):
11171117
currency=ctx.currency,
11181118
uom=ctx.stock_uom,
11191119
price_list=ctx.price_list,
1120+
valid_from=transaction_date,
11201121
)
11211122
item_price.insert()
11221123
frappe.msgprint(
@@ -1139,6 +1140,7 @@ def insert_item_price(ctx: ItemDetailsCtx):
11391140
"currency": ctx.currency,
11401141
"price_list_rate": price_list_rate,
11411142
"uom": ctx.stock_uom,
1143+
"valid_from": transaction_date,
11421144
}
11431145
)
11441146
item_price.insert()

0 commit comments

Comments
 (0)