Dear Django developers,

Here is my problem:

author_A = [['book_x',1,10],['book_y',2,20],['book_z',3,30]]
author_B = [['book_s',5,10],['book_t',2,20],['book_z',3,30]]

author_A AND author_B = ['book_z',3,30]
             author_A = [['book_x',1,10],['book_y',2,20]]
             author_B = [['book_s',5,10],['book_t',2,20]]
             ---------------------------------------------
I Want present data like this
             author   quantity   Amount($)
              A & B     3            30
              A         3            30
              B         7            30
              total     13           90

I DO NOT Want present data like this !!! in this case it's ADDED duplicate
['book_z',3,30]
             author   quantity   Amount($)
              A         6            60
              B         10           60
              total     16           120

Anybody could you please help me to solve this problems?

Thanks in advanced,

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to