All files / helpers/status translateOutboundOrdersWave.js

88.88% Statements 8/9
90% Branches 9/10
100% Functions 1/1
88.88% Lines 8/9

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      7x 6x   3x   1x   1x   1x   1x 1x                        
import I18n from '../i18n';
 
function statusOutboundOrdersWave(status) {
  if (status || status === 0) {
    switch (status) {
      case 1:
        return I18n.t('BEE1365' /* Pendente Separação */);
      case 2:
        return I18n.t('BEE1367' /* Em Separação */);
      case 3:
        return I18n.t('BEE1765' /* Concluído */);
      default:
        return status;
    }
  } else Eif (!status) {
    return [
      { value: 1, label: I18n.t('BEE1365' /* Pendente Separação */) },
      { value: 2, label: I18n.t('BEE1367' /* Em Separação */) },
      { value: 3, label: I18n.t('BEE1765' /* Concluído */) },
    ];
  }
  return status;
}
 
export default {
  statusOutboundOrdersWave,
};