Solved

Software Business Logic Help

Posted on 2014-03-25
6
231 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
Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
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…

739 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