Django select distinct sum
- by yoshi
I have the following (greatly simplified) table structure:
Order:
order_number = CharField
order_invoice_number = CharField
order_invoice_value = CharField
An invoice number can be identical on more than one order (order O1 has invoice number I1, order O2 has invoice number I1, etc.). All the orders with the same invoice number have…