Issue #23459 Issue #23937 Support external pre-auths with no card_id.

Uses:
https://github.com/xtuple/qt-client/pull/381
@bendiy 
I don't know how the new process works either. @gpazo ?

As for the query, try this:
```
WITH counter AS (SELECT COUNT(*) AS freq
                   FROM payco
                  GROUP BY payco_ccpay_id, payco_cohead_id
                  ORDER BY 1)
SELECT COALESCE(MAX(freq), 1) <= 1
     FROM counter;
```