Ki-nTree icon indicating copy to clipboard operation
Ki-nTree copied to clipboard

Creating parts/stock items in inventree from Ki-nTree creates part with off by one quantity

Open timmyhadwen opened this issue 1 year ago • 3 comments

What i did:

  • Creating parts by entering in Part Number in search field
  • Jumping to InvenTree field to select the right category, quantity and stock location
  • Not using KiCad plugin

What happens:

  • Each part goes into inventree stock as the quantity of the previous entry.

Create part A with quantity 1 - creates part A with quantity 1 Create part B with quantity 2 - creates part B with quantity 1 Create part C with quantity 3 - creates part C with quantity 2 etc...

timmyhadwen avatar Jun 06 '24 06:06 timmyhadwen

@timmyhadwen Ummm will need to reproduce and fix this, thanks for reporting it!

eeintech avatar Jun 13 '24 14:06 eeintech

I can confirm this on Windows and Linux. There seems to be a problem with updating the value while the user is entering it. If you enter a value, switch to the Create view and create a part the stock number will be set to whatever was set before in the Stock Quantity. If you enter a value, switch to any other view, switch back to the InvenTree view and then create the part afterwards the correct quantity is set. It seems like the corresponding background variable is only updated when entering the view, not while exiting or changing the value.

T0jan avatar Jun 14 '24 10:06 T0jan

And it was as expected, some callbacks were missing, fix is ready: #237

T0jan avatar Jun 14 '24 11:06 T0jan

fixed in v1.1.1

T0jan avatar Jul 08 '24 14:07 T0jan

<3

timmyhadwen avatar Sep 04 '24 01:09 timmyhadwen