mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
chore: Ignore stock validation for non stock invoices (#44549)
* chore: Ignore stock validation for non stock invoices * chore: Ignore stock validation for non stock invoices
This commit is contained in:
@@ -24,6 +24,10 @@ def validate_return(doc):
|
|||||||
|
|
||||||
if doc.return_against:
|
if doc.return_against:
|
||||||
validate_return_against(doc)
|
validate_return_against(doc)
|
||||||
|
|
||||||
|
if doc.doctype in ("Sales Invoice", "Purchase Invoice") and not doc.update_stock:
|
||||||
|
return
|
||||||
|
|
||||||
validate_returned_items(doc)
|
validate_returned_items(doc)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user