[BUG] "Lock Invoices" Workflow Using "When Sent" Option

I encountered a potential bug while using the “Lock Invoices” workflow with the “When Sent” option in my self-hosted environment. It would be helpful to investigate this issue further to determine whether it’s a bug in the workflow logic or if there’s a specific configuration or step that needs adjustment. Here are the details of the issue:


  • Environment: Docker, Ubuntu 22.04.3 LTS
  • Application Version: v5.6.31

Steps to Reproduce:

  1. Access the “Lock Invoices” workflow.
  2. Choose the “When Sent” option for invoice processing.
  3. Merge a customer with another customer in the system.
  4. Observe that the customer number changes on the invoice, which should not happen according to the workflow logic.

Expected Result: The customer number on the invoice should remain unchanged after merging two customers, as per the logic of the “Lock Invoices” workflow using the “When Sent” option.

Actual Result: The customer number on the invoice changes after merging customers, which is not expected behavior according to the workflow.

Has anyone else encountered this problem or found a solution? Your assistance in resolving this matter would be greatly appreciated.


I’m not sure if this is a bug or a limitation, feel free to create an issue to track this.