Skip to content

Commit

Permalink
fix: validate name only for stock entry and subcontracting receipt
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket322 committed Sep 30, 2024
1 parent 1100bf4 commit 7ed0d1c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def onload(doc, method=None):


def validate(doc, method=None):
validate_transaction_name(doc)
if doc.doctype in ("Stock Entry", "Subcontracting Receipt"):
validate_transaction_name(doc)

if ignore_gst_validation_for_subcontracting(doc):
return
Expand Down

0 comments on commit 7ed0d1c

Please sign in to comment.