Receivable rules may use a period from the wrong company
The receivable rules create account move without any date nor period set. So the default values are used which may be from a different company than the rule applied as the company in the context may be different.