Hello everyone ,
I created a cutom event to trigger and error if the amounts don’t match in customer order ( screeshot below ) when creating a new CO :

But I get this error when I try to insert a new customer order line :

Does anyone know the root of the problem and how to resolve it .
Thank you in advance
Hanane