Purchase order payment tool: it doesn't work with conditions properly