Solved

Software Business Logic Help

Posted on 2014-03-25
6
224 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
  • 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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Need Counts 11 42
Shop sales Actual vs Forecast 2 26
INSERT INTO SELECT JOIN THING 2 26
separate column 24 20
Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now