Merge pull request #35756 from rohitwaghchaure/fixed-stock-entry-not-able-to-save

fix: validation of job card in stock entry
This commit is contained in:
rohitwaghchaure 2023-06-17 13:32:20 +05:30 committed by GitHub
commit c51e6dba8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,10 +266,10 @@ class StockEntry(StockController):
return
for row in self.items:
if row.job_card_item:
if row.job_card_item or not row.s_warehouse:
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
from the job card. If you have added the row manually
then you won't be able to add job card item reference."""