mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-21 18:36:30 +00:00
fix: validation if no stock ledger entries against stock reco (#47292)
(cherry picked from commit 3d36d0b1df)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -726,6 +726,12 @@ class StockReconciliation(StockController):
|
|||||||
)
|
)
|
||||||
|
|
||||||
self.make_sl_entries(sl_entries, allow_negative_stock=allow_negative_stock)
|
self.make_sl_entries(sl_entries, allow_negative_stock=allow_negative_stock)
|
||||||
|
elif self.docstatus == 1:
|
||||||
|
frappe.throw(
|
||||||
|
_(
|
||||||
|
"No stock ledger entries were created. Please set the quantity or valuation rate for the items properly and try again."
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
def make_adjustment_entry(self, row, sl_entries):
|
def make_adjustment_entry(self, row, sl_entries):
|
||||||
from erpnext.stock.stock_ledger import get_stock_value_difference
|
from erpnext.stock.stock_ledger import get_stock_value_difference
|
||||||
|
|||||||
Reference in New Issue
Block a user