Skip to content

Commit

Permalink
fix: only check when doctype is stock entry
Browse files Browse the repository at this point in the history
(cherry picked from commit 860d744)
  • Loading branch information
Ninad1306 authored and mergify[bot] committed Sep 20, 2024
1 parent db81eb8 commit 0806534
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def validate(doc, method=None):
if ignore_gst_validation_for_subcontracting(doc):
return

if doc.get("purpose") != "Send to Subcontractor":
if doc.doctype == "Stock Entry" and doc.purpose != "Send to Subcontractor":
return

field_map = (
Expand Down

0 comments on commit 0806534

Please sign in to comment.