All files / middlewares outboundOrdersPicking.js

100% Statements 166/166
100% Branches 184/184
100% Functions 9/9
100% Lines 166/166

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776                                      4x   4x 1x           3x 3x 1x           2x 2x 1x               3x   3x 1x         2x             2x 1x             2x   2x 1x                                 37x   37x 1x 36x 1x       35x 1x       34x 1x       33x 1x           32x                                     32x 1x   31x               1x 30x               2x       28x                   28x 1x         27x         1x       26x             1x           25x 10x 2x     8x 8x   8x 7x         8x 5x         8x 1x   7x 4x 1x                       3x 1x                     2x       1x                     3x 1x                       2x 1x                         17x                   17x 3x   14x 1x   13x 1x           12x                   12x 1x         11x         1x             10x                       10x 1x         9x                   9x 1x         8x                     8x 1x           7x                                     7x         1x               6x       6x 2x                 2x 1x                         5x                   5x 1x     4x 3x 1x               2x                                 2x 1x                             3x     3x                 3x 1x       2x     1x                   6x   6x 1x         5x       5x 1x         4x 1x         3x 1x         2x 1x             4x     4x                   4x                                                         4x   4x           3x 1x       2x 1x               3x   3x           3x 2x     1x       9x   9x   9x         9x 9x 4x           9x 1x   8x 5x 1x                     4x 1x                 3x 3x 3x             2x 2x       3x 1x                     3x   3x 1x                 2x 2x             1x 1x     2x 1x                     3x 3x                            
import moment from 'moment-timezone';
 
import { Op } from 'sequelize';
import APIError from '../helpers/error';
import { t } from '../helpers/i18n';
import BranchInformation from '../source/branches/information';
import ProductAllocationInformation from '../source/outboundOrderProductAllocations/information';
import OutboundOrderProductInformation from '../source/outboundOrderProducts/information';
import OutboundOrderInformation from '../source/outboundOrders/information';
import OutboundRangeInformation from '../source/outboundRange/information';
import StockInformation from '../source/stock/information';
import StorageAddressInformation from '../source/storageAddresses/information';
import UsersInformation from '../source/users/information';
import SerialGroupInformation from '../source/serialGroup/information';
import SerialLabelInformation from '../source/serialLabel/information';
import BaptismsInformation from '../source/baptisms/information';
import { models, sequelize } from '../../config/database';
 
function validOutboundOrderPickingList(req) {
  const { startDate, endDate } = req.query;
 
  if (!startDate || !endDate) {
    throw new APIError(
      '',
      t('BEE1212' /* Não foi informada a data inicial ou final */)
    );
  }
 
  const validStartDate = moment(startDate).isValid();
  if (!validStartDate) {
    throw new APIError(
      '',
      t('BEE1213' /* A data inicial informada não é válida */)
    );
  }
 
  const validEndDate = moment(endDate).isValid();
  if (!validEndDate) {
    throw new APIError(
      '',
      t('BEE1214' /* A data final informada não é válida */)
    );
  }
}
 
async function validOutboundOrderPickingOrder(req) {
  const { id } = req.query;
 
  if (!id)
    throw new APIError(
      '',
      t('BEE1215' /* ID do pedido de saída não informado */)
    );
 
  const outboundOrder = await OutboundOrderInformation.getOutboundOrder(
    {
      id,
    },
    { userBranches: req.userBranches }
  );
 
  if (!outboundOrder)
    throw new APIError(
      '',
      t('BEE1216' /* Pedido de saída não localizado com o ID informado */)
    );
}
 
async function validOutboundOrderByNumber(req) {
  const { orderNumber } = req.query;
 
  if (!orderNumber)
    throw new APIError(
      '',
      t('BEE1217' /* O número do pedido de saída não informado */)
    );
}
 
