fix: keep the transfer qty check for legacy semi FG cards without an FG item

Existing submitted BOMs may carry operations without a finished good,
and no migration repairs them. Exempting every semi FG job card from
the transfer check let such a card submit after a partial transfer.
Exempt only cards that skip material transfer; legacy cards with
transfer enabled keep the strict transferred qty check.
This commit is contained in:
Mihir Kandoi
2026-08-08 17:25:34 +05:30
parent 8f0617c834
commit 1deae664ce

View File

@@ -891,7 +891,7 @@ class JobCard(Document):
frappe.msgprint(message, alert=True, indicator="orange")
def validate_transfer_qty(self):
if self.track_semi_finished_goods:
if self.track_semi_finished_goods and self.skip_material_transfer:
return
if (