473,800 Members | 2,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to handle multiple markups

My app contains data on projects. I've recently added functionality to allow
for markups on a base cost. The code currently applies any markup to the
base cost only. However, in reality, some markups are on top of the base
cost + other markups. I have about 10 markups that can be applied and users
may want to change the order in which the markups are applied. Plus there
may be multiple markups that go just against the base.

Here's an example:

Base Cost : $20,000
Taxes: 5% on Base Cost
Design: 10% on Base Cost
Project Management: 10% on (Base Cost + Taxes + Design)
Overhead and Profit: 15% on (Base Cost + Taxes + Design + Project Management)
Contingency: 5% on (Base Cost + Design)

This is just an example, but I think I've conveyed the problem. Plus each
client may want to do this differently.

I have a table that keeps the markups for each category.

I need suggestions on how to setup the logic. Should I use a table with
columns that are the markup names. Then the user would check a checkbox if
prior markups and the Base Cost are to be used for calculating the markup in
question.

Even if I can put such a table together, it will be tricky with the coding.
The markups will need to be calculated in order so that if the code gets to
Overhead and Profit logic, the taxes, design and project management markups
will already need to have been calculated.

Any ideas would be helpful. Thanks.

--
Message posted via http://www.accessmonster.com

Oct 15 '06 #1
3 1572
How about if you give them a Form with their projects base cost on it.
Then give them a combobox hooked to your mark up table where
they can select, in the order of their choosing, the markups that will be
applied.

As they select them, you place those markups, both name of markup
and the markup in an array. maybe you also show the math on the form.

When they have picked all of their markups, you walk the array building
a string of the markup names in order and also the successive total cost .
Then show both in the form for their review acceptance. If they accept
store the data, both string (so you can reconstruct it) and value in a
table.

Kevin C

"rdemyan via AccessMonster.c om" <u6836@uwewro te in message
news:67d0c9e5aa 622@uwe...
My app contains data on projects. I've recently added functionality to
allow
for markups on a base cost. The code currently applies any markup to the
base cost only. However, in reality, some markups are on top of the base
cost + other markups. I have about 10 markups that can be applied and
users
may want to change the order in which the markups are applied. Plus there
may be multiple markups that go just against the base.

Here's an example:

Base Cost : $20,000
Taxes: 5% on Base Cost
Design: 10% on Base Cost
Project Management: 10% on (Base Cost + Taxes + Design)
Overhead and Profit: 15% on (Base Cost + Taxes + Design + Project
Management)
Contingency: 5% on (Base Cost + Design)

This is just an example, but I think I've conveyed the problem. Plus each
client may want to do this differently.

I have a table that keeps the markups for each category.

I need suggestions on how to setup the logic. Should I use a table with
columns that are the markup names. Then the user would check a checkbox
if
prior markups and the Base Cost are to be used for calculating the markup
in
question.

Even if I can put such a table together, it will be tricky with the
coding.
The markups will need to be calculated in order so that if the code gets
to
Overhead and Profit logic, the taxes, design and project management
markups
will already need to have been calculated.

Any ideas would be helpful. Thanks.

--
Message posted via http://www.accessmonster.com

Oct 16 '06 #2
You know as I think about this, aren't there business rules that a firm has
that defines how the markups are applied? Wouldn't a firm require
conformance with those rules and couldn't you then define a simple formula
to apply that?
"rdemyan via AccessMonster.c om" <u6836@uwewro te in message
news:67d0c9e5aa 622@uwe...
My app contains data on projects. I've recently added functionality to
allow
for markups on a base cost. The code currently applies any markup to the
base cost only. However, in reality, some markups are on top of the base
cost + other markups. I have about 10 markups that can be applied and
users
may want to change the order in which the markups are applied. Plus there
may be multiple markups that go just against the base.

Here's an example:

Base Cost : $20,000
Taxes: 5% on Base Cost
Design: 10% on Base Cost
Project Management: 10% on (Base Cost + Taxes + Design)
Overhead and Profit: 15% on (Base Cost + Taxes + Design + Project
Management)
Contingency: 5% on (Base Cost + Design)

This is just an example, but I think I've conveyed the problem. Plus each
client may want to do this differently.

I have a table that keeps the markups for each category.

I need suggestions on how to setup the logic. Should I use a table with
columns that are the markup names. Then the user would check a checkbox
if
prior markups and the Base Cost are to be used for calculating the markup
in
question.

Even if I can put such a table together, it will be tricky with the
coding.
The markups will need to be calculated in order so that if the code gets
to
Overhead and Profit logic, the taxes, design and project management
markups
will already need to have been calculated.

