Hello Anjana,
ODPI and DPI1 are the tables for Down-Payment-Invoice.
If you don't have rows in this Table, you don't need them.
Due to your question regarding SUM(T1."Price"*T1."Quantity")...
did you select same timeperiod ?
Here you can find some input for your Queries:
Thx to Unnikrishnan Balan