[FIX]Fixed some trace back in accounting new api.

Fixed following trace backs:
->Traceback on sendby email of account incoice.
->context argument error in compute_refund method,
->fixed some issue in yml test case.