fix invoice details ajax.