It all depends "where" you're placing the "hook" to call the iDev module.

This should work:
PHP Code:
$order->info['subtotal'