mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-12 14:11:46 +00:00
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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user