PartKeepr icon indicating copy to clipboard operation
PartKeepr copied to clipboard

Feature Request: Reset Average Price Field

Open naturalgeek opened this issue 8 years ago • 6 comments
trafficstars

sometimes the avg price field shows shit. The possibility to reset and/or force change the current avg price would be nice.

If the avg field is a real time calculation of the past orders it might be cool if past orders could be removed from this calculation, for example if a part normally costs 2 euros at pollin but in a certain situation you have to pay 5000 bucks because you got it from conrad instead.

or just because you forgot to select the "per item" checkbox while adding a new part.

naturalgeek avatar Mar 12 '17 21:03 naturalgeek

In the beginning when we used PartKeepr we did not enter item prices. Now we do, but our average price shows junk because of all the "free" parts we purchased in the past. A part that costs several dollars might show an average price of a few cents because PartKeepr thinks the cost used to be zero.

I think the easiest solution to this problem is to take the average only when the price is nonzero. So if the price was zero for a while and suddenly there is a nonzero price, the zero price quantity would automatically be excluded from the calculation. This way the user will not need to track down all the parts that have this problem and manually exclude a date range, etc.

twelve12pm avatar Jun 09 '17 00:06 twelve12pm

linked to #302 ... Average Price is a real pain and need s a redesign

baradhili avatar Jan 27 '20 04:01 baradhili

Is anybody able to tell me how to adjust the 'add parts' dialogue box to include an additional field for the price of new parts. I can then get this daft average price bug fixed. (I can do the SQL code but am not familiar with the web-page development). Thanks

PGCJLEngineer avatar Jul 27 '20 14:07 PGCJLEngineer

I think everything should be there already in the UI or am I wrong? This is how it looks for me on the demo page: Screenshot_2020-07-27 PartKeepr

What else do you want to add?

christianlupus avatar Jul 27 '20 15:07 christianlupus

Sorry, I am actually looking for the location of the source code for this and the remove-parts dialogue boxes.

PGCJLEngineer avatar Jul 28 '20 07:07 PGCJLEngineer

This form is found here.

christianlupus avatar Jul 28 '20 10:07 christianlupus