Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old January 3rd, 2009, 12:54 AM
Nimmyjo Nimmyjo is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Nov 2008
Location: Cochin
Posts: 23 Nimmyjo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 45 m 54 sec
Reputation Power: 0
Orkut
Exclamation MySQL 5 - Design help for cross checking cash receipts

Hi ,,

We are trying to do an inventry management system for sales of Recharge coupons and SIM's ..Now confused with the Checking the correctness of Cash details for taking reports for daily and monthly statements..

Can some one help us to do some database design for cross checking the money details.

We feel that there should be atleast two tables for cross checking the money..

Can any one please help..

Reply With Quote
  #2  
Old January 3rd, 2009, 03:58 AM
IAmALlama IAmALlama is offline
Me
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: San Diego, CA
Posts: 2,069 IAmALlama User rank is Private First Class (20 - 50 Reputation Level)IAmALlama User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 6 Days 8 h 5 m 11 sec
Reputation Power: 5
are you just starting? or do you have something already and just want the reporting done. I only ask because usually you would have a record of all the sales in a sale table and the reporting would just query that to get your summary figures. The only other option is to have a summary table that records sum and count of each type of item and have an end of day report that compiles the information and use that in your reporting.

Reply With Quote
  #3  
Old January 4th, 2009, 11:31 PM
Nimmyjo Nimmyjo is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Nov 2008
Location: Cochin
Posts: 23 Nimmyjo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 45 m 54 sec
Reputation Power: 0
Orkut
Thanks lot..We have already done a prototype and trying to enhance its features.Some times getting stuck as our database design is not up to par.
So trying to reinforce it

Reply With Quote
  #4  
Old January 5th, 2009, 02:09 AM
IAmALlama IAmALlama is offline
Me
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: San Diego, CA
Posts: 2,069 IAmALlama User rank is Private First Class (20 - 50 Reputation Level)IAmALlama User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 6 Days 8 h 5 m 11 sec
Reputation Power: 5
well there isn't really a point to adding data in the database two times. In fact, good database design will get you to minimize duplication of data as much as possible. The way my work POS software works is at the end of the night, whomever is closing after the store closes, runs an 'end of day' report. When this report is run, the software finalizes all transactions and creates accounting numbers which are really just a summary of each sale item (count and amount) and puts that into a salehistory table. something like "INSERT INTO SaleHistory SELECT ItemType_ID, SUM(Amount), COUNT(*) FROM Sales WHERE Date='{today}' GROUP BY ItemType_ID". That would insert from the sale table into the sale history table the id number for an item, the count of how many of that item sold and the sum of the amount sold.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > MySQL 5 - Design help for cross checking cash receipts


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 7 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek