Giter Club home page Giter Club logo

Comments (8)

Saturo78 avatar Saturo78 commented on July 18, 2024

I close this because its only relevant when using the android app for purchase and consumption and setting the barcode informations with the server version.

from grocy.

Saturo78 avatar Saturo78 commented on July 18, 2024

Unfortunately, I have to correct myself.
The behaviour also occurs in the server version if a unit is entered for the barcode.

I have set a demon instance:
https://test-mm5fg2xgzxnasa7njq5nmb.demo-prerelease.grocy.info/

when consuming barcode 12345 the unit is pack although the standard conversation unit is piece.
When i use the android app to leave the barcode unit blank everything works fine.

from grocy.

berrnd avatar berrnd commented on July 18, 2024

When using the android app it is possible to leave the field blank but not with the server.

"not with the server" is simply bullshit. Again, since we talked about that multiple times before as far as I remember (ref #2085 and #2093):

Each product can have multiple barcodes and they are defined on the product edit page, example:
https://demo-prerelease.grocy.info/product/4

The only (!) mandatory field is the barcode itself.

When using the Add as barcode to existing product or Add as new product and prefill barcode product picker workflows on /purchase or /consume, the there used unit is also attached to the corresponding barcode. It's perfectly valid to edit the corresponding barcode afterwards, if needed. That all makes sense, since the normal use case is you used e.g. the Pack (instead of the Piece) barcode this time and you want to properly prefill "Pack" then also next time when scanning this particular barcode.

 

I have set a demon instance:
https://test-mm5fg2xgzxnasa7njq5nmb.demo-prerelease.grocy.info/
when consuming barcode 12345 the unit is pack although the standard conversation unit is piece.

The "standard unit" doesn't matter when you've set a deviating unit on the barcode - and you've done that:

grafik

 
Longer time no see here, so hello again, but please don't start another round of hourly invalid bug reports or feature requests and use the r/grocy subreddit for general usage help (still mentioned in README), thanks.

from grocy.

Saturo78 avatar Saturo78 commented on July 18, 2024

Why are you constantly beating up on everyone?
I'm not sure if you understood my example.

A crate of beer doesn't have a barcode. There is only the barcode on the bottle. If you now want to use a crate when purchasing and a bottle when consuming, the unit of measure field in the barcode must not be filled, otherwise it won't work. As you can see in my example.

When you edit the barcode after its set, you must select one of the existing units. You cannot leave the field empty.
No option to leave emtpy:
grafik

With the Android app this is possible and then you can buy a crate and consume a bottle with the same barcode.
As workaround you also can delete the barcode and add it new without an unit, if its easier.

That's all I'm talking about.
But we certainly don't need to argue. Time is too short for that.

from grocy.

berrnd avatar berrnd commented on July 18, 2024

Why are you constantly beating up on everyone?

Because people wasting time by not providing all information, not trying stuff end-to-end, opening invalid bug reports / feature requests, then closing them themselves, then reopening them - I'm tired of that all and that's also why there is no real progress here lately (and most likely still quite long, maybe forever). This here is (maybe was) my hobby, no fun = no progress.

Test what you want extensively, don't compare with random companion apps (nothing of that matters) and provide clear, concise and short words about that here - simple, no time wasting, fun. That said, I'm maybe looking deeper into your "problem" or maybe not, in any case not here, since the frustration level is already too high once again and I simply will drop the corresponding thread from now on when that happens, since I'm just, sorry for repeating myself, tired of that.

from grocy.

berrnd avatar berrnd commented on July 18, 2024

A crate of beer doesn't have a barcode. There is only the barcode on the bottle. If you now want to use a crate when purchasing and a bottle when consuming, the unit of measure field in the barcode must not be filled, otherwise it won't work. As you can see in my example.

To elaborate on that once again: So the barcode is related to a bottle, fine - makes sense to set that as the unit for the barcode then. For the "otherwise it won't work" part: You're not forced to use the on /purchase by the barcode prefilled unit, it's just a prefilled proposal based on the barcode, nothing more or less.

 

must select one of the existing units

No, again bullshit, you don't have to - don't know if you're testing with outdated releases or whatever:

It works as I said: Only the barcode itself is a mandatory field, you can leave all ("all" includes the field named "Quantity unit" btw.) others blank:

firefox_2024-04-22_15-00-27.mp4

Maybe you slowly understand why I'm tired of that all - claiming just wrong things due to whatever reason, frustrating af.

from grocy.

Saturo78 avatar Saturo78 commented on July 18, 2024

Dear Bernd,

I realise how close all this is to you and how much pressure you're under. You shouldn't stress yourself out so much. I'm very sorry if you no longer enjoy your hobby.

Let me explain my workflow to you, maybe it will help you understand.
I have many products for which no barcode has been recorded because they have never been purchased.
When such a product is purchased, I enter the barcode and the unit of measure to buy the product.
After the purchase, I sit down and call up the products on the server and edit and add the information to the barcode. For example, I check openfoodfacts and enter the brand, contents and calories in the notes field.
I then realise that this product should be purchased differently to how it is consumed. Then I also edit the master data, for example, and enter the purchase and consumption unit.

This is where I encountered this problem.
In my case, it's not about entering a new barcode, as in your video, but about deleting the unit of measure from a barcode that has already been entered with a unit of measure.
I hope this explains my request a little better.

Maybe I'm just using the function incorrectly and it was never intended to use the same barcode for different units of measure for purchasing and consumption.

I think many, and especially new users of Grocy are very motivated and bursting with drive and ideas. They are often too quick and don't take the time to test everything down to the smallest detail.

I wish you all the best!

from grocy.

berrnd avatar berrnd commented on July 18, 2024

Let me explain my workflow to you, maybe it will help you understand.
[...]

Thousands of words and a good half an hour or so of wasted time later: Ok, you want to be able to set "no quantity unit" on editing product barcodes.

A handful of words would be enough to clearly and concisely request that, of course valid, enhancement - less frustrating, more fun, maybe motivating me to do it simply immediately (since implementing that takes less time than any of my answers here took). But I'm used to the frustrating way, so let's continue this for sure. Oh man.

from grocy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.