async function validConfirmPicking(req) {
  const {
    outboundRangeProductId,
    pickedQuantity,
    baptismLabel,
    storageAddressPicked,
    serialLabelControl = false,
    serialGroupId,
    serialLabelId,
    confirmDivergence,
    stage,
  } = req.body;
 
  if (!outboundRangeProductId)
    throw new APIError('', t('BEE2129' /* Produto não informado */));
  if (!pickedQuantity && !confirmDivergence)
    throw new APIError(
      '',
      t('BEE1221' /* Quantidade separada não informado */)
    );
  if (!parseFloat(pickedQuantity) && !confirmDivergence)
    throw new APIError(
      '',
      t('BEE2293' /* A quantidade tem que ser maior que 0 */)
    );
  if (!baptismLabel)
    throw new APIError(
      '',
      t('BEE1222' /* Etiqueta de batismo não informada */)
    );
  if (!storageAddressPicked)
    throw new APIError(
      '',
      t('BEE1223' /* Endereço da separação não informado */)
    );
 
  const outboundRangeProduct =
    await OutboundRangeInformation.getOutboundRangeProduct(
      {
        id: outboundRangeProductId,
      },
      {
        attributes: [
          'status',
          'picked',
          'quantity',
          'pickedQuantity',
          'allocationId',
          'outboundOrderProductId',
          'outboundOrderId',
          'outboundRangeId',
        ],
        include: [],
      }
    );
 
  if (!outboundRangeProduct)
    throw new APIError('', t('BEE3086' /* Produto não localizado no Range! */));
 
  if (
    !serialLabelControl &&
    (outboundRangeProduct.status === 4 ||
      outboundRangeProduct.picked ||
      parseFloat(outboundRangeProduct.quantity) -
        parseFloat(outboundRangeProduct.pickedQuantity || 0) <=
        0)
  ) {
    throw new APIError('', t('BEE3088' /* Produto já foi separado! */));
  } else if (
    serialLabelControl &&
    (outboundRangeProduct.status >= 4 ||
      outboundRangeProduct.picked ||
      parseFloat(outboundRangeProduct.quantity) -
        parseFloat(outboundRangeProduct.pickedQuantity || 0) <=
        0)
  ) {
    throw new APIError('', t('BEE3088' /* Produto já foi separado! */));
  }
 
  const productAllocation =
    await ProductAllocationInformation.getOutboundOrderProductAllocation(
      {
        id: outboundRangeProduct.allocationId,
      },
      {
        attributes: ['status', 'pickedQuantity', 'quantity', 'stockBalanceId'],
        include: [],
      }
    );
 
  if (!productAllocation)
    throw new APIError(
      '',
      t('BEE3089' /* Alocação do Produto não localizada! */)
    );
 
  if (
    !serialLabelControl &&
    (productAllocation.status > 3 ||
      parseFloat(productAllocation.pickedQuantity > 0))
  ) {
    throw new APIError(
      '',
      t('BEE3090' /* A alocação do produto já foi separada! */)
    );
  } else if (
    serialLabelControl &&
    (productAllocation.status > 3 ||
      parseFloat(productAllocation.quantity) -
        parseFloat(productAllocation.pickedQuantity || 0) <=
        0)
  ) {
    throw new APIError(
      '',
      t('BEE3090' /* A alocação do produto já foi separada! */)
    );
  }
 
  if (serialLabelControl) {
    if (!serialGroupId && !serialLabelId) {
      throw new APIError('', t('BEE2982' /* Etiqueta não informada */));
    }
 
    let serialGroup = null;
    let serialLabel = null;
 
    if (serialGroupId) {
      serialGroup = await SerialGroupInformation.getSerialGroup({
        id: serialGroupId,
      });
    }
 
    if (serialLabelId) {
      serialLabel = await SerialLabelInformation.getSerialLabel({
        id: serialLabelId,
      });
    }
 
    if (!serialGroup && !serialLabel)
      throw new APIError('', t('BEE2857' /* Etiqueta não encontrada. */));
 
    if (serialLabel) {
      if (parseFloat(serialLabel.quantity) < parseFloat(pickedQuantity)) {
        throw new APIError(
          '',
          t(
            'BEE3011',
            {
              0: serialLabel.code,
              1: parseFloat(serialLabel.quantity),
            } /* Saldo da etiqueta %{0} insuficiente! %{1} disponível. */
          )
        );
      }
 
      if (!serialLabel.serialGroup) {
        throw new APIError(
          '',
          t(
            'BEE3010',
            {
              0: serialLabel.code,
            } /* A etiqueta %{0} não está vinculada a nenhuma agrupadora! */
          )
        );
      }
 
      if (
        serialLabel.serialGroup.stockBalanceId !==
        productAllocation.stockBalanceId
      ) {
        throw new APIError(
          '',
          t(
            'BEE3008',
            {
              0: serialLabel.code,
            } /* Etiqueta %{0} não está alocada para este Documento de Saída! */
          )
        );
      }
    } else {
      if (parseFloat(serialGroup.quantity) < parseFloat(pickedQuantity)) {
        throw new APIError(
          '',
          t(
            'BEE3011',
            {
              0: serialGroup.code,
              1: parseFloat(serialGroup.quantity),
            } /* Saldo da etiqueta %{0} insuficiente! %{1} disponível. */
          )
        );
      }
 
      if (serialGroup.stockBalanceId !== productAllocation.stockBalanceId) {
        throw new APIError(
          '',
          t(
            'BEE3008',
            {
              0: serialGroup.code,
            } /* Etiqueta %{0} não está alocada para este Documento de Saída! */
          )
        );
      }
    }
  }
 
  const balance = await StockInformation.getStockBalance(
    {
      id: productAllocation.stockBalanceId,
    },
    {
      attributes: ['allocated', 'quantity'],
      include: [],
    }
  );
 
  if (!balance)
    throw new APIError('', t('BEE3091' /* Saldo do produto não encontrado! */));
 
  if (parseFloat(balance.allocated) - parseFloat(pickedQuantity) < 0)
    throw new APIError('', t('BEE3092' /* Saldo Alocado insuficiente! */));
 
  if (parseFloat(balance.quantity) - parseFloat(pickedQuantity) < 0)
    throw new APIError(
      '',
      t('BEE3093' /* Quantidade do Produto insuficiente! */)
    );
 
  const outboundOrderProduct =
    await OutboundOrderProductInformation.getOutboundOrderProduct(
      {
        id: outboundRangeProduct.outboundOrderProductId,
      },
      {
        attributes: ['pickedQuantity', 'quantity'],
        include: [],
      }
    );
 
  if (!outboundOrderProduct)
    throw new APIError(
      '',
      t('BEE3117' /* Produto do Documento de Saída não localizado! */)
    );
 
  if (
    parseFloat(outboundOrderProduct.pickedQuantity) +
      parseFloat(pickedQuantity) >
    parseFloat(outboundOrderProduct.quantity)
  )
    throw new APIError(
      '',
      t(
        'BEE3094' /* Quantidade total separada maior que quantidade solicitada! */
      )
    );
 
  const outboundOrder = await OutboundOrderInformation.getOutboundOrder(
    {
      id: outboundRangeProduct.outboundOrderId,
    },
    {
      attributes: ['branchCode'],
      include: [],
      userBranches: req.userBranches,
      order: [],
    }
  );
 
  if (!outboundOrder)
    throw new APIError(
      '',
      t('BEE3095' /* Documento de saída não localizado! */)
    );
 
  const outboundRange = await OutboundRangeInformation.getOutboundRange(
    {
      id: outboundRangeProduct.outboundRangeId,
    },
    {
      attributes: ['id'],
      include: [],
    }
  );
 
  if (!outboundRange)
    throw new APIError(
      '',
      t('BEE3096' /* Range do Documento de Saída não localizado! */)
    );
 
  const existStorageAddress = await StorageAddressInformation.getStorageAddress(
    {
      code: storageAddressPicked,
      branchCode: outboundOrder.branchCode,
    },
    {
      attributes: ['id'],
      include: [],
    }
  );
 
  if (!existStorageAddress)
    throw new APIError(
      '',
      t('BEE1224' /* O endereço informado não é válido */)
    );
 
  const productsBaptism =
    await OutboundRangeInformation.getOutboundRangeProducts(
      {
        baptismLabel,
      },
      {
        attributes: ['outboundOrderId'],
        include: [
          {
            attributes: ['id'],
            required: true,
            model: models.OutboundRange,
            as: 'outboundRange',
            where: { branchCode: outboundOrder.branchCode },
          },
        ],
      },
      { branchCode: req.userMainBranch }
    );
 
  if (
    productsBaptism &&
    productsBaptism.length > 0 &&
    productsBaptism[0].outboundOrderId !== outboundRangeProduct.outboundOrderId
  ) {
    throw new APIError(
      '',
      t(
        'BEE2573' /* Etiqueta de Batismo relacionada a outro Documento de Saída! */
      )
    );
  }
 
  const { serialControlDeposit } = await BranchInformation.getBranch({
    code: req.userMainBranch,
  });
 
  if (!serialControlDeposit) {
    const existUZ = await BaptismsInformation.getBaptism(
      {
        branchCode: outboundOrder.branchCode,
        code: baptismLabel,
        type: 2, // Saída
      },
      { attributes: ['id'] }
    );
 
    if (!existUZ) {
      throw new APIError(
        '',
        t(
          'BEE3756',
          {
            0: baptismLabel,
            1: t('BEE202' /* Saída */),
          } /* Etiqueta UZ %{0} do tipo %{1} não gerada. Por favor, verifique! */
        )
      );
    }
  }
 
  const branchSettings = await BranchInformation.getBranchSettings(
    {
      code: outboundOrder.branchCode,
    },
    {
      attributes: ['branchInInventory'],
      include: [],
    }
  );
 
  if (branchSettings.branchInInventory) {
    throw new APIError('', t('BEE3015' /* Filial em processo de Inventário */));
  }
 
  if (outboundOrder.typeOrders && outboundOrder.typeOrders.separationStage) {
    if (!stage) {
      throw new APIError(
        '',
        t('BEE3507', {
          0: t('BEE3589' /* Stage de Separação */),
        }) /* É necessário informar o endereço do tipo %{0}! */
      );
    }
 
    const stageAddress = await StorageAddressInformation.getStorageAddress(
      { code: stage, branchCode: outboundOrder.branchCode },
      {
        include: [
          {
            model: models.StorageAddressType,
            as: 'addressType',
            required: true,
            attributes: ['status'],
            where: {
              status: '9', // Stage de Separação
            },
          },
        ],
      }
    );
 
    if (!stageAddress) {
      throw new APIError(
        '',
        t(
          'BEE3585',
          {
            0: t('BEE3589' /* Stage de Separação */),
          } /* Não foi encontrado o cadastro de um endereço do tipo %{0}! Efetue o cadastro e tente novamente. */
        )
      );
    }
  }
}
 
