Find Jobs
Hire Freelancers

loop through transactions to get total discounts for employee

$30-75 USD

Closed
Posted about 16 years ago

$30-75 USD

Paid on delivery
i need some code added to my existing application to loop through each transaction for an employee to calculate the total discounts.? each transaction can consist of multiple service items.? an employee can also have hundreds of transactions associated to them.? it gets a little tricky where there are multiple discount coupons presented for 1 transaction. an example would be if they had a $7 transaction and they get a 1 bonus then a coupon is presented to the cashier for $7 off that is 100% so bonus of $1*100%=1 so that cancels out. then in the same transaction they have another service item for 4 and they get $.50 bonus and another coupon is presented for $4 off, but that is only percent value in the lookups table is 50% so the so .50*50%=.25 so the less discount for this 1 transaction is .25 then it would have to loop through the other transactions and do the same thing. i've attached an xls to let you see the sample data that we have in the db. i've also attached my db schema. transactions table consist of 1 transactions. tvalues consist of all service item for a transactions? ? tvalues.transid2=transactions.transid. lookups table consist of bonuses and discounts.
Project ID: 3843852

About the project

3 proposals
Remote project
Active 16 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
3 freelancers are bidding on average $51 USD for this job
User Avatar
See private message.
$24.65 USD in 2 days
4.9 (404 reviews)
6.8
6.8
User Avatar
See private message.
$63.75 USD in 2 days
4.4 (76 reviews)
5.9
5.9
User Avatar
See private message.
$63.75 USD in 2 days
5.0 (9 reviews)
3.9
3.9

About the client

Flag of UNITED STATES
United States
5.0
37
Payment method verified
Member since Oct 8, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.