mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 14:39:19 +00:00
Merge pull request #35759 from frappe/mergify/bp/version-14-hotfix/pr-35756
fix: validation of job card in stock entry (backport #35756)
This commit is contained in:
@@ -268,10 +268,10 @@ class StockEntry(StockController):
|
|||||||
return
|
return
|
||||||
|
|
||||||
for row in self.items:
|
for row in self.items:
|
||||||
if row.job_card_item:
|
if row.job_card_item or not row.s_warehouse:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
msg = f"""Row #{0}: The job card item reference
|
msg = f"""Row #{row.idx}: The job card item reference
|
||||||
is missing. Kindly create the stock entry
|
is missing. Kindly create the stock entry
|
||||||
from the job card. If you have added the row manually
|
from the job card. If you have added the row manually
|
||||||
then you won't be able to add job card item reference."""
|
then you won't be able to add job card item reference."""
|
||||||
|
|||||||
Reference in New Issue
Block a user