async function validGreaterAmount(req) {
  const { outboundRangeProductId, pickedQuantity, confirmDivergence } =
    req.body;
 
  const outboundRangeProduct =
    await OutboundRangeInformation.getOutboundRangeProduct(
      {
        id: outboundRangeProductId,
      },
      {
        attributes: ['quantity'],
        include: [],
      }
    );
  if (!parseFloat(pickedQuantity) && !confirmDivergence) {
    throw new APIError(
      '',
      t('BEE2293' /* A quantidade tem que ser maior que 0 */)
    );
  } else if (
    parseFloat(pickedQuantity) > parseFloat(outboundRangeProduct.quantity)
  ) {
    throw new APIError(
      '',
      t(
        'BEE1602' /* A quantidade informada é superior à quantidade de separação! */
      )
    );
  }
}
 
async function validOutboundRange(req) {
  const { outboundRangeId } = req.query;
 
  if (!outboundRangeId)
    throw new APIError(
      '',
      t('BEE3097' /* Range do Documento de Saída inválido! */)
    );
 
  const outboundRange = await OutboundRangeInformation.getOutboundRange({
    id: outboundRangeId,
  });
 
  if (!outboundRange)
    throw new APIError(
      '',
      t('BEE3096' /* Range do Documento de Saída não localizado! */)
    );
 
  if (outboundRange.status > 2)
    throw new APIError(
      '',
      t('BEE3098' /* Range do documento já foi separado! */)
    );
 
  if (outboundRange.outboundWaveId)
    throw new APIError(
      '',
      t('BEE3099' /* Range do Documento relacionado à Onda de Separação! */)
    );
 
  if (outboundRange.pickedUser && outboundRange.pickedUser !== req.userId)
    throw new APIError(
      '',
      t('BEE3100' /* Range do documento está relacionado a outro separador! */)
    );
}
 
