Cardápios
A tabela NM1 faz parte do sistema ERP Protheus da TOTVS e é utilizada para cardápios.
Ela pertence ao dicionário de dados do Protheus (SX2) e armazena informações essenciais utilizadas em processos como cadastros, movimentações e integrações do sistema.
A tabela NM1 possui diversos campos (SX3), cada um com regras específicas como tipo, tamanho e validações, além de índices (SIX) que otimizam a performance das consultas.
Nesta página você pode consultar a estrutura completa da tabela NM1, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | NM1 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | NM1990 |
| X2_NOME | Cardápios |
| X2_NOMESPA | Menús |
| X2_NOMEENG | Menus |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | NM1_FILIAL+NM1_COD+NM1_SEQ |
| X2_PYME | N |
| X2_MODULO | 0 |
| X2_DISPLAY | - |
| X2_SYSOBJ | - |
| X2_USROBJ | - |
| X2_POSLGT | 1 |
| X2_CLOB | 2 |
| X2_AUTREC | 2 |
| X2_TAMFIL | 2 |
| X2_TAMUN | 0 |
| X2_TAMEMP | 0 |
| X2_STAMP | 2 |
| X2_INSDT | 2 |
| D_E_L_E_T_ | - |
| R_E_C_N_O_ | 6852 |
| R_E_C_D_E_L_ | 0 |
| X3_ARQUIVO | X3_ORDEM | X3_CAMPO | X3_TIPO | X3_TAMANHO | X3_DECIMAL | X3_TITULO | X3_TITSPA | X3_TITENG | X3_DESCRIC | X3_DESCSPA | X3_DESCENG | X3_PICTURE | X3_VALID | X3_USADO | X3_RELACAO | X3_F3 | X3_NIVEL | X3_RESERV | X3_CHECK | X3_TRIGGER | X3_PROPRI | X3_BROWSE | X3_VISUAL | X3_CONTEXT | X3_OBRIGAT | X3_VLDUSER | X3_CBOX | X3_CBOXSPA | X3_CBOXENG | X3_PICTVAR | X3_WHEN | X3_INIBRW | X3_GRPSXG | X3_FOLDER | X3_PYME | X3_CONDSQL | X3_CHKSQL | X3_IDXSRV | X3_ORTOGRA | X3_IDXFLD | X3_TELA | X3_PICBRV | X3_AGRUP | X3_POSLGT | X3_MODAL | X3_CHKSUM | X3_ADDSUM | D_E_L_E_T_ | R_E_C_N_O_ | R_E_C_D_E_L_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NM1 | 01 | NM1_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial do Sistema | Sucursal del Sistema | System Branch | - | - | x x x x x x x x x x x x x x x | GSPFNVCOD1("NM1","NM1_COD",1,"") | - | 1 | - | - | - | - | N | V | R | - | EXISTCPO("SAH") | - | - | - | - | - | - | 033 | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 109058 | 0 |
| NM1 | 02 | NM1_COD | C | 6 | 0 | Codigo | Codigo | Code | Codigo Cardapio | Codigo Menu | Menu Code | - | - | x x x x x x x x x x x x x x x x | GSPFNVCOD1("NM1","NM1_COD",1,"") | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 109059 | 0 |
| NM1 | 03 | NM1_RES | C | 30 | 0 | Descr.Resum | Descr.Resum | Summ. Descr. | Descricao Resumida | Descripcion Resumida | Summarized description | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 109060 | 0 |
| NM1 | 04 | NM1_COM | C | 200 | 0 | Descr.Compl. | Descr.Compl. | Suppl.Descr. | Descricao Complementar | Descripcion Complementar | Supplementary description | @S50 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 109061 | 0 |
| NM1 | 05 | NM1_UM | C | 2 | 0 | Unid.Medida | Unid. Medida | Unit Meas. | Unidade de Medida | Unidad de Medida | Unit of Measure | - | - | x x x x x x x x x x x x x x x x | - | SAH | 1 | x xx | - | - | - | S | A | R | - | EXISTCPO("SAH") | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 109062 | 0 |
| NM1 | 06 | NM1_FATOR | N | 11 | 0 | Fator Conv | Factor Conv | Conv. Factor | Fator de Conversao da Um | Factor de Conversion de U | Conversion factor of UM | @E 99,999.9999 | M->NM1_FATOR>0 | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 109063 | 0 |
| NM1 | 07 | NM1_SEQ | C | 3 | 0 | Sequencia | Secuencia | Sequence | Sequencia do Cadastro | Secuencia del Archivo | File Sequence | 999 | EXISTCHAV("NM1", M->NM1_COD + M->NM1_SEQ ) | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 109064 | 0 |
| NM1 | 08 | NM1_TIPO | C | 1 | 0 | Tipo | Tipo | Type | Tipo Sequencia | Tipo Secuencia | Sequence Type | - | PERTENCE("12") | x x x x x x x x x x x x x x x x | "2" | - | 1 | x xxx | - | - | - | S | A | R | - | - | 1=Informacao;2=Produto | 1=Informacion;2=Producto | 1=Information;2=Product | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 109065 | 0 |
| NM1 | 09 | NM1_PROD | C | 15 | 0 | Produto | Producto | Product | Produto | Producto | Product | @! | EMPTY(M->NM1_PROD).OR.EXISTCPO("SB1") | x x x x x x x x x x x x x x x x | - | NM6 | 1 | x xx | - | S | - | S | A | R | - | - | - | - | - | - | - | - | 030 | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 109066 | 0 |
| NM1 | 10 | NM1_DESCP | C | 40 | 0 | Descricao | Descripcion | Description | Descricao Produto | Descripcion Producto | Product Description | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 109067 | 0 |
| NM1 | 11 | NM1_QUANT | N | 15 | 6 | Quant/Tempo | Cant/Tiem | Quant/Time | Quantidade/Tempo | Cantidad/Tiempo | Quantity/Time | @E 99999,999.999999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | A | R | - | m->Nm1_Quant >= 0 | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 109068 | 0 |
| NM1 | 12 | NM1_KCAL | N | 15 | 6 | KCalorias | KCalorias | KCalories | Kilos Calorias do Produto | Kilos Calorias do Product | Kilo Calories of Product | @E 99999,999.999999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 109069 | 0 |
| NM1 | 13 | NM1_KCALT | N | 15 | 6 | KCaloria Tot | KCaloria Tot | Tot.Calories | KCaloria Total | KCaloria Total | Total Calories | @e 99999,999.999999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 109070 | 0 |
| NM1 | 14 | NM1_GRAM | N | 13 | 2 | Gramas Unit | Gramos Unit | Unit Gram | Gramas Unitario | Gramos Unitario | Unit Gram | @e 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 109071 | 0 |
| NM1 | 15 | NM1_GRAMT | N | 13 | 2 | Gramas Total | Gramos Total | Tot. Grams | Gramas Total | Gramos Total | Total Grams | @e 99999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 109072 | 0 |
| NM1 | 16 | NM1_QDEALU | N | 9 | 3 | Qtd p/ Aluno | Cant p/Al. | Qty.p/studen | Quantidade por Aluno | Cantidad por Alumno | Quantity per student | @E 999,999.999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 109073 | 0 |
| INDICE | ORDEM | CHAVE | DESCRICAO | DESCSPA | DESCENG | PROPRI | F3 | NICKNAME | SHOWPESQ | IX_VIRTUAL | IX_VIRCUST | D_E_L_E_T_ | R_E_C_N_O_ | R_E_C_D_E_L_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NM1 | 1 | NM1_FILIAL+NM1_COD+NM1_SEQ | Codigo + Sequencia | Codigo + Secuencia | Code + Sequence | S | - | - | S | 2 | 3 | - | 15606 | 0 |
| NM1 | 2 | NM1_FILIAL+NM1_COD+NM1_PROD | Codigo + Produto | Codigo + Producto | Code + Product | S | - | - | S | 2 | 3 | - | 15607 | 0 |
| NM1 | 3 | NM1_FILIAL+NM1_RES | Descr.Resum | Descr.Resum | Summ. Descr. | S | - | - | S | 2 | 3 | - | 15608 | 0 |
| NM1 | 4 | NM1_FILIAL+NM1_PROD+NM1_COD | Produto + Codigo | Producto + Codigo | Product + Code | S | - | - | S | 2 | 3 | - | 15609 | 0 |
Ela é utilizada para cardápios dentro do sistema ERP Protheus.
Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.
Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.
Modelo de query gerado automaticamente com base na estrutura da tabela.
SELECT
NM1_FILIAL,
NM1_COD,
NM1_RES,
NM1_COM,
NM1_UM,
NM1_FATOR,
NM1_SEQ,
NM1_TIPO,
NM1_PROD,
NM1_DESCP,
NM1_QUANT,
NM1_KCAL,
NM1_KCALT,
NM1_GRAM,
NM1_GRAMT,
NM1_QDEALU
FROM NM1
WHERE
D_E_L_E_T_ = ' '
AND NM1_FILIAL = 'VALOR'
AND NM1_COD = 'VALOR'
AND NM1_RES = 'VALOR'
AND NM1_COM = 'VALOR'
AND NM1_UM = 'VALOR'
AND NM1_FATOR = 0
AND NM1_SEQ = 'VALOR'
AND NM1_TIPO = 'VALOR'
AND NM1_PROD = 'VALOR'
AND NM1_DESCP = 'VALOR'
AND NM1_QUANT = 0
AND NM1_KCAL = 0
AND NM1_KCALT = 0
AND NM1_GRAM = 0
AND NM1_GRAMT = 0
AND NM1_QDEALU = 0