patzly / grocy-android

ERP beyond your fridge, now on your phone – An awesome companion app for grocy
https://patrickzedler.com/grocy/
GNU General Public License v3.0
830 stars 80 forks source link

New Product Creation Defaults to 1 Unit despite Default Amount for Purchase Setting #819

Open Payne530 opened 6 months ago

Payne530 commented 6 months ago

I am scanning new items into inventory.

  1. Select "Purchase" from the Stock overview card.
  2. Scan a new barcode.
  3. The create new product screen appears.
  4. Add location + select units [grams (g)]
  5. Save product >> returned to purchase screen.
  6. Amount is auto filled with 1
  7. Due date screen appears.
  8. Save due date >> transaction begins to auto complete for 1g of product.
  9. Press cancel
  10. Change amount
  11. Save purchase.

Step 6 results because the default consume amount and stock amount get set to 1. I currently have the setting "Default amount for purchase" set to 0.

I expected it to prompt for the amount, given it's a new barcode/product. I am making the assumption that it is best practice to store a product that is purchased in grams, but has different bar codes for different box sizes, as a main product, with the barcode linking the purchase amount. However, it is not possible to link the barcode inside the product creation screen. They are greyed out and prompt the user to create the product first. When the user creates the product, the amount is auto filled, rather than prompting the user for the amount. Grocy ends up associating the new bar code with 1 unit of the default quantity.