-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add category price per unit toggle #266
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see a few things missing :
- when a user submits a price -
createPrice()
- with barcode, we should set theprice_per
to null (currently i see aprice_per: KILOGRAM
sent to the backend, there's no error but we should avoid sending it nevertheless) - we need to change the
PriceCard
as well to display prices "per unit"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and i added a screenshot (helpful for reviewers and people stumbling on the PR !)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
top !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kg
-> kg
and Unit
-> unit
no ?
appart from that it's mergable :)
What
price_per
betweenKILOGRAM
orUNIT
when inputting a price for a product without barcodeScreenshot