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.

(cherry picked from commit 1deae664ce)
This commit is contained in:
Mihir Kandoi
2026-08-08 17:25:34 +05:30
committed by Mergify
parent 5f391a2531
commit f810d780c0

View File

@@ -845,7 +845,7 @@ class JobCard(Document):
)
def validate_transfer_qty(self):
if self.track_semi_finished_goods:
if self.track_semi_finished_goods and self.skip_material_transfer:
return
if (