I'm not looking for someone to write me a solution, but rather nudge me in the right direction.
So I have a processes that essentially creates a receipt. It records a price at the minimum. It can also include a discount and a tax.
I store this information in a database and display it in a ListView. I need to be able to give a subtotal after discounts, and a total after tax in an itemized summary, like on a receipt. However, I cannot figure out how I can dynamically track the different discount/tax rates. I'm thinking maybe I need a custom class that describes a line item. But I'm still left with how to divide those objects so they can be processed. Some sort of array or list? Help!
Price - Discount - Tax
1.55 - 10% - null
14.99 - 10% - 5.5%
12.00 - 10% - 5.5%
3.05 - null - 5.5%
3.33 - null - 0.5%
3.33 - null - 0.5%
4.50 - null - null
49.99 - null - 5.5%
18.99 - 25% - 5.5%
14.00 - 5% - null
etc...
Sub: 125.73
total of all 10% prices and then apply discount
total all 25% prices and then apply discount
total all 5% prices and then apply discount
....
total of all 10% prices after discount and then apply tax
total all 25% prices after discount and then apply tax
total all 5% prices after discount and then apply tax
total all prices with no discount, and then apply tax..
you get the picture. the point is, the layers have to be broken down to be totaled appropriately and then discounted/taxed appropriately.
I think the simplest, but not performances way Is to create custom querys against the database with corresponding queries.
An alternate way is to create an internal list and evaluate the list. Both ways are not the best but should work for a small amount of items.
Related
So VAT will be reduced from 17.5% to 15% tomorrow. So for example. If you were to buy a sim free HD from Carphone Warhouse, instead of paying £500 you should pay £475. The question is, will CPW and other retailers reduce their prices tomorrow? I hope so as I still have not got my phone.
tboy2000 said:
So VAT will be reduced from 17.5% to 15% tomorrow. So for example. If you were to buy a sim free HD from Carphone Warhouse, instead of paying £500 you should pay £475. The question is, will CPW and other retailers reduce their prices tomorrow? I hope so as I still have not got my phone.
Click to expand...
Click to collapse
Your calculation is a bit off:
The reduction would result in a price drop to £489.31, not £475.
Yep; a reduction from 17.5% to 15% isn't £475. You'd first have to find out what the Vat free price of the £500 item (in this case 500/1.175 which is 425).
So VAT of 15% would actually be 489 (425 x 1.15) as cr5ss11 said
Did I?
I worked it out as £500 - 17.5% = £412.50
£412.50 + 15% = £474.38
tboy2000 said:
Did I?
I worked it out as £500 - 17.5% = £412.50
Click to expand...
Click to collapse
Not -17.5%, but divided by 1.175:
500/1.175 = £425.53
I'd much rather see the VAT reduction equate to a reduction in line rental cost but I VERY highly doubt that the telcos would do that instead of increase their profit margins!
Tis otherwise very good news considering I'm buying a new PC on Tuesday! Less VAT means less expensive even if only slightly!
and considering the price of the HD went UP in the last week by about £25 or so (due to the strength of the dollar), then id say this would negate any VAT cut.
Since all prices are quoted as + VAT.
The prices would have to be adjusted from the day they are implimented (rather than announced).
Since VAT is a seperate element, they would have to put the prices up in order to make the total payable the same...
That's my take on it anyway.
Zuber
chaosdefinesorder said:
I'd much rather see the VAT reduction equate to a reduction in line rental cost but I VERY highly doubt that the telcos would do that instead of increase their profit margins!
Tis otherwise very good news considering I'm buying a new PC on Tuesday! Less VAT means less expensive even if only slightly!
Click to expand...
Click to collapse
(On another note: )
I'd much rather see it not change at all. Costing over £ 80 Billion, adding to the trillions that we are in debt already. Over 12 years to repay it... And your asking if it will save you £11 on your Touch HD
That £11 will be £15 when you pay that rather than your quality of health service
Just buy your Touch HD from play.com and use that 5% discount code
They'll price match Amazon too. Delta's hard to redeem on but if you're flexible it could save you the price of the Tab in airfare. It starts at Midnight PST tonight.
Here's the info...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25,000 Delta Skymiles for $500 goes LIVE TONIGHT – confirmed with Skymall
I looks like we go LIVE at midnight tonight PST thus 3:AM EST!
A MOST import KEY is to use this link:
http://www.skymall.com/25000
No other links will work! Here are some updates about the terms and conditions:
Offer valid only for purchases made at www.skymall.com/25000. Offer is limited to the first 1,000 (one thousand) orders. (Once 1,000 orders have been placed, customers will be directed to another site with earnings of 3 miles per dollar spent on merchandise.) To be eligible to receive 25,000 miles, the merchandise total, excluding tax and delivery fees, must be at least $500. Price matches are allowed, however, the order merchandise total AFTER the price match must equal at least $500 to be eligible to receive miles. Miles will not be awarded for canceled orders or items returned to merchant. Offer not valid on gift cards or Bose® merchandise. Offer not valid with any other discount, promotion or offer. Use of any coupon code will disqualify purchase from earning mileage. All offers are available to customers paying USD (US dollars) only. Not valid on previous purchases. Void where prohibited.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hi, i have a doubt about how exactly does admob pays us,
I mean, do i have to press a "transfer my money beaatch!" button? or it does it automatically every month no matter if i have 1k or 100 bucks? I really don't understand the system... it's my first time!
Thanks!
The minimum payout amount is $20 if you selected PayPal and $100 if you selected ACH/Wire. Processing begins as soon as you reach the minimum threshold.
rdefini without
Admob pay me every month automatically by paypal.
Godarm is right. In order for the processing to begin, you must meet the threshold for the method of payment you have selected.
$20 if you selected PayPal, $100 if you selected ACH/Wire. You must meet the threshold to be eligible for payment. If your total payable earnings are less than the threshold amount, AdMob rolls your earnings over to the following month.
On the 1st working day every month the money of the 2 month before (not the last month), will be charged from your earnings, if you've reached the threshold. The money transfer procedure will take at least 2 weeks before reaching your account, no matter the method you choose, paypal or wire.
Admob pays you this way
Cheers! AdMob begins processing payments for a month's earnings one month after the calendar month in which they are earned. There is a processing time of approximately two to three weeks. You will receive an email notifying you when payment processing begins. This happens on the date that funds are removed from your AdMob account and is the date recorded in the Account Summary page of the Account tab.
In order for the processing to begin, you must meet the threshold for the method of payment you have selected.
$20 if you selected PayPal
$100 if you selected ACH/Wire
You must meet the threshold to be eligible for payment. If your total payable earnings are less than the threshold amount, AdMob rolls your earnings over to the following month.
How to set threhold
Convert Your Computer/ Laptop Power to Mine Dogecoins and Earn Euros
Hi,
Recently i put my focus on investing in Bitcoins after getting scammed several places i found there is
no such place where you get doubling or trippling of your bitcoin investments or at least proper return
on investment.
Then i started calculating the ROI of the investment and found whatever investment you make in Bitcoins
mining or cloud mining you will be in Loss eventually.
What is the Alternate?
Mine the coins with your own hardware setups. ie. your own laptop or desktops loaded with graphic cards
or RAM power.
Looks crazy right? Everyone have their computers or laptops equipped with gaming graphic cards or high
end graphic cards or you may have high RAM capacity, use it guys and start earning.
I found this link
Code:
sites.google. com/site/freebitcoinsforall/best-cloud-miners
where it gives a clear ROI on investments on available cloud miners, but if you scroll down and see
cointellect the ROI is in 54.4 Days at the rate of 1.83% of your investment Everyday, Then I decided to
Try it and found a new way of making money from my computer.
I have a laptop with 16GB ram and 2 GB graphic card and in 15 minutes run I managed to Mine around 250
Doge coins. that equals to approximately 0.03 Euros, and if i keep this app running for min 15 hours per
day then my earnings will be 2.3 Euros per day without doing anything.
Code:
i.imgur.com/B1EqK1K.jpg
You need to signup and download their miner app for windows and put
a activation key which you get after successful activation of account
to start mining.
You have also have option to buy MH/s from their web portal to buy 10 MH/s you need to pay 99.9 Euro
which you can recover within 54 Days and the contract will be for 3 Months, Estimated earning will be 66
Euro per month and the profit after 3 months will be around 90 Euros. This is totally Optional and I
suggest to use your computer power to mine the coins since we all will be online most of the time and
this program will not effect your browsing work when system is mining coins.
This website is currently on invite only and i have managed to grab some invitation codes for XDA
members as below:
Code:
cointellect.com/?code=d408ec2b
cointellect.com/?code=ea949ce4
cointellect.com/?code=83b8fbc7
cointellect.com/?code=2d316d75
cointellect.com/?code=e5cec174
cointellect.com/?code=29521b1d
cointellect.com/?code=d20a1852
Join Now and start mining and Earning. If this helped you to earn few bucks then don't forget to +Rep
Code:
i.imgur.com/9kgsrJ8.jpg
If any body feel that this site is Scam then just follow this Link
Code:
dc.cointellect.com
Available also for mobile deveices IOS &Android
Good Morning,
We would like to inform you of our new promotion for new advertisers welcome. We offer 50 € totally free without any investment required for new customers registered on the platform.
The conditions are:
- Registration before 31/12/2016
- No I never have been registered on the platform.
- Limit 1 per customer account and address.
- The 50 € of promotional balance must be spent within a maximum period of 90 days.
- You must enter during registration promo code: WELCOME2016
- No bonds will be included later registration
The CPC ad format is a minimum of 0.01 € per bidding system.
Also available to tell you that affiliate program with 10% commission on spending (Advertisers) or income (Editor) of the aforementioned
Editors receive the following percentages on click on their ads:
- Web with more than 50,000 daily impressions -> 80%
- Web with less than 50,000 daily impressions -> 70%
The minimum payment is 20 € if done by PayPal. If done by transfer or check to Spain it is € 100. Transfers to other parts of the world have a minimum of 500 €.
Advertiser: mercainformatica.es/ppc-user-registration.php
Web Editor: mercainformatica.es/ppc-publisher-login.php
If you have any questions I'll be happy to answer you
George
Marketing responsible
MercaInformatica Ads Network
Registered Company in Spain CIF B-87576229