Merge pull request #53519 from frappe/mergify/bp/version-16-hotfix/pr-53513

fix: do not set valuation rate for invoice without update stock (backport #53513)
This commit is contained in:
rohitwaghchaure
2026-03-17 11:23:39 +05:30
committed by GitHub

View File

@@ -526,6 +526,9 @@ class SellingController(StockController):
if self.doctype not in ("Delivery Note", "Sales Invoice"):
return
if self.doctype == "Sales Invoice" and not self.update_stock and not self.is_internal_transfer():
return
from erpnext.stock.serial_batch_bundle import get_batch_nos, get_serial_nos
allow_at_arms_length_price = frappe.get_cached_value(