RossWindows
Que?
- Local time
- Today, 01:10
- Joined
- Feb 25, 2008
- Messages
- 410
Hi all, I'm creating a discount calculator to easily find what price to adjust the items to.
The discount is that if the customer spends $300 or more of merchandise, they will receive $100 off their order.
So if the merch equals 400, the merch total after the discount would be $300. Sounds straight forward right? But accounting wants that $100 to be calculated into each item price so I have to find the percentage of the discount (300/400 = 75%) Then I have to apply 75% to each item price.
So if the items were originally:
Item 1 = $200
Item 2 = $200
Then the new prices would be:
Item 1 = $150 ($200 x .75)
Item 2 = $150
There could be an infinate number of items to calculate so what I have so far is a form that you enter the old merch amount and a text box to type the price of one item, then you click a button that adds the item price to a subform to be calculated after all the items have been entered.
My problem is that with this method, I have to use a table to hold the items until the new prices are calculated, but this table is going to keep growing unless it is cleared out.
I attached a sample, so if anyone wants to see if there is a cleaner way to do this, please let me know.
I'm using a spreadsheet right now that I threw together in 5 minutes. I've attached that as well so you can a working example of the calculations.
The discount is that if the customer spends $300 or more of merchandise, they will receive $100 off their order.
So if the merch equals 400, the merch total after the discount would be $300. Sounds straight forward right? But accounting wants that $100 to be calculated into each item price so I have to find the percentage of the discount (300/400 = 75%) Then I have to apply 75% to each item price.
So if the items were originally:
Item 1 = $200
Item 2 = $200
Then the new prices would be:
Item 1 = $150 ($200 x .75)
Item 2 = $150
There could be an infinate number of items to calculate so what I have so far is a form that you enter the old merch amount and a text box to type the price of one item, then you click a button that adds the item price to a subform to be calculated after all the items have been entered.
My problem is that with this method, I have to use a table to hold the items until the new prices are calculated, but this table is going to keep growing unless it is cleared out.
I attached a sample, so if anyone wants to see if there is a cleaner way to do this, please let me know.
I'm using a spreadsheet right now that I threw together in 5 minutes. I've attached that as well so you can a working example of the calculations.
Attachments
Last edited: