Ok, to expand my original thread:: items_purchased has a "company number", since this is a multi tenant database, that reflects what company this is part of (or division ...etc)
The company number is used to define the foreign key in this table to other tables: example: fk to customers = " company number + customers number" fk to items = "company number + item file" fk to gl = "company number + gl coa" >From reading the manuals and books, there seems to be an inability in the db.define_table to assign the "reference" to any other than on only fk. Is this true? Is there some way to work around this if it is true? Thanks Ben Duncan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

