You are describing Barter:

“That worker is also a tenant in the second company. Instead of paying the worker, my client applied his labor toward his rent in the second company. How do I post this in QB?”

Payroll in Company A, with a Net Pay deduction item that is the amount […]

Resolution for 'account amount issue: 'transactions involving two company files' available: Yes.

The account amount issue or error code is a known issue in Quickbooks Online (QBO) and/or Quickbooks. Support for this issue is available either by self-service or paid support options. Experts are available to resolve your Quickbooks issue to ensure minimal downtime and continue running your business. First try to resolve the account amount issue yourself by looking for a resolution described in the article. If it is a complex account amount issue or you are unable to solve the issue, you may contact us by clicking here or by using other account amount support options.

For more information about resolving issues related to account amount in Quickbooks/QBO or to get support for the issue 'transactions involving two company files', click the link below: