-
-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Part: Using takeover all data function causes initial stock levels to be added to prev entry on save #660
Comments
Please add required information to the issue as per https://github.com/partkeepr/PartKeepr/blob/master/CONTRIBUTING.md |
I believe the issue is now fixed. Can you verify? |
That fixed it, thanks. |
This bug is not completly fixed yet... Create the fist part like described from ericmoon and set the stock to 100, it sets the stock to 100 -> is ok. |
I tried as you described, however, it looks okay on my side. I did:
The stock levels for all 3 test parts are as expected. |
Can you give more verbose instructions to reproduce, like if you have clicked |
Set the stockLevel property to 0 for each duplicated item, fixes #660
When the 'Takeover all data' is checked on a Part Add, the initial stock level entry is added the the previous part stock level.
For example, Enter "Part A" with a Initial stock level of 11, then check the takeover all data and save Part A. Change Part A to "Part B" and change nothing else, when you save part B, initial stock level will be saved as 22, Part C would be 33, and so on. Changing the value in the Initial stock level only changes the amount added to the previous stock level.
Problem reproduced on demo.partkeepr.org
browser: chrome
PK version : GIT Dev version
PHP version : 5.6.20-1
SeverOS : debian stretch openvz on 2.6.32-042stab111.12 kernel.
Server version: Apache/2.4.18 (Debian)
mysql version: mysql Ver 14.14 Distrib 5.6.30
The text was updated successfully, but these errors were encountered: