Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Software Business Logic Help

Posted on 2014-03-25
6
Medium Priority
?
234 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 750 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

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 750 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

Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
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…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

715 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