Fixed bug in reallocation payments during purchase invoice edition.