Skip to content
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 Price.product_name field #83

Merged
merged 2 commits into from
Dec 14, 2023
Merged

Conversation

raphodn
Copy link
Member

@raphodn raphodn commented Dec 13, 2023

What

New field Price.product_name to store the product name displayed in the stores. We have this info on the proof images, but also on the receipts and in the GDPR requests.

Screenshot

image

@raphodn raphodn self-assigned this Dec 13, 2023
product_code: str | None = Field(
default=None,
min_length=1,
pattern="^[0-9]+$",
description="barcode (EAN) of the product, as a string.",
examples=["16584958", "8001505005707"],
)
product_name: str | None = Field(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raphael0202 in terms of naming, I hesitated with product_label and product_tag. But there are the existing category_tag & labels_tags so it could be confusing... or maybe product_store_label ? or product_name_in_store ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

product_name sounds good to be!

@raphodn raphodn linked an issue Dec 13, 2023 that may be closed by this pull request
app/schemas.py Outdated Show resolved Hide resolved
app/models.py Outdated Show resolved Hide resolved
@raphodn raphodn merged commit 36d551f into main Dec 14, 2023
4 checks passed
@raphodn raphodn deleted the raphodn/price-product-label branch December 14, 2023 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possibility to store the product "shop label name"
2 participants