Skip to content

Commit

Permalink
fix: validation for corrective job card (backport #43555) (backport #…
Browse files Browse the repository at this point in the history
…43558) (#43628)

fix: validation for corrective job card (backport #43555) (#43558)

* fix: validation for corrective job card (#43555)

(cherry picked from commit 7a0a893)

# Conflicts:
#	erpnext/manufacturing/doctype/job_card/job_card.py

* chore: fix conflicts

* chore: fix linters issue

---------

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
(cherry picked from commit cf0fa0d)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
mergify[bot] authored Oct 12, 2024
1 parent 8714ec6 commit 1f09975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/manufacturing/doctype/job_card/job_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def on_cancel(self):
self.set_transferred_qty()

def validate_transfer_qty(self):
if self.items and self.transferred_qty < self.for_quantity:
if not self.is_corrective_job_card and self.items and self.transferred_qty < self.for_quantity:
frappe.throw(
_(
"Materials needs to be transferred to the work in progress warehouse for the job card {0}"
Expand Down

0 comments on commit 1f09975

Please sign in to comment.