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

Fixed following trace backs:
1. if i cancel the invoice give a traceback
2. create a payment information than give a tracback
3. create a customer payment than give a tracback
4. sale receipt view
5. create a supplier payment than give a traceback
6. pay invoice wizard view
7. customer invoice view