Aggiunti controlli per evitare righe duplicate in Vendita.
Fix su gestione UL in caso di Stampante non configurata. Migliorato controllo disponibiltà barcode reader su PointMobile.
This commit is contained in:
@@ -37,14 +37,24 @@ public class PointMobileBarcodeReader implements BarcodeReaderInterface {
|
||||
|
||||
@Override
|
||||
public boolean isRightAdapter() {
|
||||
return mScanManager != null;
|
||||
try {
|
||||
mScanManager.aDecodeGetResultType();
|
||||
return true;
|
||||
} catch (Exception ex) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() throws BarcodeAdapterNotFoundException {
|
||||
if(isRightAdapter()){
|
||||
mBackupResultType = mScanManager.aDecodeGetResultType();
|
||||
mScanManager.aDecodeSetResultType(ScanConst.ResultType.DCD_RESULT_USERMSG);
|
||||
try{
|
||||
|
||||
mBackupResultType = mScanManager.aDecodeGetResultType();
|
||||
mScanManager.aDecodeSetResultType(ScanConst.ResultType.DCD_RESULT_USERMSG);
|
||||
} catch (Exception ex) {
|
||||
throw new BarcodeAdapterNotFoundException(getAdapterName());
|
||||
}
|
||||
} else {
|
||||
throw new BarcodeAdapterNotFoundException(getAdapterName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user