Any ideas would be helpful. Thanks.

--
Message posted via http://www.accessmonster.com

Oct 16 '06 #3
Thanks for the reply KC.

Yes, their are business rules but these can be somewhat different between
firms.

I decided to take the easy way out. When a project is created, the code
assigns a default markup scheme to the project (including relationships). .
I've given users a form where they can modify the markups assigned to a
project and the relationship. So the design markup, for example, markups the
sum of base cost + taxes + procurement + bond + contingency, etc.

The issue as I noted is how to actually do the calculation since to calculate
the design markup I have to have the taxes markup, the procurement markup,
the contingency markup, etc. first. There are 12 markups so far, so what I
did was to create a subroutine. I call the subroutine for each markup one at
a time. I then iterate through this entire thing 15 times. As the
iterations proceed, markups that were missing previously in the subroutine
(these would have been zero) now have a value, so the markup that is
currently being calculated is adjusted. Once all markups have been
determined, the calculated markup remains stable.

I've tested it and this simple solution seems to work.

Kc-Mass wrote:
>You know as I think about this, aren't there business rules that a firm has
that defines how the markups are applied? Wouldn't a firm require
conformance with those rules and couldn't you then define a simple formula
to apply that?
>My app contains data on projects. I've recently added functionality to
allow
[quoted text clipped - 36 lines]
>>
Any ideas would be helpful. Thanks.
--
Message posted via http://www.accessmonster.com

Oct 17 '06 #4

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

Similar topics

0
1224
by: Tiro | last post by:
Hi, I am trying to understand how does .Net Web Service handle requests for multiple clients simultaneously. Here is what I am trying to achieve. I have created a web serive that search database based on client request. Client submits query string. Issue: If I try to access web service from 2 clients simultaneously using
12
3756
by: Aaron Smith | last post by:
What is the best way to handle data in a multiple user environment? We have forms that will allow users to add edit and delete data from a table on SQL server. The data could be edited on multiple machines at the same time. How do you keep the dataset constantly updated with changes made to the data? I'm playing with just calling the fill method, but it seems pretty unstable at times. Especially when deleting records, they don't seem to...
4
17294
by: Wladimir Borsov | last post by:
Ok, think of let say 10 different web pages on the internet. Each of them are usual html web pages. Nothing special. What I want to do now is to create a new meta resp. grouping web page which contains all the "sub" web pages. BUT: NO FRAMES should be used!!! Instead I am thinking of a mechanism which just concatenates all the 10 different web pages and shows them as ONE page in my browser (IntExp or Firefox). Be aware of the...
5
3076
by: RichG | last post by:
I'm looking for a way to bring an open form to the top. I know that is I open a form directly with form1.show() and then later, while the form is open I do another form1.show(), that I will get original form to pop to the top. But because I want to have multiple instances of form1 open, I open it with dim frm as new form1 frm.show() What I need to do now is reference the opened form from another window and even pop it to the top if I...
7
5252
by: AboutJAV | last post by:
Hi, I was thinking of using MSMQ to handling multiple simultaneous database request to update or insert records to table. There could be hundreds of database existing connections trying to access the same table. I was thinking to writing an app with threads to listen and 1 at a time handle each request on the queue. Is this a good approach? If not, is there a better way with .NET/C#?
0
2002
by: pvrsatya | last post by:
Hi How to handle the Multiple clients in TCP server program . can u please send me the example of server program handle the multiple clients
0
979
by: tochisan | last post by:
Hello all, I'm writing a c# console program that's going to be run as a service but I want it to have the ability to handle arguments and run in a certain way. The program is supposed to monitor several different types of servers and update a SQL database with vital information. Several of the servers are different and require special considerations within the program. The easiest way for me to accomplish this is with arguments against the...
3
4105
by: jackson.rayne | last post by:
Hello, Another newbie question here. Let me explain my situation first. I have bought a 3rd party tool that runs a PHP script and gives me some HTML code which I can directly use in my pages. The code generated is normal HTML code, example
3
7102
by: psycho | last post by:
I am working on an N-tier application using following components: 1. Data Access Layer using DLINQ which consists of Data Context class and Table Mapping classes. 2. Business Logic Layer. 3. Presentation Layer (normal ASP.NET pages) The problem is that I have to handle database transactions which can span multiple tables. So where should I place the transaction code. I think I should do it in BLL. But how do I control the transaction at...
0
9690
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10273
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10250
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10032
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7574
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.