Hello, Daniel John
POS Connection Status got refreshes when the order try to save on server. So, just for the first time, you won't be able to know that the connection is alive or not unless you create the method to check the connection with a server.
For the immediate second order, you can override the order_validate method and check the connection like this :
var screens = require('point_of_sale.screens');
var PaymentScreen = screens.PaymentScreenWidget.include({
validate_order: function(force_validation) {
if (this.pos.get('synch').state === 'connected') {
if (this.order_is_valid(force_validation)) {
this.finalize_validation();
}
} else {
// Throw Error
}
});
And yes, we can active/deactivate this condition with an extra field in POS Config.
Hope this helps you. Cheers!