It calculate the sum of Invoice's items.
iDataIndex: number of current item row
tItems.fnSettings().fnRecordsTotal(): number of total items on Items table.