close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

produce table report

Thread began 12/11/2009 12:41 pm by mr hankey | Last modified 12/16/2009 4:03 pm by Jason Byrnes | 2233 views | 9 replies |

mr hankey

produce table report

hi,

how would i use a dataassist table wizard to produce a resulting table that shows how much money they have made from the sale to a client?

i have a products table which i though of inputtin a column for price however each sales advisor is on a different percentage rate for certain products. how would i implement this into the database and be able to view each salesperson rate and add it to a product for them to then view how much they have made in a table format on certain salesof products?

many thanks

Sign in to reply to this post

Jason ByrnesWebAssist

The Data Assist wizard cannot be use to create Reports. you would need to use the Dynamic Flash charts tool to create the type of reports you are talking about.

Sign in to reply to this post

mr hankey

thanks jason, how would i add a product rate to a specified user?

so at registration the one salesuser might be on 2% and another 5%?

many thanks again

Sign in to reply to this post

Jason ByrnesWebAssist

You need to create a column in the user table to hold this value. Set the default to 0, then as the administrator, you need to go into the database and change this rate to the desired value.

Sign in to reply to this post

mr hankey

thanks jason, so how would i generate the code to automatically work out how much he gets.

so for example commission =£500
salesman is on 3% of this.

would it be easier for to allow admins to add products to and assign rate to use an ecart object or something?

many thanks for your help

Sign in to reply to this post

Jason ByrnesWebAssist

to get 3% of 500, the math is:
500 - (0.03 * 500)


you can return the from the database in a recordset column and use that in the math:
<?php echo(500 - ($row_rsName['percentageColumn'] - 500)); ?>

Sign in to reply to this post

mr hankey

thanks jason, if i wanted to create a page to allow admins to add products and assign the percentage of that product to a salesman can this be done using just tblproducts & tblusers with datassist?

many thanks

Sign in to reply to this post

Jason ByrnesWebAssist

yes, tblproducts will need a foreign key relation to the tblusers table

Sign in to reply to this post

mr hankey

thanks jason, so what would the commission to the user be in the user table?

so users table

userid
usercommission

products table

productid
productcommission

what data type would the percentage be in the users mysql table?

thanks again

Sign in to reply to this post

Jason ByrnesWebAssist

the commission would be stored in the users table, not the products table:
so users table

userid - int , primary key
usercommission - double for example 0.03 for 3%

products table

productid
productUserID - Foreign key to users.userID

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...