Fix entityLink.productStockLocation relationships where the idealQty is < criticalQty

Description

The migration for failed to correct any entityRelationship.productStockLocation that had idealQty < criticalQty as it was looking for the replacement archetype, entityLink.productStockLocation.

As a result, any historical relationship with an idealQty < criticalQty now triggers a validation error on save. This can occur when saving invoices.

Write a new migration to fix these, by swapping the idealQty and criticalQty where idealQty < criticalQty

Environment

None

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure