Click here to Skip to main content
15,894,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
iam work on sales point system for super market
all items have barcode
but i get problem for frunits & vegtables (items by weight)
for example if we record in system
item name barcode(for example) price per kg
tomato 12345 10

so when the customer go to cashier to pay the system 'll read the item by barcode but the proce included in system per kg what if the cutomer buy 2 kg or 700 GM
how can i make the barcode system read the price on the label
or what is the solution for that
Posted
Comments
Richard MacCutchan 21-Feb-15 5:41am    
You either need the cashier to weigh the items and enter the weight into the system, or use a weighing machine that will print a label encoded with the total price, or weight + price. This is not really a programming issues, more a system design one.
md_refay 21-Feb-15 6:14am    
Dear Richard
Thanks For Replay
i 'll follow the second scenario we 'll use weighing machine
but when we go to cashier how the system 'll read the price from the barcode
can u help me in that
Richard MacCutchan 21-Feb-15 6:39am    
See OriginalGriff's suggestion below.
md_refay 23-Feb-15 0:43am    
Dear
Can u Explain More For Me
Richard MacCutchan 23-Feb-15 4:04am    
Explain what?

"how the system 'll read the price from the barcode"

You don't, unless it is a specific type of barcode that includes price-per-kg in the actual barcode data (and consumer unit barcodes don't normally do that)

Most barcodes you will meet hold only one piece of information: an Article Number which uniquely identifies a product as (say) 05012345678901 and to get the price for the item that number is used to index into a database which returns the full info:
AN              05012345678901
Description     "tin of beans, Heinz, 400g"
Weight(kgs)     0.400
Price           £1.23
Stock           1267
ReOrderAt       500
OrderFrom       ...
So what you do for "loose weight" items is include a "loose weight" code in the data the DB returns and use that to calculate the price given the data from the weight scale.
 
Share this answer
 
Comments
md_refay 21-Feb-15 13:44pm    
dear
thanks for your support
can u help me by explain for
i did't get your solution
Create a barcode for 1Kg and set rate of 1Kg. When system reads barcode, it will read 1Kg as weight and it's price of 1Kg. Then cashier will enter exact quantity in system and system will multiply quantity with rate on runtime.
For Example:
You have an item Apple with value 100/Kg. Customer buys 700Gm. When cashier scan barcode, system will read 1Kg with 100/Kg Price and amount will 100. Cashier will enter 0.7 in qty and 0.7*100 = 70. Bill Amount will be 70.
 
Share this answer
 
Comments
md_refay 21-Feb-15 13:44pm    
Dear Naeem
thanks for your support
but this is work good for little transaction
but in almost of big supermarket i notice that they read the barcode & he read the excat value with any modification from the casher
i need your help to find more easy solution for casher people
Naeem Sardar 23-Feb-15 1:16am    
You are right. But in that case, they generate barcode at runtime regarding weight. I went to buy fruits from a super store, after checking weight on a machine, operator press a button on machine & machine generates barcode of weight. Now on Cash Counter, Cashier first scanned the item's barcode & then on weight/qty column he scanned weight barcode. I saw this process. May it helps you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900