Hi,
I am developing a back-end that process about 500 invoices a day. I have following tables in my database.
invoices
invoice_id int primary_key auto_increment
user_id varchar(10)
invoice_type enum { package, document }
users
user_id int primary_key auto_increment
rate_package_id int
rate_document_id int
rates
rate_id int
rate_name varchar(10)
rate_prices
price_id int primary_key auto_increment
rate_id int
weight int
price double(8,2)
at the end of day, I have to set price for each invoices.
how do I get prices of each invoices? I actually have no ieda except addding 'rate_package_id' and 'rate_package_document_id' to invoice table so I can query prices from rate_prices directly.