, Eigenvector wrote

@JoshRoss: Thank you josh, I made all the table as you mentioned in last reply. I think  " i " is the variable which i need to define in the program initially, Is that correct?

 

Thanks

Eigen.

 

 

The i is just an alias for the invoice table.