Marking a new dataTable row as consumed or cancelled
I think you did well to wrap shared code in if (data.wasConsumed || data.wasCancelled) { ... } to avoid code duplication.
However, thanks to that check, you don't need an else if inside,
a simple else will do:

if (data.wasConsumed) {     
   rowClass = ".consumed";  
} else {
   rowClass = ".cancelled";  
}   


And for a more compact writing style, a ternary will be handy here:

var rowClass = data.wasConsumed ? ".consumed" : ".cancelled";  


On the other hand,
if later you extend your code with one more condition,
for example if (data.wasConsumed || data.wasCancelled || data.wasForwarded) { ... } then you will need to bring back the if-else,
of course.

If at this point you already plan such extension soon, then your current conditions are fine as they are.

The parameter iDataIndex appears to be unused. As such, is better to omit it from the parameter list of the function. It's also a strange name anyway. (The "i" prefix is sometimes (poorly) used as an indicator of an index variable into an array, but then there's the "index" too for the same purpose, and much better.)