omyha Posted September 18, 2014 Share Posted September 18, 2014 (edited) Hello ! I made an SQL query to list all invoices : id_order_invoice id_order total_products total_paid_tax_excl total_shipping_tax_excl total_paid_tax_incl date_add select `id_order_invoice`, `id_order`, `total_products`, `total_paid_tax_excl`, `total_shipping_tax_excl`, `total_paid_tax_incl`, `date_add` from ps_order_invoice order by `id_order_invoice` DESC But I want to add these columns in the table : firstname and name of the customer the VAT amount VAT rate I don't know how to join other tables to ps_order_invoice to do this : with id_order, we can get id_customer in ps_order and with id_customer, we can get firstname and lastname in ps_customer But what I've tried didn't work... Someone to help me ? Thanks everybody Alexis Edited September 18, 2014 by omyha (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted September 19, 2014 Share Posted September 19, 2014 The query is at http://www.prestashop.com/forums/topic/360900-requ%C3%AAte-sql-pour-sortir-les-factures-avec-le-nom-du-client-et-le-montant-de-la-tva/?do=findComment&comment=1803919 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now