mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bug fixes
This commit is contained in:
@ -745,7 +745,7 @@ class Build(MPTTModel):
|
|||||||
raise ValidationError(_("Build output does not match Build Order"))
|
raise ValidationError(_("Build output does not match Build Order"))
|
||||||
|
|
||||||
# Unallocate all build items against the output
|
# Unallocate all build items against the output
|
||||||
self.unallocateStock(output)
|
self.unallocateOutput(output)
|
||||||
|
|
||||||
# Remove the build output from the database
|
# Remove the build output from the database
|
||||||
output.delete()
|
output.delete()
|
||||||
|
@ -212,7 +212,7 @@ class BuildOutputCreate(AjaxUpdateView):
|
|||||||
|
|
||||||
# Calculate the required quantity
|
# Calculate the required quantity
|
||||||
quantity = max(0, build.remaining - build.incomplete_count)
|
quantity = max(0, build.remaining - build.incomplete_count)
|
||||||
initials['quantity'] = quantity
|
initials['output_quantity'] = quantity
|
||||||
|
|
||||||
return initials
|
return initials
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user