twanda / vertical-agriculture

Verticalization of Odoo for farms and agroindustries
GNU Affero General Public License v3.0
0 stars 1 forks source link

Show weights in whole numbers without decimal places. #40

Open dastcaboz opened 2 years ago

dastcaboz commented 2 years ago

The weight of products should be shown in whole numbers without decimal places.

Current: 56,235, New: 56 Current: 24,561, New 25

dastcaboz commented 2 years ago

Same issue, new problem: weight corrections can lead to strange decimal inaccuracies, as in below case. This should be avoided with rounding to full kg.

stock_move_problem_with_decimal_01 stock_move_problem_with_decimal_02
candidroot commented 2 years ago

@treviser can you please tell me on which field you need to remove decimal places ?? if possible then please attach screen shot, so i can easily find it, thanks

dastcaboz commented 2 years ago

issue # 41 02

dastcaboz commented 2 years ago

Where are we with this issue?

Please review it mainly in relation to the "Weight correction". If the corrected weight is proportianlly distributed on every lot, weights with three digits are generated. This might be correct but not really useful.

Could you change the way odoo distributes the weights on each lot with the aim to have integer numbers (undivided kg's).

In the below illustrated example the distribution would be p.e. as follows:

LOT00435: 3 kg (rounded up from 2.850 kg) LOT00439: 10 kg (rounded up from 9.500 kg) LOT00440: 6 kg (would have to be rounded up to 7 kg, but the rule should be that because only 6 kg remain to be distributed it is rounded down to 6 kg) Total: 19 kg

Ohne Titel Ohne Titel_2 Ohne Titel_3

dastcaboz commented 2 years ago

@siddharth7815 : Is there a possibility to resolve this issue?