Add issue10382.diff - stock_split - Decimals of quantity move exceed the total digits when split move
This commit is contained in:
parent
ebe70399d9
commit
d179a1398b
|
@ -0,0 +1,12 @@
|
|||
diff --git a/trytond/trytond/modules/stock_split/stock.py b/trytond/trytond/modules/stock_split/stock.py
|
||||
index e68fd55..9f00036 100644
|
||||
--- a/trytond/trytond/modules/stock_split/stock.py
|
||||
+++ b/trytond/trytond/modules/stock_split/stock.py
|
||||
@@ -52,6 +52,7 @@ class Move(metaclass=PoolMeta):
|
||||
'uom': uom.id,
|
||||
})
|
||||
remainder -= quantity
|
||||
+ remainder = round(remainder, self.unit_digits)
|
||||
if count:
|
||||
count -= 1
|
||||
while (remainder > quantity
|
2
series
2
series
|
@ -91,3 +91,5 @@ issue3209.diff # [production] Not validate cost inputs and outputs 043523 (not m
|
|||
issue10271.diff # [sale] The label total_amount_cache field in sale.sale is "Total Tax"
|
||||
|
||||
account_asset_update_asset.diff # [account_asset] convert float to decimal [#044336] Remove on 6.0
|
||||
|
||||
issue10382.diff # [stock_split] Decimals of quantity move exceed the total digits when split move
|
||||
|
|
Loading…
Reference in New Issue