Do not create remainder move with no quantity

issue10778
review364071002
This commit is contained in:
Cédric Krier committed 2021-10-03 13:36:56 +02:00
1 parent e5685911d4
commit a6f99af4e1
1 file changed
+2 -1
+2 -1
View File
@@ -292,7 +292,8 @@ class ShipmentAssignManualShow(ModelView):
remainder = self.move.uom.round(self.move.quantity - quantity)
self.move.quantity = quantity
self.move.save()
Move.copy([self.move], {'quantity': remainder})
if remainder:
Move.copy([self.move], {'quantity': remainder})
key = json.loads(self.place)
values = self._apply(key, grouping)
quantity = self.move.quantity