473,396 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Commission Calculation

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
</head>

<body>
Hello<p>&nbsp;I am developing a database to calculate commissions on a
sale for each rep involved in the sale and their uplines.

</p>
<p>Below is the database structure and the commissions schedule. I am
having
trouble designing a way to calculate the commissions for each rep and
upline.</p>
<p>Below is a list of the business rules for calculating the
commissions.

<br>
1) each sale will have only 1 or 2 reps involved with the sale
<br>
2) each sale will have only 1 sale originator (flag in tblOrderRep)
<br>
3) each rep involved with the sale will receive a commission on the
sale based on the commission matrix below
<br>
4) the uplines of the rep that is flagged as the sale originator will
receive a commission on the sale based on the matrix below

<br>
<br>
For example:
- Roger & Matt completed a sale together.
- Roger & Matt are both Tier 2 reps.
- Roger was the sale originator
- Allen is Roger's upline
- Roger & Matt will split the 8% commission for the tier 2 reps and
Allen will receive 6% commission on the sale.
<br>
<br>
<b>DB Structure</b><br>
&nbsp;<a href="http://s90.photobucket.com/albums/k255/
spima05/10-17-08dbimages/?action=view&current=dbstructure.jpg"
target="_blank"><img src="http://i90.photobucket.com/albums/k255/
spima05/10-17-08dbimages/dbstructure.jpg" border="0" alt="Photobucket"
width="684" height="156"></a>
<br>
<br>
<b>Commission Matrix<br>
</b>&nbsp;<a href="http://s90.photobucket.com/albums/k255/
spima05/10-17-08dbimages/?action=view&current=commissionschedule.jpg"
target="_blank"><img src="http://i90.photobucket.com/albums/k255/
spima05/10-17-08dbimages/commissionschedule.jpg" border="0"
alt="Photobucket" width="641" height="346"></a>
</p>
<p>Thank you in advance for your time and advice
<br>
Matt <br>
&nbsp;</p>

</body>

</html>
Oct 18 '08 #1
0 2104

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jurek | last post by:
I have 10+ experience in C/C++ - mostly automation and graphics. I have never written any business apps though. Recently I've been asked to write a simple report that would calculate sales...
0
by: lindagoldstein100 | last post by:
Questions on Affiliate Marketing - Linkshare / Commission Junction etc ? I have heard of LinkShare, Commission junction etc ? Are these any any good ? Any one have experience with them ?...
6
by: Marie4458 | last post by:
I gave it a try but when I debuged the form the commission rate is always $0.00. Any help is appreciated. Thanks. Private Sub xCalcButton_Click(ByVal sender As Object, ByVal e As...
5
by: jatrojoomla | last post by:
Hi! Is there any one with knowledge of CJ API development I am getting error like: http://fb.aafter.com/cj/testb/support.php during Commission Junction SOAP access Commission Junction:...
16
by: atlbearcat | last post by:
Hell all. I have a database that tracks Commissions for recruiters (Access 2003/2003). I need to come up with a commission report on a monthly basis, which is not a problem. Where I'm having the...
2
by: rekhasc | last post by:
hi.. can anyone help me to write the code for commission updation..am doing project for a store in which there is a scheme as tree,one person should be member of that scheme, he is like a root...
29
n8kindt
by: n8kindt | last post by:
hey guys, i'm using access 2007. i'm not happy with my solution to the following problem so i'm hoping one of you guys has a better idea. my solution would require use of multiple valued fields...
2
by: spima05 | last post by:
Hello I am trying to create a database to calculate commissions on a sale based on a tiered commission schedule and am having trouble with how to design the tables and relationships to store the...
12
by: spima05 | last post by:
Hello I am developing a database to calculate commissions on a sale for each rep involved in the same and their uplines. Below is the database structure and the commissions schedule. I am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.