Adding account vat on payment 7

Moved from https://code.launchpad.net/~domsense/account-payment/adding_account_vat_on_payment_7/+merge/196914
At this point, you're in three levels of indentation, this is a clue to start factoring your code into sub functions.