Merge branch 'develop' of https://e.coding.net/jikimo-hn/jikimo_sfs/jikimo_sf into feature/commercially_launched

This commit is contained in:
mgw
2025-03-18 16:42:51 +08:00

View File

@@ -373,7 +373,7 @@ class QualityCheck(models.Model):
raise UserError(_('请先输入检验数'))
if not record.total_qty:
raise UserError(_('总数量不能为空'))
if record.check_qty <= int(record.total_qty):
if record.check_qty <= float(record.total_qty):
raise UserError(_('检验数不可超过总数量'))
if record.column_nums >= record.check_qty:
raise UserError(_('测量件数不可超过检验数'))