Skip to content

Commit

Permalink
Added group by owner_id
Browse files Browse the repository at this point in the history
  • Loading branch information
susu105 committed Jan 21, 2022
1 parent 898abf6 commit 96d2a50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions som_generationkwh/sql/aeat193_from_gkwh_invoices_query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ FROM (SELECT gkwh_owner.factura_line_id AS factura_line_id,
INNER JOIN account_invoice i ON i.id=f.invoice_id
INNER JOIN res_partner par ON par.id = gkwh_owner.owner_id
WHERE i.date_invoice BETWEEN %(start)s AND %(end)s
GROUP BY gkwh_owner.factura_line_id ORDER BY gkwh_owner.factura_line_id DESC) AS parcial
GROUP BY gkwh_owner.factura_line_id, gkwh_owner.owner_id ORDER BY gkwh_owner.factura_line_id DESC) AS parcial
GROUP BY owner_id, owner_id, owner_vat
ORDER BY owner_id;
ORDER BY owner_id;

0 comments on commit 96d2a50

Please sign in to comment.