Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3693288
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:21:36+00:00 2026-05-19T04:21:36+00:00

Here is my dilemma, I am building a POS system for a pretty large

  • 0

Here is my dilemma, I am building a POS system for a pretty large retailer, they have different products which have different attributes (size, color, etc…).

When they receive the merchandise from the supplier they want to do their own labeling with their own UPC Bar Codes but they also want to differentiate between the different sizes using the code on the article.

Say they received Brand A shirts with 4 sizes S,M,L,XL then they should have different bar codes for each size.

So I thought of having a base code for the article and then concatenating numbers depending on the attributes to have different codes? and if no attributes are available just add 0s

I am storing the sizes and colors as attributes in the database as an (Entity-Attribute-Value). Is their a better way other than having to start concatenating numbers from the attributes to come up with the full code?

Thanks for your help!

edit——————————————————-

I am making the example a bit clearer
so the base code for the shirts is: 9 123456
Then for Color blue is: 789
and then for size S: 012
so the full code is 9 123456 789012

for another article that doesn’t have size or color or actually any attribute
the base code would be 9 654321
plus 000000 for the attributes part

this is just for simplicity sake as I can use only one digit per attribute.

The other issue is when linking to the OrderDetails table I need to reference all the attributes to know that the customer actually bought Size S in Blue

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:21:37+00:00Added an answer on May 19, 2026 at 4:21 am

    One possible option is to create a table that stores the bar code as the key. Then have an attribute for the size and the color.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's my dilemma: I have two types of routes which are semantically very different,
So, my dilemma here is pretty much the fact that I have GData included
Here is my dilemma: The Problem I have SubProgram (a DLL) that uses System.Data.SQLite
Here is my dilemma... I basically have a script which by means of CURL
I have a bit of a dilemma here. I have a drupal 7 database
Here's my dilemma: I have to RGBA RAW images: a master image (the first)
So, I have an interesting dilemma here. I have a Tomcat 7 server setup
Here's my dilemma. I have 2 animations that need to run sequentially. The first
Here is the dilemma I have, my theme options passes the custom taxonomy variable
So here is my dilemma: I have a base class (Let's say a generic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.