Solved

Software Business Logic Help

Posted on 2014-03-25
6
232 Views
Last Modified: 2014-03-28
Hello there,

I have a frame which shows the users a list of products and the available qty in the warehouse of the main branch. now the user will can enter the qty it wants to send to another branch office. I need to then update the MBranchProductQty table accordingly. can somebody please help me to achieve this in the best way.see attachement for more details. I am using sql server 2008 as db and GWT for development.

cheers
Zolf
3-25-2014-12-09-03-PM.gif
3-25-2014-12-10-36-PM.gif
0
Comment
Question by:zolf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 40

Assisted Solution

by:Vadim Rapp
Vadim Rapp earned 250 total points
ID: 39954519
Since you posted this question under "business logic", rather than, say, "database design"", I will say this: you don't want to update product qty when the user only indicated that he wants to transfer. You should update it only when it has been actually received in the destination. The best is to have yet another location called "in transit", so you first move to "in transit", and then to the destination. Only that allows to tell where the stuff is.
0
 

Author Comment

by:zolf
ID: 39955131
thanks for your comments.
Another problem I have is how do I update that product in that MBranchProductQty table. I mean I need to reduce the qty once it is gone out of that warehouse. Do I create a new record in that table or some other method which you know of.
0
 
LVL 35

Expert Comment

by:David Todd
ID: 39955204
Hi,

The thought is that something like this:

Create another location called - In Transit.

The transaction is in GL terms:
Credit source location
Debit In Transit.

When stock arrives,
Credit In Transit
Debit destination location.

HTH
  David
0
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

Author Comment

by:zolf
ID: 39955217
David, thanks for your comments.

what do you mean by another location.do you mean table or column. can you please explain in more details with reference to the tables I have.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 39955745
It all depends on the meanings of the columns in your table(s), and how they are used by your applications.
0
 
LVL 35

Accepted Solution

by:
David Todd earned 250 total points
ID: 39960203
Hi

By another location I'm assuming that you have a table of locations warehouse1/damaged goods/pick face/bulk/etc.

Add another location at that point.

I've supported a system that had physical warehouses and then under than logical warehouses. The transfer between logical warehouses in the same physical location should be immediate. The transfer between physical sites should go via in-transit.

HTH
  David
0

Featured Post

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question