async function validateInformationForAutomaticConference(req) {
  const { outboundRangeProductId } = req.body;
 
  const outboundRangeProduct =
    await OutboundRangeInformation.getOutboundRangeProduct(
      {
        id: outboundRangeProductId,
      },
      {
        attributes: ['outboundOrderId'],
        include: [],
      }
    );
 
  const outboundOrder = await OutboundOrderInformation.getOutboundOrder(
    {
      id: outboundRangeProduct.outboundOrderId,
    },
    {
      attributes: ['pickingType'],
      include: [
        {
          required: false,
          model: models.TypeOrders,
          as: 'typeOrders',
          attributes: ['automaticCheckAfterPicking'],
          where: {
            branchCode: {
              [Op.eq]: sequelize.col('OutboundOrders.str_branch_code'),
            },
          },
        },
        {
          required: true,
          model: models.Branch,
          as: 'branch',
          attributes: ['automaticCheckAfterPicking', 'packageCode'],
        },
      ],
      order: [],
    }
  );
 
  const user = await UsersInformation.getUser({ id: req.userId });
 
  if (
    outboundOrder.pickingType === 2 &&
    (outboundOrder.typeOrders
      ? outboundOrder.typeOrders.automaticCheckAfterPicking
      : outboundOrder.branch.automaticCheckAfterPicking)
  ) {
    if (!outboundOrder.branch.packageCode)
      throw new APIError(
        '',
        t('BEE2358' /* A filial não possui Embalagem Padrão */)
      );
    if (!user.printer)
      throw new APIError(
        '',
        t('BEE2357' /* Usuário não possui Impressora Principal */)
      );
  }
}
 
