You don’t have an “order” available from the trigger. The action is actually using the order attached to the metafield owner, which might be a bug, because I don’t think that owner is actually an order in this case but a location.
Probably the path to the order is payment schedule / paymentTerms / order / id (click “Add a variable” to insert it).
I think your logic has issues as well but hopefully that helps you test a bit.