for autofiling please check it on the book about dal default or ajax 
autocompletion
ref:
http://web2py.com/books/default/chapter/29/11/jquery-and-ajax#Auto-completion
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer

as richard said : please have normalization on your table.
e.g.
# create table : invoice_header
db.define_table('invoice_header', 
    Field('invoice_no'), 
    Field('invoice_date', 'date'), 
    Field('customer', 'reference customer'), 
    Field('grand_total', 'integer'), 
    auth.signature )

# create table : invoice_detail
db.define_table('invoice_detail', 
    Field('invoice_no', 'reference invoice_header'), 
    Field('product', 'reference product'), 
    Field('quantity', 'integer'), 
    Field('price', 'integer'), 
    Field('total_price', 'integer'), 
    Field('grand_total', 'integer'), 
    auth.signature )

for company info, i usually have a query from created_on field, that refer 
to auth_user table and show it when print the invoice, you can also learn 
from web2py appliances, estore and pos online store.

best regards,
stifan

-- 
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.

Reply via email to