Fix wrong default rounding of quantity for invoice
The default digits of quantity is 2 so the default rounding must be 0.01 issue4374 review11671003
This commit is contained in:
1 parent
e1cbcfb129
commit
49cc650205
1 file changed
+1
-1
+1
-1
@@ -1261,7 +1261,7 @@ class PurchaseLine(ModelSQL, ModelView):
|
||||
quantity -= Uom.compute_qty(old_invoice_line.unit,
|
||||
old_invoice_line.quantity, self.unit)
|
||||
|
||||
rounding = self.unit.rounding if self.unit else 0
|
||||
rounding = self.unit.rounding if self.unit else 0.01
|
||||
invoice_line.quantity = Uom.round(quantity, rounding)
|
||||
if invoice_line.quantity <= 0:
|
||||
return []
|
||||
|
||||
Reference in new issue
Block a user