Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.47k stars 2.8k forks source link

BUG - Inventory product - Added product 'expected quantity' are not shown when getting the real quantities #24233

Open daxitsolutions opened 1 year ago

daxitsolutions commented 1 year ago

Bug

When creating a new inventory, if product are added on the tab "inventory" and adding "forseen quantity" before clicking on "start the inventory", all the data are lost (or not taken into account on the next screen) when inserting the real quantity.

  1. Create a new inventory
  2. Click on tab inventory
  3. Add products (that has no stock) and add expected quantities 'STEP1'
  4. Validate the inventory to start
  5. Click on inventory
  6. Change the real quantity of products 'STEP2' --> products added on 'STEP1' are not display

Environment Version

16.0.3

Environment OS

Apache

Environment Web server

Apache2

Environment PHP

7.4

Environment Database

MySQL

Environment URL(s)

https://xxxx/product/inventory/inventory.php?id=3

Expected and actual behavior

No response

Steps to reproduce the behavior

No response

Attached files

No response

AurelienBISOTTI commented 1 year ago

Reproducible in V18

possible solutions :

Add the button "save" even when inventory has not started

Capture d’écran du 2023-06-10 18-12-05

Capture d’écran du 2023-06-10 18-12-14

daxitsolutions commented 1 year ago

Proposed solution : Save the products added on step 1 in an array & concat this array to the list of product having a stock.

daxitsolutions commented 5 months ago

still open

eldy commented 3 months ago

I think the problem is that the part under the button "Start" image

Should appears only once we have clicked on Start. Can you confirm that hiding the input form (that has no effect) until we have clicked Start is ok for you as a fix ?

daxitsolutions commented 1 month ago

Hello @eldy

That's a valid Workarould. (sory for the very late reply I'm closing all the old bug's :p )