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