fix: validation for corrective job card (#43555)

This commit is contained in:
rohitwaghchaure
2024-10-08 13:48:36 +05:30
committed by GitHub
parent 6909d271e5
commit 7a0a893d08

View File

@@ -689,7 +689,12 @@ class JobCard(Document):
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}"