Skip to content

Commit

Permalink
fix: validation for corrective job card (#43555)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Oct 8, 2024
1 parent 6909d27 commit 7a0a893
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion erpnext/manufacturing/doctype/job_card/job_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,12 @@ def on_cancel(self):
self.set_transferred_qty()

def validate_transfer_qty(self):
if not self.finished_good and self.items and self.transferred_qty < self.for_quantity:
if (
not self.finished_good
and 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 7a0a893

Please sign in to comment.