adding discount proxy and computation to subtotal

cc @ianstormtaylor @yields this is a key field for affiliate networks to let people accurately report how much revenue they need to pay the affiliate