async function validOutboundRangeProduct(req) {
  const { outboundRangeId } = req.query;
 
  const productsRange = await OutboundRangeInformation.getOutboundRangeProducts(
    {
      outboundRangeId,
    }
  );
 
  if (!productsRange || productsRange.length <= 0) {
    throw new APIError('', t('BEE3005' /* Produto não localizado! */));
  }
 
  req.outboundRangeProducts = productsRange;
}
 
async function validSerialLabel(req) {
  const { serialCode } = req.query;
 
  const { outboundRangeProducts } = req;
 
  const serialLabel = await SerialLabelInformation.getSerialLabel({
    branchCode: req.userMainBranch,
    code: serialCode,
  });
 
  let serialGroup = null;
  if (!serialLabel) {
    serialGroup = await SerialGroupInformation.getSerialGroup({
      branchCode: req.userMainBranch,
      code: serialCode,
    });
  }
 
  if (!serialGroup && !serialLabel)
    throw new APIError('', t('BEE2857' /* Etiqueta não encontrada. */));
 
  if (serialLabel) {
    if (!serialLabel.serialGroup) {
      throw new APIError(
        '',
        t(
          'BEE3010',
          {
            0: serialCode,
          } /* A etiqueta %{0} não está vinculada a nenhuma agrupadora! */
        )
      );
    }
 
    if (parseFloat(serialLabel.quantity) < 0) {
      throw new APIError(
        '',
        t(
          'BEE3009',
          { 0: serialLabel.code } /* A Etiqueta %{0} está sem saldo! */
        )
      );
    }
 
    let isProductFound = false;
    for (const outboundRangeProduct of outboundRangeProducts) {
      if (
        serialLabel.serialGroup.stockBalanceId ===
          outboundRangeProduct.allocation.stockBalanceId &&
        parseFloat(outboundRangeProduct.quantity) -
          parseFloat(outboundRangeProduct.pickedQuantity || 0) >
          0
      ) {
        isProductFound = true;
        break;
      }
    }
 
    if (!isProductFound) {
      throw new APIError(
        '',
        t(
          'BEE3008',
          {
            0: serialCode,
          } /* Etiqueta %{0} não está alocada para este Documento de Saída! */
        )
      );
    }
  } else {
    let isProductFound = false;
 
    if (parseFloat(serialGroup.quantity) < 0) {
      throw new APIError(
        '',
        t(
          'BEE3009',
          { 0: serialGroup.code } /* A Etiqueta %{0} está sem saldo! */
        )
      );
    }
 
    for (const outboundRangeProduct of outboundRangeProducts) {
      if (
        serialGroup.stockBalanceId ===
          outboundRangeProduct.allocation.stockBalanceId &&
        parseFloat(outboundRangeProduct.quantity) -
          parseFloat(outboundRangeProduct.pickedQuantity || 0) >
          0
      ) {
        isProductFound = true;
        break;
      }
    }
    if (!isProductFound)
      throw new APIError(
        '',
        t(
          'BEE3008',
          {
            0: serialCode,
          } /* Etiqueta %{0} não está alocada para este Documento de Saída! */
        )
      );
  }
 
  req.serialLabel = serialLabel;
  req.serialGroup = serialGroup;
}
 
export default {
  validOutboundOrderPickingList,
  validOutboundOrderPickingOrder,
  validOutboundOrderByNumber,
  validConfirmPicking,
  validGreaterAmount,
  validOutboundRange,
  validateInformationForAutomaticConference,
  validOutboundRangeProduct,
  validSerialLabel,
};