mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
fix: validation for corrective job card (#43555)
This commit is contained in:
@@ -689,7 +689,12 @@ class JobCard(Document):
|
|||||||
self.set_transferred_qty()
|
self.set_transferred_qty()
|
||||||
|
|
||||||
def validate_transfer_qty(self):
|
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(
|
frappe.throw(
|
||||||
_(
|
_(
|
||||||
"Materials needs to be transferred to the work in progress warehouse for the job card {0}"
|
"Materials needs to be transferred to the work in progress warehouse for the job card {0}"
|
||||||
|
|||||||
Reference in New Issue
Block a user