Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Java Help

Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-16-2008, 11:44 AM
lxbui lxbui is offline
Newbie
 
Join Date: Apr 2008
Posts: 2
Rep Power: 0
lxbui is on a distinguished road
Default Java Point Of Sale + Scripting + huge mess

Hi,

This question is about Point of Sale Applications. My friend owns a liquor store, and has asked me to do a program for him so that he can accept coupons that are loaded onto his customer loyalty cards. I'm running into some problems.

1. His POS system doesn't have a loyalty program built in, so I have to ghetto rig it by writing code.

My problem is where to start? Here's the normal scenario.

1. Customer scans a 40 oz. bottle.
2. POS system retrieves the UPC code input from either the scanner or the keyboard.
3. The POS system queries the database for the UPC code, then returns the price, description, etc.
4. The POS system calculates the total, taxes, etc. and the transaction moves forward.

Problem:

1. Customer scans a loyalty card.
2. Error - POS system queries the product table rather than the customer loyalty card table and returns a message.

Questions:

a) Without messing with the code on the software POS program, how do I get the Software program to read from the second data table?

b) Where do I begin? Where can I get additional info to read?

I have an idea on what to do, just don't know how to implement it. I think I need a script that passes control around in the main software POS program. I need the script to check the UPC to see if it's a UPC or a loyalty barcode. If it's a UPC, hand it back to the POS program. If it's a loyalty code, query the database and return the discount.

The problem lies in if it's a loyalty card, how to I pass it back to the main program when I can't access the source code?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Starting Java Using Netbeans Jordan Java Tutorials 0 04-05-2008 02:45 PM
[ C++ ] Drawing Program. Max_Payne C and C++ 6 01-23-2008 09:18 PM
Custom Cursors using Java gszauer Java Tutorials 0 12-02-2007 10:25 AM
Java Facts techni68 Java Help 0 01-17-2007 01:41 PM


All times are GMT -5. The time now is 03:54 PM.

Contest Stats

John ........ 87.50000
dargueta ........ 75.00000
Xav ........ 50.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads