[FIX]Fixed invoice template related and other issues.

[FIX]Fixed traceback for edi_invoice,context and invalid date format.

[FIX]Fixed some yml test cases.

[REV]Revert changes of yml.