[FIX]Fixed some traceback and error.

[IMP]Improved code for move line create.

[FIX]Fixed error of for period_ids not found and supplier/customer creation error.
[FIX] fixed issue for journal items creation.