Name:
[FIX][16.0] stock_account: Rounding error when calculating unit price causes the quantity of goods to be out of stock but the inventory value still remains
State:
Killed
PR State:
open
PR Author:
Trinh Ngoc Hung
PR Author Email:
ngochung207@gmail.com
PR:
#1090
Committer:
Trinh Ngoc Hung
Committer Email:
ngochung207@gmail.com
Commit:
64289f4f57d78df05041053306b4892ccda456bd
Description:
[FIX] purchase: Incorrectly recorded product unit price due to rounding
Issue: Rounding error when calculating unit price causes the quantity of
goods to be out of stock but the inventory value still remains.
Steps to reproduce the error:
1. Setup company with Rounding Factor currency 1, for example VND
1. Create product A, Costing Method: AVCO
2. Enter purchase order 10 units of product A with unit price 1.46
3. Create sales order with quantity 12 units of product A
4. Enter 2 units of product with price 1.46
View stock layer, stock quantity is 0 but stock value is 1.
This is unexpected.
Branch:
16.0
Instance ID:
0
Age:
Up-time:
Not finished