473,387 Members | 1,495 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,387 software developers and data experts.

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 1556
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.com" <u6836@uwewrote in message
news:67d0c9e5aa622@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.com" <u6836@uwewrote in message
news:67d0c9e5aa622@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
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...
12
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...
4
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...
5
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...
7
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...
0
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
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...
3
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...
3
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....
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.