The table 'Purchase Header' has a field named 'Receive' and a field named 'Invoice'. These are both booleans. When an order is received nor invoiced both are obviously 0. When an order is received but not invoiced 'Receive' is set to 1 and 'Invoice' is set to 1. When an order is both received and invoiced both are 1.
I now found a few records in my database where 'Receive' is equal to 0 and 'Invoice' is equal to 1, which should not be possible (I think). When I look at the underlying order lines there is no outstanding quantity or anything else out of the ordinary.
This is only the case for 11 rows out of more than 18.000. I have no idea why this happens. Does anybody have an idea?