setCurrentScanType method

void setCurrentScanType(
  1. ScanType scanType
)

Implementation

void setCurrentScanType(ScanType scanType) {
  currentScan = scanType;
  switch (scanType) {
    case ScanType.collectStock:
      title = "collectStock";
      break;
    case ScanType.sellThru:
      title = "stockDelivery";
      break;
    case ScanType.spotSellThru:
      title = "spotSellThru";
      break;
    case ScanType.grn:
      title = "grnTitle";
      break;
    default:
      title = "collectStock";
      break;
  }
}