I have a CSV file with current prices/item. These prices are updated regularly.
I have loaded a DB with datatool. I would like to use these prices to calculate totals according to quantities I have in my LaTeX file.
My price.csv has is as such:
item, price
A, 0.1
B, 0.03
C, 1.2
Now I would like to have a table where I have my quantities and totals as follows:
Item Quantity Total
A 100 10
B 5 0.15
C 1 1.2
Total 106 11.53
Where all totals are calculated as the values in price.csv tend to change.

\newcommand{\itemprice}[1]{\DTLgetvalueforkey{\result}{price}{price}{item}{#1}\result}and use\itemprice{B}to return0.03. – Werner Jul 22 '13 at 19:06