TOTVS RM

Documentos por tipo, itens e ficha atual do produto — Pro

Coligada/tipo/período, documento completo, linhas e cadastro atual do produto a pedido.

NÃO OFICIAL — NÃO VALIDADA EM UMA INSTALAÇÃO ERP REAL. Documentação selecionada e testes sintéticos, não instalação ERP real.

Para compras, vendas, operações, contabilidade e gestão: escolha a coligada, o tipo configurado do documento e o período de emissão. Veja número/série, parceiro atual, filial, local, datas, condições, centro de custo e valores cadastrados. Abra Itens do documento para consultar unidades, quantidades, preços comerciais, valores, entrega e organização de cada linha. Em Produto atual, abra a ficha cadastral da mesma coligada, com unidades, fabricante, cinco preços com nomes e moedas próprios, referências de estoque, pesos, controles e validade.

Por que Cifru? Adapte as configurações à sua forma de trabalhar. Escolha os campos, filtros e detalhes de que precisa e leve para o celular informações que talvez não estejam disponíveis no aplicativo móvel do seu sistema de gestão. As possibilidades dependem dos dados acessíveis na fonte autorizada e do seu plano Cifru.

Pro: uma fonte, um Home, três listas/Detalhes e duas ações sequenciais, inicialmente fechadas. Somente SELECT, live sem refresh periódico. Limites 2.000 documentos, 500 linhas e uma ficha de produto por leitura. Filtros nativos coligada/tipo/período de EMISSÃO são exigidos antes do limite final; descoberta não depende de parâmetros de abertura ainda não escolhidos. Fim da janela é exclusivo. Datas de movimento/saída/entrega não substituem emissão. Os filhos seguem o documento/linha selecionados, não reexecutam a janela inteira.

TIPOS E SITUAÇÕES: CODTMV/TIPO/STATUS e CANCELADO são códigos da origem. Não classifica automaticamente códigos como pedidos, notas fiscais, pagamentos, aprovação ou baixa válida. Confirme a parametrização do tipo e personalize a ficha conforme sua rotina. Mantém todos os registros conservados que correspondem ao filtro, inclusive códigos desconhecidos e cancelamentos; não promete abrangência de histórico ou validação fiscal.

VALORES: CODMOEVALORLIQUIDO pertence ao valor líquido do DOCUMENTO. A ficha não presume essa moeda para bruto/frete/seguro/desconto/despesa ou para PRECOUNITARIO/PRECOTABELA/VALORTOTALITEM/VALORLIQUIDO das linhas: confirme moeda e bases individualmente na origem. Nenhum BRL presumido, soma entre moedas, total calculado, impostos, arredondamento, saldo restante ou margem. Preço comercial PRECOUNITARIO não é o custo dinâmico VALORUNITARIO; esse custo não é consultado. VALORTOTALITEM é o valor armazenado, não fórmula quantidade×preço nem classificação líquido/bruto universal. NULL, zero, negativos e precisão são preservados.

QUANTIDADES: exibe registros atuais QUANTIDADE, QUANTIDADEARECEBER e QTDUNDPEDIDO, sem reconstruir quantidade original, faturada, disponível ou saldo de estoque. CODUND é unidade do item; não garante que as três quantidades usam a mesma base. Não converte ou soma unidades. A existência de linha/filial/local não significa que afeta estoque; DATAMOVIMENTO e regras de fechamento/faturamento têm papel específico no RM. A ficha do produto é cadastro ATUAL, não descrição, unidade, preço ou peso históricos do documento. As referências 2 são parâmetros, não saldos efetivos; não há consulta a TPRDLOC neste dossiê.

IDENTIDADE: documento por coligada+IDMOV; linha por coligada+IDMOV+NSEQITMMOV, não número do documento ou NUMEROSEQUENCIAL visível. Antes de ler filhos, revalida identidade e contexto original tipo/número/série/emissão/coligada e código do parceiro, preservando NULL diferente de vazio. Produto ainda precisa ser o da linha selecionada. Duplicatas ou identidades incompletas bloqueiam a leitura afetada; não primeira correspondência. Partner ausente/ambíguo conserva documento; produto ausente/ambíguo conserva linha, sem nome escolhido arbitrariamente ou fanout. Nomes FCFO são atuais, não snapshot histórico; FCFO.CODCOLIGADA usa TMOV.CODCOLCFO, não a coligada transacional. TPRODUTO usa IDPRD global na estrutura selecionada; TPRODUTODEF/TPARPRODUTO são por coligada.

PRODUTO ATUAL: cinco slots PRECOx conservam o nome configurado e sua própria CODMOEPRECOx. Não presume compra/venda/custo de slot1/2. Moeda ausente é indicada. Unidades de controle, compra/venda e pesos não criam conversões ou unidades físicas não documentadas. Controles de inativo/fracionado/lote/série são códigos sem legenda 0/1 inventada; validade em dias.

COMPATIBILIDADE: origens selecionadas de RM12.1.25, layout2024 e estrutura de produto global11.40; não certifica versão2026, owner/tipos/PK/FK ou instalação. Requer objetos dbo do adaptador já existentes, datas SQL nativas e SQL Server2012+ para CONCAT. dbo não é owner provado do fornecedor. Confirme nomes/edição/unicidade/datas/moedas/bases/parametrização e remapeie/teste antes de importar. Não executa inclusão, fórmulas visuais, importação, processos S-1250, NOLOCK, manutenção, regravação ou regeração dos exemplos documentais.

SEGURANÇA: conta SQL separada com SELECT mínimo aprovado e dados/empresas restritos na fonte. SQL direto não herda ACL/sessão/auditoria do RM. Filtros não são permissões. Limites de linhas não garantem consulta barata/completa; verifique índices, plano, timeouts e fuso. Busca/filtros locais abrangem só dados carregados. Sem CPF/CNPJ, bancos, credenciais, servidores ou dados reais no pacote. Oito capturas nativas complementares aprovadas, sem conexão RM real; exemplos inteiramente inventados.

Documentação: https://tdn-homolog.totvs.com/pages/releaseview.action?pageId=876226391 ; https://centraldeatendimento.totvs.com/hc/pt-br/articles/360025974972-Cross-Segmentos-TOTVS-BackOffice-Linha-RM-TOTVS-Gest%C3%A3o-de-Estoque-Compras-e-Faturamento-MOV-S-1250-Parametrizar-Tipo-de-movimento-NF-Emiss%C3%A3o-em-nome-do-Produtor-Rural ; https://centraldeatendimento.totvs.com/hc/pt-br/articles/1500003347142--Cross-Segmentos-TOTVS-BackOffice-Linha-RM-TOTVS-Gest%C3%A3o-de-Estoque-Compras-e-Faturamento-MOV-Diferen%C3%A7a-Entre-Pre%C3%A7o-Unit%C3%A1rio-e-Valor-Unit%C3%A1rio-do-Item-de-Movimento ; https://centraldeatendimento.totvs.com/hc/pt-br/articles/360063327113-Cross-Segmentos-TOTVS-BackOffice-Linha-RM-TOTVS-Gest%C3%A3o-de-Estoque-Compras-e-Faturamento-PRD-Produto-n%C3%A3o-%C3%A9-exibido-na-Ficha-F%C3%ADsica-Financeira

Galeria: Oito capturas nativas representativas demonstram os cards do documento, seus Detalhes, a abertura real dos itens, os Detalhes de uma linha, a abertura do produto atual e seus preços por coligada. Dados inteiramente inventados e marcados DEMO. A galeria exemplifica os três níveis, não mostra simultaneamente todas as 76 posições de Detalhes da configuração. Todas foram verificadas preenchidas em 16 capturas privadas; contextos repetidos e diagnósticos não são 76 novas colunas físicas. Sem ajuste de imagem ou redução dos campos para caber na galeria. Há casos sintéticos de NULL, zero, negativo e cadastro ausente; não dados do ERP real. As datas completas e os demais controles/pesos/validade continuam na configuração. A lista inicial que expõe o código last7Days, Home, quadros intermediários redundantes e RAW ficam privados. O preset nativo Últimos 7 dias inclui o dia atual; não se confunde com a janela fixa dos testes SQLite. Não teste em RM, SQL Server, iOS, instalação, compra Pro ou performance.

What this package creates

1 Home2 Details3 lists1 sources to map
  • Home: Documentos por tipo
  • Details: Itens do documento
  • Details: Produto atual
  • Sub-button: Itens do documento
  • Sub-button: Produto atual da coligada

Sources are mapped locally and verified before applying.

Custom queriesPRO3 SQL

Custom queries are a PRO feature. Cifru repeats read-only validation against the local source before execution.

Statically verified read-only$.components.workspaceSelection.datasets.0.sqlQuery
SELECT CONCAT(CAST(N'' AS nvarchar(max)), DATALENGTH(CAST(m.CODCOLIGADA AS nvarchar(max))), N':', CAST(m.CODCOLIGADA AS nvarchar(max)), N'|', DATALENGTH(CAST(m.IDMOV AS nvarchar(max))), N':', CAST(m.IDMOV AS nvarchar(max)), N'|') AS DocumentKey, m.IDMOV AS DocumentID, CASE WHEN m.CODTMV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODTMV AS nvarchar(max))) END AS TypeBind, CASE WHEN m.NUMEROMOV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.NUMEROMOV AS nvarchar(max))) END AS NumberBind, CASE WHEN m.SERIE IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.SERIE AS nvarchar(max))) END AS SeriesBind, CASE WHEN m.DATAEMISSAO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.DATAEMISSAO AS nvarchar(max))) END AS IssueBind, CASE WHEN m.CODCOLCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODCOLCFO AS nvarchar(max))) END AS PartnerCompanyBind, CASE WHEN m.CODCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODCFO AS nvarchar(max))) END AS PartnerCodeBind, m.CODCOLIGADA AS Company, m.CODFILIAL AS Branch, m.CODLOC AS Location, m.NUMEROMOV AS DocumentNumber, m.SERIE AS Series, m.CODTMV AS MovementCode, m.TIPO AS TypeCode, m.STATUS AS StateCode, m.DATAEMISSAO AS IssueTimestamp, m.DATAMOVIMENTO AS StockTimestamp, m.DATASAIDA AS ExitTimestamp, m.DATAENTREGA AS DeliveryTimestamp, m.CODCPG AS PaymentTerms, m.CODCCUSTO AS CostCenter, m.OBSERVACAO AS Notes, m.CODMOEVALORLIQUIDO AS NetCurrency, m.VALORLIQUIDO AS NetValue, m.VALORBRUTO AS GrossValue, m.VALORFRETE AS Freight, m.VALORSEGURO AS Insurance, m.VALORDESC AS Discount, m.VALORDESP AS Expense, COALESCE(NULLIF(m.NUMEROMOV,N''),N'Documento sem número registrado') AS RecordTitle, m.DATAEMISSAO AS IssueDay, p.NOME AS PartnerLegalName, p.NOMEFANTASIA AS PartnerTradeName, CASE WHEN p.CODCFO IS NULL THEN N'Sem cadastro único autorizado' ELSE N'Cadastro único atual' END AS PartnerMatch, CASE WHEN m.VALORLIQUIDO IS NULL THEN NULL ELSE CONCAT(COALESCE(NULLIF(m.CODMOEVALORLIQUIDO,N''),N'moeda não registrada'),N' · ',CAST(m.VALORLIQUIDO AS nvarchar(max))) END AS NetMoney FROM dbo.TMOV m LEFT JOIN dbo.FCFO p ON p.CODCOLIGADA=m.CODCOLCFO AND p.CODCFO=m.CODCFO AND 1=(SELECT COUNT(*) FROM dbo.FCFO q WHERE q.CODCOLIGADA=m.CODCOLCFO AND q.CODCFO=m.CODCFO) WHERE m.CODCOLIGADA IS NOT NULL AND m.IDMOV IS NOT NULL AND 1=(SELECT COUNT(*) FROM dbo.TMOV z WHERE z.CODCOLIGADA=m.CODCOLIGADA AND z.IDMOV=m.IDMOV)

static read-only checks passed

Statically verified read-only$.components.workspaceSelection.datasets.1.sqlQuery
SELECT CONCAT(CAST(N'' AS nvarchar(max)), DATALENGTH(CAST(m.CODCOLIGADA AS nvarchar(max))), N':', CAST(m.CODCOLIGADA AS nvarchar(max)), N'|', DATALENGTH(CAST(m.IDMOV AS nvarchar(max))), N':', CAST(m.IDMOV AS nvarchar(max)), N'|') AS DocumentKey, m.IDMOV AS DocumentID, CASE WHEN m.CODTMV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODTMV AS nvarchar(max))) END AS TypeBind, CASE WHEN m.NUMEROMOV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.NUMEROMOV AS nvarchar(max))) END AS NumberBind, CASE WHEN m.SERIE IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.SERIE AS nvarchar(max))) END AS SeriesBind, CASE WHEN m.DATAEMISSAO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.DATAEMISSAO AS nvarchar(max))) END AS IssueBind, CASE WHEN m.CODCOLCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODCOLCFO AS nvarchar(max))) END AS PartnerCompanyBind, CASE WHEN m.CODCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODCFO AS nvarchar(max))) END AS PartnerCodeBind, m.CODCOLIGADA AS Company, m.NUMEROMOV AS DocumentNumber, m.CODTMV AS MovementCode, i.NSEQITMMOV AS InternalSequence, i.IDPRD AS ProductID, CONCAT(CAST(N'' AS nvarchar(max)), DATALENGTH(CAST(i.CODCOLIGADA AS nvarchar(max))), N':', CAST(i.CODCOLIGADA AS nvarchar(max)), N'|', DATALENGTH(CAST(i.IDMOV AS nvarchar(max))), N':', CAST(i.IDMOV AS nvarchar(max)), N'|', DATALENGTH(CAST(i.NSEQITMMOV AS nvarchar(max))), N':', CAST(i.NSEQITMMOV AS nvarchar(max)), N'|') AS LineKey, CONCAT(CAST(N'' AS nvarchar(max)), DATALENGTH(CAST(i.CODCOLIGADA AS nvarchar(max))), N':', CAST(i.CODCOLIGADA AS nvarchar(max)), N'|', DATALENGTH(CAST(i.IDPRD AS nvarchar(max))), N':', CAST(i.IDPRD AS nvarchar(max)), N'|') AS ProductKey, CONCAT(N'Item ',COALESCE(CAST(i.NUMEROSEQUENCIAL AS nvarchar(max)),N'sem sequência'),N' · ',COALESCE(NULLIF(g.CODIGOPRD,N''),N'produto sem cadastro único')) AS LineTitle, g.CODIGOPRD AS ProductCode, g.NOMEFANTASIA AS ProductName, CASE WHEN g.IDPRD IS NULL THEN N'Sem cadastro único autorizado' ELSE N'Cadastro global único atual' END AS ProductMatch, i.NUMEROSEQUENCIAL AS VisibleSequence, i.CODFILIAL AS LineBranch, i.CODLOC AS LineLocation, i.CODUND AS Unit, i.QUANTIDADE AS Quantity, i.QUANTIDADEARECEBER AS QuantityToReceive, i.QTDUNDPEDIDO AS OrderUnitQuantity, i.DATAEMISSAO AS LineIssue, i.DATAENTREGA AS LineDelivery, i.PRECOUNITARIO AS UnitPrice, i.PRECOTABELA AS TablePrice, i.VALORTOTALITEM AS LineTotal, i.VALORLIQUIDO AS LineNet, i.VALORDESC AS LineDiscount, i.VALORDESP AS LineExpense, i.CODCCUSTO AS LineCostCenter, i.CODDEPARTAMENTO AS Department, i.PRATELEIRA AS Shelf, i.CANCELADO AS CancelledCode FROM dbo.TITMMOV i INNER JOIN dbo.TMOV m ON m.CODCOLIGADA=i.CODCOLIGADA AND m.IDMOV=i.IDMOV LEFT JOIN dbo.TPRODUTO g ON g.IDPRD=i.IDPRD AND 1=(SELECT COUNT(*) FROM dbo.TPRODUTO u WHERE u.IDPRD=i.IDPRD) WHERE m.CODCOLIGADA=:company AND m.IDMOV=:document AND CASE WHEN m.CODTMV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODTMV AS nvarchar(max))) END=:typebind AND CASE WHEN m.NUMEROMOV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.NUMEROMOV AS nvarchar(max))) END=:numberbind AND CASE WHEN m.SERIE IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.SERIE AS nvarchar(max))) END=:seriesbind AND CASE WHEN m.DATAEMISSAO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.DATAEMISSAO AS nvarchar(max))) END=:issuebind AND CASE WHEN m.CODCOLCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODCOLCFO AS nvarchar(max))) END=:partnercompanybind AND CASE WHEN m.CODCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODCFO AS nvarchar(max))) END=:partnercodebind AND 1=(SELECT COUNT(*) FROM dbo.TMOV z WHERE z.CODCOLIGADA=m.CODCOLIGADA AND z.IDMOV=m.IDMOV) AND i.NSEQITMMOV IS NOT NULL AND 1=(SELECT COUNT(*) FROM dbo.TITMMOV v WHERE v.CODCOLIGADA=i.CODCOLIGADA AND v.IDMOV=i.IDMOV AND v.NSEQITMMOV=i.NSEQITMMOV)

static read-only checks passed

Statically verified read-only$.components.workspaceSelection.datasets.2.sqlQuery
SELECT CONCAT(CAST(N'' AS nvarchar(max)), DATALENGTH(CAST(d.CODCOLIGADA AS nvarchar(max))), N':', CAST(d.CODCOLIGADA AS nvarchar(max)), N'|', DATALENGTH(CAST(d.IDPRD AS nvarchar(max))), N':', CAST(d.IDPRD AS nvarchar(max)), N'|') AS ProductKey, d.CODCOLIGADA AS Company, d.IDPRD AS ProductID, p.CODIGOPRD AS ProductCode, p.NOMEFANTASIA AS ProductName, d.CODUNDCONTROLE AS ControlUnit, COALESCE(NULLIF(p.CODIGOPRD,N''),N'Produto sem código único autorizado') AS RecordTitle, p.DESCRICAO AS Description, p.DESCRICAOAUX AS AuxDescription, p.INATIVO AS InactiveCode, d.CODUNDCOMPRA AS PurchaseUnit, d.CODUNDVENDA AS SalesUnit, d.NUMNOFABRIC AS ManufacturerNumber, CASE WHEN d.PRECO1 IS NULL THEN NULL ELSE CONCAT(COALESCE(NULLIF(t.NOMEDOPRECOPROD1,N''),N'Preço 1'), N' · ',COALESCE(NULLIF(d.CODMOEPRECO1,N''),N'moeda não registrada'),N' · ',CAST(d.PRECO1 AS nvarchar(max))) END AS Price1, CASE WHEN d.PRECO2 IS NULL THEN NULL ELSE CONCAT(COALESCE(NULLIF(t.NOMEDOPRECOPROD2,N''),N'Preço 2'), N' · ',COALESCE(NULLIF(d.CODMOEPRECO2,N''),N'moeda não registrada'),N' · ',CAST(d.PRECO2 AS nvarchar(max))) END AS Price2, CASE WHEN d.PRECO3 IS NULL THEN NULL ELSE CONCAT(COALESCE(NULLIF(t.NOMEDOPRECOPROD3,N''),N'Preço 3'), N' · ',COALESCE(NULLIF(d.CODMOEPRECO3,N''),N'moeda não registrada'),N' · ',CAST(d.PRECO3 AS nvarchar(max))) END AS Price3, CASE WHEN d.PRECO4 IS NULL THEN NULL ELSE CONCAT(COALESCE(NULLIF(t.NOMEDOPRECOPROD4,N''),N'Preço 4'), N' · ',COALESCE(NULLIF(d.CODMOEPRECO4,N''),N'moeda não registrada'),N' · ',CAST(d.PRECO4 AS nvarchar(max))) END AS Price4, CASE WHEN d.PRECO5 IS NULL THEN NULL ELSE CONCAT(COALESCE(NULLIF(t.NOMEDOPRECOPROD5,N''),N'Preço 5'), N' · ',COALESCE(NULLIF(d.CODMOEPRECO5,N''),N'moeda não registrada'),N' · ',CAST(d.PRECO5 AS nvarchar(max))) END AS Price5, d.ESTOQUEMINIMO2 AS MinStock2, d.ESTOQUEMAXIMO2 AS MaxStock2, d.PONTODEPEDIDO2 AS OrderPoint2, p.PESOBRUTO AS GrossWeight, p.PESOLIQUIDO AS NetWeight, p.PESAVEL AS FractionCode, p.CONTROLADOPORLOTE AS LotCode, p.USANUMSERIE AS SerialCode, p.TEMPOVALIDADE AS ShelfLifeDays, p.VALIDADEMINIMA AS MinimumShelfLifeDays, CASE WHEN p.IDPRD IS NULL THEN N'Sem cadastro único autorizado' ELSE N'Cadastro global único atual' END AS MasterMatch FROM dbo.TPRODUTODEF d LEFT JOIN dbo.TPRODUTO p ON p.IDPRD=d.IDPRD AND 1=(SELECT COUNT(*) FROM dbo.TPRODUTO q WHERE q.IDPRD=d.IDPRD) LEFT JOIN dbo.TPARPRODUTO t ON t.CODCOLIGADA=d.CODCOLIGADA AND 1=(SELECT COUNT(*) FROM dbo.TPARPRODUTO u WHERE u.CODCOLIGADA=d.CODCOLIGADA) WHERE d.CODCOLIGADA IS NOT NULL AND d.IDPRD IS NOT NULL AND 1=(SELECT COUNT(*) FROM dbo.TPRODUTODEF z WHERE z.CODCOLIGADA=d.CODCOLIGADA AND z.IDPRD=d.IDPRD) AND d.CODCOLIGADA=:company AND d.IDPRD=:product AND EXISTS (SELECT 1 FROM dbo.TMOV a INNER JOIN dbo.TITMMOV i ON i.CODCOLIGADA=a.CODCOLIGADA AND i.IDMOV=a.IDMOV WHERE a.CODCOLIGADA=:company AND a.IDMOV=:document AND CASE WHEN a.CODTMV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(a.CODTMV AS nvarchar(max))) END=:typebind AND CASE WHEN a.NUMEROMOV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(a.NUMEROMOV AS nvarchar(max))) END=:numberbind AND CASE WHEN a.SERIE IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(a.SERIE AS nvarchar(max))) END=:seriesbind AND CASE WHEN a.DATAEMISSAO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(a.DATAEMISSAO AS nvarchar(max))) END=:issuebind AND CASE WHEN a.CODCOLCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(a.CODCOLCFO AS nvarchar(max))) END=:partnercompanybind AND CASE WHEN a.CODCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(a.CODCFO AS nvarchar(max))) END=:partnercodebind AND 1=(SELECT COUNT(*) FROM dbo.TMOV h WHERE h.CODCOLIGADA=a.CODCOLIGADA AND h.IDMOV=a.IDMOV) AND i.NSEQITMMOV=:sequence AND i.IDPRD=:product AND 1=(SELECT COUNT(*) FROM dbo.TITMMOV j WHERE j.CODCOLIGADA=i.CODCOLIGADA AND j.IDMOV=i.IDMOV AND j.NSEQITMMOV=i.NSEQITMMOV))

static read-only checks passed

View the JSON being importedcollapsed by default

The exact portable content of this version.

{
    "components": {
        "sourceSlots": [
            {
                "displayName": "TOTVS RM — documentos SQL autorizados",
                "id": "67F4425E-EF9B-5A80-8F83-E00F3925B266",
                "kind": "sqlServer",
                "requiredObjects": [
                    "dbo.TMOV",
                    "dbo.TITMMOV",
                    "dbo.FCFO",
                    "dbo.TPRODUTO",
                    "dbo.TPRODUTODEF",
                    "dbo.TPARPRODUTO"
                ],
                "requiresCustomSQL": true
            }
        ],
        "workspaceSelection": {
            "commonFields": [],
            "datasets": [
                {
                    "cacheMode": "live",
                    "calculatedFields": [],
                    "customQueryIntegrationName": "TOTVS RM",
                    "endpointPath": "",
                    "fetchSortRules": [
                        {
                            "direction": "descending",
                            "id": "1B35F478-606A-5F4B-8DA0-3C83C59FA4E4",
                            "key": "IssueDay",
                            "type": "date"
                        },
                        {
                            "direction": "ascending",
                            "id": "6C99D094-05D0-5681-9500-0CA5504BECC9",
                            "key": "DocumentKey",
                            "type": "text"
                        }
                    ],
                    "id": "33E718B5-9C59-5ED2-A8AE-6B38D82D99A4",
                    "mappings": [
                        {
                            "commonFieldKey": "",
                            "key": "DocumentKey",
                            "label": "DocumentKey",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "DocumentKey",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "DocumentID",
                            "label": "DocumentID",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "DocumentID",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "TypeBind",
                            "label": "TypeBind",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "TypeBind",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "NumberBind",
                            "label": "NumberBind",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "NumberBind",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "SeriesBind",
                            "label": "SeriesBind",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "SeriesBind",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "IssueBind",
                            "label": "IssueBind",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "IssueBind",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "PartnerCompanyBind",
                            "label": "PartnerCompanyBind",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "PartnerCompanyBind",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "PartnerCodeBind",
                            "label": "PartnerCodeBind",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "PartnerCodeBind",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Company",
                            "label": "Coligada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Company",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Branch",
                            "label": "Filial (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Branch",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": true
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Location",
                            "label": "Local de estoque (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Location",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "DocumentNumber",
                            "label": "Número do documento",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "DocumentNumber",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Series",
                            "label": "Série",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Series",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "MovementCode",
                            "label": "Tipo de movimento (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "MovementCode",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": true
                        },
                        {
                            "commonFieldKey": "",
                            "key": "TypeCode",
                            "label": "Tipo nativo (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "TypeCode",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "StateCode",
                            "label": "Situação nativa (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "StateCode",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": true
                        },
                        {
                            "commonFieldKey": "",
                            "key": "IssueTimestamp",
                            "label": "Emissão — valor da origem",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "IssueTimestamp",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "StockTimestamp",
                            "label": "Data do movimento — origem",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "StockTimestamp",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "ExitTimestamp",
                            "label": "Data de saída — origem",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "ExitTimestamp",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "DeliveryTimestamp",
                            "label": "Entrega — data cadastrada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "DeliveryTimestamp",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "PaymentTerms",
                            "label": "Condição de pagamento (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "PaymentTerms",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "CostCenter",
                            "label": "Centro de custo (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "CostCenter",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Notes",
                            "label": "Observação",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Notes",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "NetCurrency",
                            "label": "Moeda do valor líquido do documento",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "NetCurrency",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "NetValue",
                            "label": "Valor líquido registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "NetValue",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "GrossValue",
                            "label": "Valor bruto registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "GrossValue",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Freight",
                            "label": "Frete registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Freight",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Insurance",
                            "label": "Seguro registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Insurance",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Discount",
                            "label": "Desconto registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Discount",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Expense",
                            "label": "Despesa registrada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Expense",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "RecordTitle",
                            "label": "RecordTitle",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "RecordTitle",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "IssueDay",
                            "label": "IssueDay",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "IssueDay",
                            "type": "date",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "PartnerLegalName",
                            "label": "Razão social atual do parceiro",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "PartnerLegalName",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "PartnerTradeName",
                            "label": "Nome fantasia atual do parceiro",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "PartnerTradeName",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "PartnerMatch",
                            "label": "Cadastro atual do parceiro",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "PartnerMatch",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "NetMoney",
                            "label": "Líquido — moeda própria",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "NetMoney",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": true
                        }
                    ],
                    "maxRows": 2000,
                    "name": "Documentos por tipo",
                    "primaryKey": "DocumentKey",
                    "queryParameters": [],
                    "refreshPolicy": {
                        "enabled": false,
                        "intervalMinutes": 60
                    },
                    "rootArrayPath": "",
                    "rowLimitEnabled": true,
                    "searchKeys": [
                        "Company",
                        "Branch",
                        "Location",
                        "DocumentNumber",
                        "Series",
                        "MovementCode",
                        "TypeCode",
                        "StateCode",
                        "IssueTimestamp",
                        "StockTimestamp",
                        "ExitTimestamp",
                        "DeliveryTimestamp",
                        "PaymentTerms",
                        "CostCenter",
                        "Notes",
                        "NetCurrency",
                        "NetValue",
                        "GrossValue",
                        "Freight",
                        "Insurance",
                        "Discount",
                        "Expense",
                        "PartnerLegalName",
                        "PartnerTradeName",
                        "PartnerMatch"
                    ],
                    "sourceID": "67F4425E-EF9B-5A80-8F83-E00F3925B266",
                    "sqlQuery": "SELECT CONCAT(CAST(N'' AS nvarchar(max)), DATALENGTH(CAST(m.CODCOLIGADA AS nvarchar(max))), N':', CAST(m.CODCOLIGADA AS nvarchar(max)), N'|', DATALENGTH(CAST(m.IDMOV AS nvarchar(max))), N':', CAST(m.IDMOV AS nvarchar(max)), N'|') AS DocumentKey, m.IDMOV AS DocumentID, CASE WHEN m.CODTMV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODTMV AS nvarchar(max))) END AS TypeBind, CASE WHEN m.NUMEROMOV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.NUMEROMOV AS nvarchar(max))) END AS NumberBind, CASE WHEN m.SERIE IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.SERIE AS nvarchar(max))) END AS SeriesBind, CASE WHEN m.DATAEMISSAO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.DATAEMISSAO AS nvarchar(max))) END AS IssueBind, CASE WHEN m.CODCOLCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODCOLCFO AS nvarchar(max))) END AS PartnerCompanyBind, CASE WHEN m.CODCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODCFO AS nvarchar(max))) END AS PartnerCodeBind, m.CODCOLIGADA AS Company, m.CODFILIAL AS Branch, m.CODLOC AS Location, m.NUMEROMOV AS DocumentNumber, m.SERIE AS Series, m.CODTMV AS MovementCode, m.TIPO AS TypeCode, m.STATUS AS StateCode, m.DATAEMISSAO AS IssueTimestamp, m.DATAMOVIMENTO AS StockTimestamp, m.DATASAIDA AS ExitTimestamp, m.DATAENTREGA AS DeliveryTimestamp, m.CODCPG AS PaymentTerms, m.CODCCUSTO AS CostCenter, m.OBSERVACAO AS Notes, m.CODMOEVALORLIQUIDO AS NetCurrency, m.VALORLIQUIDO AS NetValue, m.VALORBRUTO AS GrossValue, m.VALORFRETE AS Freight, m.VALORSEGURO AS Insurance, m.VALORDESC AS Discount, m.VALORDESP AS Expense, COALESCE(NULLIF(m.NUMEROMOV,N''),N'Documento sem número registrado') AS RecordTitle, m.DATAEMISSAO AS IssueDay, p.NOME AS PartnerLegalName, p.NOMEFANTASIA AS PartnerTradeName, CASE WHEN p.CODCFO IS NULL THEN N'Sem cadastro único autorizado' ELSE N'Cadastro único atual' END AS PartnerMatch, CASE WHEN m.VALORLIQUIDO IS NULL THEN NULL ELSE CONCAT(COALESCE(NULLIF(m.CODMOEVALORLIQUIDO,N''),N'moeda não registrada'),N' · ',CAST(m.VALORLIQUIDO AS nvarchar(max))) END AS NetMoney FROM dbo.TMOV m LEFT JOIN dbo.FCFO p ON p.CODCOLIGADA=m.CODCOLCFO AND p.CODCFO=m.CODCFO AND 1=(SELECT COUNT(*) FROM dbo.FCFO q WHERE q.CODCOLIGADA=m.CODCOLCFO AND q.CODCFO=m.CODCFO) WHERE m.CODCOLIGADA IS NOT NULL AND m.IDMOV IS NOT NULL AND 1=(SELECT COUNT(*) FROM dbo.TMOV z WHERE z.CODCOLIGADA=m.CODCOLIGADA AND z.IDMOV=m.IDMOV)",
                    "tableName": ""
                },
                {
                    "cacheMode": "live",
                    "calculatedFields": [],
                    "customQueryIntegrationName": "TOTVS RM",
                    "endpointPath": "",
                    "fetchSortRules": [
                        {
                            "direction": "ascending",
                            "id": "40AC97BA-78F0-5188-BEB2-64A1F71E5902",
                            "key": "VisibleSequence",
                            "type": "text"
                        },
                        {
                            "direction": "ascending",
                            "id": "38F61D5E-BAB6-5BA0-9081-0A7F02099C14",
                            "key": "LineKey",
                            "type": "text"
                        }
                    ],
                    "id": "634EEBA6-E76B-591B-BE8D-12BC3145A479",
                    "mappings": [
                        {
                            "commonFieldKey": "",
                            "key": "DocumentKey",
                            "label": "DocumentKey",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "DocumentKey",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "DocumentID",
                            "label": "DocumentID",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "DocumentID",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "TypeBind",
                            "label": "TypeBind",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "TypeBind",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "NumberBind",
                            "label": "NumberBind",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "NumberBind",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "SeriesBind",
                            "label": "SeriesBind",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "SeriesBind",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "IssueBind",
                            "label": "IssueBind",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "IssueBind",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "PartnerCompanyBind",
                            "label": "PartnerCompanyBind",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "PartnerCompanyBind",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "PartnerCodeBind",
                            "label": "PartnerCodeBind",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "PartnerCodeBind",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Company",
                            "label": "Coligada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Company",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "DocumentNumber",
                            "label": "Número do documento",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "DocumentNumber",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "MovementCode",
                            "label": "Tipo de movimento (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "MovementCode",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "InternalSequence",
                            "label": "InternalSequence",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "InternalSequence",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "ProductID",
                            "label": "ProductID",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "ProductID",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "LineKey",
                            "label": "LineKey",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "LineKey",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "ProductKey",
                            "label": "ProductKey",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "ProductKey",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "LineTitle",
                            "label": "LineTitle",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "LineTitle",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "ProductCode",
                            "label": "Código atual do produto",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "ProductCode",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "ProductName",
                            "label": "Nome atual do produto",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "ProductName",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "ProductMatch",
                            "label": "Cadastro global atual do produto",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "ProductMatch",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "VisibleSequence",
                            "label": "Número sequencial exibido",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "VisibleSequence",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "LineBranch",
                            "label": "Filial do item (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "LineBranch",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "LineLocation",
                            "label": "Local do item (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "LineLocation",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Unit",
                            "label": "Unidade do item (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Unit",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": true
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Quantity",
                            "label": "Quantidade registrada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Quantity",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": true
                        },
                        {
                            "commonFieldKey": "",
                            "key": "QuantityToReceive",
                            "label": "Quantidade a receber registrada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "QuantityToReceive",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "OrderUnitQuantity",
                            "label": "Quantidade na unidade do pedido",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "OrderUnitQuantity",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "LineIssue",
                            "label": "Emissão do item — origem",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "LineIssue",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "LineDelivery",
                            "label": "Entrega do item — origem",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "LineDelivery",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "UnitPrice",
                            "label": "Preço comercial registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "UnitPrice",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": true
                        },
                        {
                            "commonFieldKey": "",
                            "key": "TablePrice",
                            "label": "Preço de tabela registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "TablePrice",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "LineTotal",
                            "label": "Valor total registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "LineTotal",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": true
                        },
                        {
                            "commonFieldKey": "",
                            "key": "LineNet",
                            "label": "Valor líquido do item",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "LineNet",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "LineDiscount",
                            "label": "Desconto do item",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "LineDiscount",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "LineExpense",
                            "label": "Despesa do item",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "LineExpense",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "LineCostCenter",
                            "label": "Centro de custo do item",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "LineCostCenter",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Department",
                            "label": "Departamento (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Department",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Shelf",
                            "label": "Prateleira",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Shelf",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "CancelledCode",
                            "label": "Cancelado (código da origem)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "CancelledCode",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        }
                    ],
                    "maxRows": 500,
                    "name": "Itens do documento",
                    "primaryKey": "LineKey",
                    "queryParameters": [
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "Company",
                            "id": "388CA8B7-B096-52E0-919A-D386445501A1",
                            "name": "company",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "DocumentID",
                            "id": "46504572-B5D5-5320-AEAF-B8ACBA044474",
                            "name": "document",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "TypeBind",
                            "id": "2931BB51-8080-5C8F-B976-1073A815DF94",
                            "name": "typebind",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "NumberBind",
                            "id": "30293D07-32DD-5213-B7B1-2867011D0DEA",
                            "name": "numberbind",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "SeriesBind",
                            "id": "DBC7F2DD-3675-5883-9580-6DCD22E9FA89",
                            "name": "seriesbind",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "IssueBind",
                            "id": "54E2452D-41B1-550F-BE22-6FC41F7F76BA",
                            "name": "issuebind",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "PartnerCompanyBind",
                            "id": "B47F4F26-D1EF-5A46-A2EB-54AD3930974B",
                            "name": "partnercompanybind",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "PartnerCodeBind",
                            "id": "5643F0D3-524A-5D79-A7C3-83E8AAC3DD25",
                            "name": "partnercodebind",
                            "source": "parentField",
                            "type": "text"
                        }
                    ],
                    "refreshPolicy": {
                        "enabled": false,
                        "intervalMinutes": 60
                    },
                    "rootArrayPath": "",
                    "rowLimitEnabled": true,
                    "searchKeys": [
                        "Company",
                        "DocumentNumber",
                        "MovementCode",
                        "ProductCode",
                        "ProductName",
                        "ProductMatch",
                        "VisibleSequence",
                        "LineBranch",
                        "LineLocation",
                        "Unit",
                        "Quantity",
                        "QuantityToReceive",
                        "OrderUnitQuantity",
                        "LineIssue",
                        "LineDelivery",
                        "UnitPrice",
                        "TablePrice",
                        "LineTotal",
                        "LineNet",
                        "LineDiscount",
                        "LineExpense",
                        "LineCostCenter",
                        "Department",
                        "Shelf",
                        "CancelledCode"
                    ],
                    "sourceID": "67F4425E-EF9B-5A80-8F83-E00F3925B266",
                    "sqlQuery": "SELECT CONCAT(CAST(N'' AS nvarchar(max)), DATALENGTH(CAST(m.CODCOLIGADA AS nvarchar(max))), N':', CAST(m.CODCOLIGADA AS nvarchar(max)), N'|', DATALENGTH(CAST(m.IDMOV AS nvarchar(max))), N':', CAST(m.IDMOV AS nvarchar(max)), N'|') AS DocumentKey, m.IDMOV AS DocumentID, CASE WHEN m.CODTMV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODTMV AS nvarchar(max))) END AS TypeBind, CASE WHEN m.NUMEROMOV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.NUMEROMOV AS nvarchar(max))) END AS NumberBind, CASE WHEN m.SERIE IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.SERIE AS nvarchar(max))) END AS SeriesBind, CASE WHEN m.DATAEMISSAO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.DATAEMISSAO AS nvarchar(max))) END AS IssueBind, CASE WHEN m.CODCOLCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODCOLCFO AS nvarchar(max))) END AS PartnerCompanyBind, CASE WHEN m.CODCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODCFO AS nvarchar(max))) END AS PartnerCodeBind, m.CODCOLIGADA AS Company, m.NUMEROMOV AS DocumentNumber, m.CODTMV AS MovementCode, i.NSEQITMMOV AS InternalSequence, i.IDPRD AS ProductID, CONCAT(CAST(N'' AS nvarchar(max)), DATALENGTH(CAST(i.CODCOLIGADA AS nvarchar(max))), N':', CAST(i.CODCOLIGADA AS nvarchar(max)), N'|', DATALENGTH(CAST(i.IDMOV AS nvarchar(max))), N':', CAST(i.IDMOV AS nvarchar(max)), N'|', DATALENGTH(CAST(i.NSEQITMMOV AS nvarchar(max))), N':', CAST(i.NSEQITMMOV AS nvarchar(max)), N'|') AS LineKey, CONCAT(CAST(N'' AS nvarchar(max)), DATALENGTH(CAST(i.CODCOLIGADA AS nvarchar(max))), N':', CAST(i.CODCOLIGADA AS nvarchar(max)), N'|', DATALENGTH(CAST(i.IDPRD AS nvarchar(max))), N':', CAST(i.IDPRD AS nvarchar(max)), N'|') AS ProductKey, CONCAT(N'Item ',COALESCE(CAST(i.NUMEROSEQUENCIAL AS nvarchar(max)),N'sem sequência'),N' · ',COALESCE(NULLIF(g.CODIGOPRD,N''),N'produto sem cadastro único')) AS LineTitle, g.CODIGOPRD AS ProductCode, g.NOMEFANTASIA AS ProductName, CASE WHEN g.IDPRD IS NULL THEN N'Sem cadastro único autorizado' ELSE N'Cadastro global único atual' END AS ProductMatch, i.NUMEROSEQUENCIAL AS VisibleSequence, i.CODFILIAL AS LineBranch, i.CODLOC AS LineLocation, i.CODUND AS Unit, i.QUANTIDADE AS Quantity, i.QUANTIDADEARECEBER AS QuantityToReceive, i.QTDUNDPEDIDO AS OrderUnitQuantity, i.DATAEMISSAO AS LineIssue, i.DATAENTREGA AS LineDelivery, i.PRECOUNITARIO AS UnitPrice, i.PRECOTABELA AS TablePrice, i.VALORTOTALITEM AS LineTotal, i.VALORLIQUIDO AS LineNet, i.VALORDESC AS LineDiscount, i.VALORDESP AS LineExpense, i.CODCCUSTO AS LineCostCenter, i.CODDEPARTAMENTO AS Department, i.PRATELEIRA AS Shelf, i.CANCELADO AS CancelledCode FROM dbo.TITMMOV i INNER JOIN dbo.TMOV m ON m.CODCOLIGADA=i.CODCOLIGADA AND m.IDMOV=i.IDMOV LEFT JOIN dbo.TPRODUTO g ON g.IDPRD=i.IDPRD AND 1=(SELECT COUNT(*) FROM dbo.TPRODUTO u WHERE u.IDPRD=i.IDPRD) WHERE m.CODCOLIGADA=:company AND m.IDMOV=:document AND CASE WHEN m.CODTMV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODTMV AS nvarchar(max))) END=:typebind AND CASE WHEN m.NUMEROMOV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.NUMEROMOV AS nvarchar(max))) END=:numberbind AND CASE WHEN m.SERIE IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.SERIE AS nvarchar(max))) END=:seriesbind AND CASE WHEN m.DATAEMISSAO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.DATAEMISSAO AS nvarchar(max))) END=:issuebind AND CASE WHEN m.CODCOLCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODCOLCFO AS nvarchar(max))) END=:partnercompanybind AND CASE WHEN m.CODCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(m.CODCFO AS nvarchar(max))) END=:partnercodebind AND 1=(SELECT COUNT(*) FROM dbo.TMOV z WHERE z.CODCOLIGADA=m.CODCOLIGADA AND z.IDMOV=m.IDMOV) AND i.NSEQITMMOV IS NOT NULL AND 1=(SELECT COUNT(*) FROM dbo.TITMMOV v WHERE v.CODCOLIGADA=i.CODCOLIGADA AND v.IDMOV=i.IDMOV AND v.NSEQITMMOV=i.NSEQITMMOV)",
                    "tableName": ""
                },
                {
                    "cacheMode": "live",
                    "calculatedFields": [],
                    "customQueryIntegrationName": "TOTVS RM",
                    "endpointPath": "",
                    "fetchSortRules": [
                        {
                            "direction": "ascending",
                            "id": "F999D70E-EF17-5DAC-B4C7-A6D53CBACDE6",
                            "key": "ProductCode",
                            "type": "text"
                        },
                        {
                            "direction": "ascending",
                            "id": "D548628C-5C21-5B03-B3A8-C42AD3D04106",
                            "key": "ProductKey",
                            "type": "text"
                        }
                    ],
                    "id": "6798A0B1-B203-5769-A7BD-757329455C6A",
                    "mappings": [
                        {
                            "commonFieldKey": "",
                            "key": "ProductKey",
                            "label": "Chave técnica do produto na coligada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "ProductKey",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Company",
                            "label": "Coligada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Company",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": true
                        },
                        {
                            "commonFieldKey": "",
                            "key": "ProductID",
                            "label": "Identificador interno global",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "ProductID",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "ProductCode",
                            "label": "Código do produto",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "ProductCode",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "ProductName",
                            "label": "Nome do produto",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "ProductName",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "ControlUnit",
                            "label": "Unidade de controle",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "ControlUnit",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": true
                        },
                        {
                            "commonFieldKey": "",
                            "key": "RecordTitle",
                            "label": "Título da ficha",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "RecordTitle",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Description",
                            "label": "Descrição",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Description",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "AuxDescription",
                            "label": "Descrição auxiliar",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "AuxDescription",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "InactiveCode",
                            "label": "Inativo (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "InactiveCode",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "PurchaseUnit",
                            "label": "Unidade de compra cadastrada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "PurchaseUnit",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "SalesUnit",
                            "label": "Unidade de venda cadastrada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "SalesUnit",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "ManufacturerNumber",
                            "label": "Número no fabricante",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "ManufacturerNumber",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Price1",
                            "label": "Preço 1 — nome, moeda e valor",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Price1",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": true
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Price2",
                            "label": "Preço 2 — nome, moeda e valor",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Price2",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": true
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Price3",
                            "label": "Preço 3 — nome, moeda e valor",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Price3",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Price4",
                            "label": "Preço 4 — nome, moeda e valor",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Price4",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Price5",
                            "label": "Preço 5 — nome, moeda e valor",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Price5",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "MinStock2",
                            "label": "Estoque mínimo — referência 2",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "MinStock2",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "MaxStock2",
                            "label": "Estoque máximo — referência 2",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "MaxStock2",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "OrderPoint2",
                            "label": "Ponto de pedido — referência 2",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "OrderPoint2",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "GrossWeight",
                            "label": "Peso bruto cadastrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "GrossWeight",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "NetWeight",
                            "label": "Peso líquido cadastrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "NetWeight",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "FractionCode",
                            "label": "Venda fracionada (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "FractionCode",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "LotCode",
                            "label": "Controle por lote (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "LotCode",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "SerialCode",
                            "label": "Número de série (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "SerialCode",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "ShelfLifeDays",
                            "label": "Validade cadastrada em dias",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "ShelfLifeDays",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "MinimumShelfLifeDays",
                            "label": "Validade mínima em dias",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "MinimumShelfLifeDays",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "MasterMatch",
                            "label": "Cadastro global atual",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "MasterMatch",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        }
                    ],
                    "maxRows": 1,
                    "name": "Produto atual da coligada",
                    "primaryKey": "ProductKey",
                    "queryParameters": [
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "Company",
                            "id": "388CA8B7-B096-52E0-919A-D386445501A1",
                            "name": "company",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "DocumentID",
                            "id": "46504572-B5D5-5320-AEAF-B8ACBA044474",
                            "name": "document",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "TypeBind",
                            "id": "2931BB51-8080-5C8F-B976-1073A815DF94",
                            "name": "typebind",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "NumberBind",
                            "id": "30293D07-32DD-5213-B7B1-2867011D0DEA",
                            "name": "numberbind",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "SeriesBind",
                            "id": "DBC7F2DD-3675-5883-9580-6DCD22E9FA89",
                            "name": "seriesbind",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "IssueBind",
                            "id": "54E2452D-41B1-550F-BE22-6FC41F7F76BA",
                            "name": "issuebind",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "PartnerCompanyBind",
                            "id": "B47F4F26-D1EF-5A46-A2EB-54AD3930974B",
                            "name": "partnercompanybind",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "PartnerCodeBind",
                            "id": "5643F0D3-524A-5D79-A7C3-83E8AAC3DD25",
                            "name": "partnercodebind",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "InternalSequence",
                            "id": "1035A22B-4341-5FAA-A1AB-B85EE5441508",
                            "name": "sequence",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "ProductID",
                            "id": "BC6239D2-5DC3-5C4A-9275-2537088931C5",
                            "name": "product",
                            "source": "parentField",
                            "type": "text"
                        }
                    ],
                    "refreshPolicy": {
                        "enabled": false,
                        "intervalMinutes": 60
                    },
                    "rootArrayPath": "",
                    "rowLimitEnabled": true,
                    "searchKeys": [
                        "Company",
                        "ProductCode",
                        "ProductName",
                        "ControlUnit",
                        "Description",
                        "AuxDescription",
                        "InactiveCode",
                        "PurchaseUnit",
                        "SalesUnit",
                        "ManufacturerNumber",
                        "Price1",
                        "Price2",
                        "Price3",
                        "Price4",
                        "Price5",
                        "MinStock2",
                        "MaxStock2",
                        "OrderPoint2",
                        "GrossWeight",
                        "NetWeight",
                        "FractionCode",
                        "LotCode",
                        "SerialCode",
                        "ShelfLifeDays",
                        "MinimumShelfLifeDays",
                        "MasterMatch"
                    ],
                    "sourceID": "67F4425E-EF9B-5A80-8F83-E00F3925B266",
                    "sqlQuery": "SELECT CONCAT(CAST(N'' AS nvarchar(max)), DATALENGTH(CAST(d.CODCOLIGADA AS nvarchar(max))), N':', CAST(d.CODCOLIGADA AS nvarchar(max)), N'|', DATALENGTH(CAST(d.IDPRD AS nvarchar(max))), N':', CAST(d.IDPRD AS nvarchar(max)), N'|') AS ProductKey, d.CODCOLIGADA AS Company, d.IDPRD AS ProductID, p.CODIGOPRD AS ProductCode, p.NOMEFANTASIA AS ProductName, d.CODUNDCONTROLE AS ControlUnit, COALESCE(NULLIF(p.CODIGOPRD,N''),N'Produto sem código único autorizado') AS RecordTitle, p.DESCRICAO AS Description, p.DESCRICAOAUX AS AuxDescription, p.INATIVO AS InactiveCode, d.CODUNDCOMPRA AS PurchaseUnit, d.CODUNDVENDA AS SalesUnit, d.NUMNOFABRIC AS ManufacturerNumber, CASE WHEN d.PRECO1 IS NULL THEN NULL ELSE CONCAT(COALESCE(NULLIF(t.NOMEDOPRECOPROD1,N''),N'Preço 1'), N' · ',COALESCE(NULLIF(d.CODMOEPRECO1,N''),N'moeda não registrada'),N' · ',CAST(d.PRECO1 AS nvarchar(max))) END AS Price1, CASE WHEN d.PRECO2 IS NULL THEN NULL ELSE CONCAT(COALESCE(NULLIF(t.NOMEDOPRECOPROD2,N''),N'Preço 2'), N' · ',COALESCE(NULLIF(d.CODMOEPRECO2,N''),N'moeda não registrada'),N' · ',CAST(d.PRECO2 AS nvarchar(max))) END AS Price2, CASE WHEN d.PRECO3 IS NULL THEN NULL ELSE CONCAT(COALESCE(NULLIF(t.NOMEDOPRECOPROD3,N''),N'Preço 3'), N' · ',COALESCE(NULLIF(d.CODMOEPRECO3,N''),N'moeda não registrada'),N' · ',CAST(d.PRECO3 AS nvarchar(max))) END AS Price3, CASE WHEN d.PRECO4 IS NULL THEN NULL ELSE CONCAT(COALESCE(NULLIF(t.NOMEDOPRECOPROD4,N''),N'Preço 4'), N' · ',COALESCE(NULLIF(d.CODMOEPRECO4,N''),N'moeda não registrada'),N' · ',CAST(d.PRECO4 AS nvarchar(max))) END AS Price4, CASE WHEN d.PRECO5 IS NULL THEN NULL ELSE CONCAT(COALESCE(NULLIF(t.NOMEDOPRECOPROD5,N''),N'Preço 5'), N' · ',COALESCE(NULLIF(d.CODMOEPRECO5,N''),N'moeda não registrada'),N' · ',CAST(d.PRECO5 AS nvarchar(max))) END AS Price5, d.ESTOQUEMINIMO2 AS MinStock2, d.ESTOQUEMAXIMO2 AS MaxStock2, d.PONTODEPEDIDO2 AS OrderPoint2, p.PESOBRUTO AS GrossWeight, p.PESOLIQUIDO AS NetWeight, p.PESAVEL AS FractionCode, p.CONTROLADOPORLOTE AS LotCode, p.USANUMSERIE AS SerialCode, p.TEMPOVALIDADE AS ShelfLifeDays, p.VALIDADEMINIMA AS MinimumShelfLifeDays, CASE WHEN p.IDPRD IS NULL THEN N'Sem cadastro único autorizado' ELSE N'Cadastro global único atual' END AS MasterMatch FROM dbo.TPRODUTODEF d LEFT JOIN dbo.TPRODUTO p ON p.IDPRD=d.IDPRD AND 1=(SELECT COUNT(*) FROM dbo.TPRODUTO q WHERE q.IDPRD=d.IDPRD) LEFT JOIN dbo.TPARPRODUTO t ON t.CODCOLIGADA=d.CODCOLIGADA AND 1=(SELECT COUNT(*) FROM dbo.TPARPRODUTO u WHERE u.CODCOLIGADA=d.CODCOLIGADA) WHERE d.CODCOLIGADA IS NOT NULL AND d.IDPRD IS NOT NULL AND 1=(SELECT COUNT(*) FROM dbo.TPRODUTODEF z WHERE z.CODCOLIGADA=d.CODCOLIGADA AND z.IDPRD=d.IDPRD) AND d.CODCOLIGADA=:company AND d.IDPRD=:product AND EXISTS (SELECT 1 FROM dbo.TMOV a INNER JOIN dbo.TITMMOV i ON i.CODCOLIGADA=a.CODCOLIGADA AND i.IDMOV=a.IDMOV WHERE a.CODCOLIGADA=:company AND a.IDMOV=:document AND CASE WHEN a.CODTMV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(a.CODTMV AS nvarchar(max))) END=:typebind AND CASE WHEN a.NUMEROMOV IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(a.NUMEROMOV AS nvarchar(max))) END=:numberbind AND CASE WHEN a.SERIE IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(a.SERIE AS nvarchar(max))) END=:seriesbind AND CASE WHEN a.DATAEMISSAO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(a.DATAEMISSAO AS nvarchar(max))) END=:issuebind AND CASE WHEN a.CODCOLCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(a.CODCOLCFO AS nvarchar(max))) END=:partnercompanybind AND CASE WHEN a.CODCFO IS NULL THEN N'<NULL>' ELSE CONCAT(N'<TEXT>',CAST(a.CODCFO AS nvarchar(max))) END=:partnercodebind AND 1=(SELECT COUNT(*) FROM dbo.TMOV h WHERE h.CODCOLIGADA=a.CODCOLIGADA AND h.IDMOV=a.IDMOV) AND i.NSEQITMMOV=:sequence AND i.IDPRD=:product AND 1=(SELECT COUNT(*) FROM dbo.TITMMOV j WHERE j.CODCOLIGADA=i.CODCOLIGADA AND j.IDMOV=i.IDMOV AND j.NSEQITMMOV=i.NSEQITMMOV))",
                    "tableName": ""
                }
            ],
            "pages": [
                {
                    "actions": [
                        {
                            "id": "6019172E-34E7-5132-A406-CA35BCC62702",
                            "kind": "showRelated",
                            "relatedInitiallyExpanded": false,
                            "relatedPresentation": "separate",
                            "relatedPreviewLimit": 12,
                            "relatedRowStyle": "cards",
                            "relatedShowsCount": true,
                            "relationID": "D1CC93E0-7E54-5D28-BBD0-AB848622867A",
                            "systemImage": "list.bullet.rectangle",
                            "targetDatasetID": "634EEBA6-E76B-591B-BE8D-12BC3145A479",
                            "title": "Itens do documento",
                            "urlKey": ""
                        }
                    ],
                    "badgeKey": "",
                    "cardEnrichments": [],
                    "cardFieldLayout": [
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Branch",
                            "label": "Filial (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "MovementCode",
                            "label": "Tipo de movimento (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "StateCode",
                            "label": "Situação nativa (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "NetMoney",
                            "label": "Líquido — moeda própria",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        }
                    ],
                    "datasetID": "33E718B5-9C59-5ED2-A8AE-6B38D82D99A4",
                    "dateFilterKey": "",
                    "dateFilterLastDays": 7,
                    "dateFilterPreset": "none",
                    "detailFieldLayout": [
                        {
                            "detailGroup": "Documento e tipo configurado",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Company",
                            "label": "Coligada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Organização e condições",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Branch",
                            "label": "Filial (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Organização e condições",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Location",
                            "label": "Local de estoque (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Documento e tipo configurado",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "DocumentNumber",
                            "label": "Número do documento",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Documento e tipo configurado",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Series",
                            "label": "Série",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Documento e tipo configurado",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "MovementCode",
                            "label": "Tipo de movimento (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Documento e tipo configurado",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "TypeCode",
                            "label": "Tipo nativo (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Documento e tipo configurado",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "StateCode",
                            "label": "Situação nativa (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Datas diferentes — valores da origem",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "IssueTimestamp",
                            "label": "Emissão — valor da origem",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Datas diferentes — valores da origem",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "StockTimestamp",
                            "label": "Data do movimento — origem",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Datas diferentes — valores da origem",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "ExitTimestamp",
                            "label": "Data de saída — origem",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Datas diferentes — valores da origem",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "DeliveryTimestamp",
                            "label": "Entrega — data cadastrada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Organização e condições",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "PaymentTerms",
                            "label": "Condição de pagamento (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Organização e condições",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "CostCenter",
                            "label": "Centro de custo (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Organização e condições",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Notes",
                            "label": "Observação",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Valor líquido — moeda própria do documento",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "NetCurrency",
                            "label": "Moeda do valor líquido do documento",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Valor líquido — moeda própria do documento",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "NetValue",
                            "label": "Valor líquido registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Outros valores — confirme a moeda e a base",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "GrossValue",
                            "label": "Valor bruto registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Outros valores — confirme a moeda e a base",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Freight",
                            "label": "Frete registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Outros valores — confirme a moeda e a base",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Insurance",
                            "label": "Seguro registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Outros valores — confirme a moeda e a base",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Discount",
                            "label": "Desconto registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Outros valores — confirme a moeda e a base",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Expense",
                            "label": "Despesa registrada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Parceiro — cadastro atual, não histórico",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "PartnerLegalName",
                            "label": "Razão social atual do parceiro",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Parceiro — cadastro atual, não histórico",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "PartnerTradeName",
                            "label": "Nome fantasia atual do parceiro",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Parceiro — cadastro atual, não histórico",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "PartnerMatch",
                            "label": "Cadastro atual do parceiro",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        }
                    ],
                    "detailLiveRefreshSeconds": 0,
                    "fixedFilters": [],
                    "id": "7071AC6D-2EEB-51EA-905B-A0B80F518306",
                    "openFilters": [
                        {
                            "id": "1E2A9206-133A-539F-AF10-989CA340100E",
                            "includeAllOption": false,
                            "key": "Company",
                            "title": "Escolher coligada autorizada",
                            "type": "text"
                        },
                        {
                            "id": "A4F4DFB4-C19F-5BC8-86FC-6EAF0AB1EE1E",
                            "includeAllOption": false,
                            "key": "MovementCode",
                            "title": "Escolher tipo configurado",
                            "type": "text"
                        },
                        {
                            "datePeriodOptions": [
                                "today",
                                "currentMonth",
                                "last7Days",
                                "last30Days",
                                "last90Days"
                            ],
                            "id": "EBCD0034-CE34-5B4B-801B-79C0DE69A86B",
                            "includeAllOption": false,
                            "key": "IssueDay",
                            "title": "Período de emissão",
                            "type": "date"
                        }
                    ],
                    "pageSize": 100,
                    "requiresOpeningFilterSelection": true,
                    "showOnHome": true,
                    "sortRules": [
                        {
                            "direction": "descending",
                            "id": "1B35F478-606A-5F4B-8DA0-3C83C59FA4E4",
                            "key": "IssueDay",
                            "type": "date"
                        },
                        {
                            "direction": "ascending",
                            "id": "6C99D094-05D0-5681-9500-0CA5504BECC9",
                            "key": "DocumentKey",
                            "type": "text"
                        }
                    ],
                    "subtitle": "",
                    "subtitleKey": "PartnerLegalName",
                    "systemImage": "doc.text",
                    "title": "Documentos por tipo",
                    "titleKey": "RecordTitle"
                },
                {
                    "actions": [
                        {
                            "id": "55B029D7-9910-50F2-826C-7FF8CB31D803",
                            "kind": "showRelated",
                            "relatedInitiallyExpanded": false,
                            "relatedPresentation": "separate",
                            "relatedPreviewLimit": 12,
                            "relatedRowStyle": "cards",
                            "relatedShowsCount": true,
                            "relationID": "F56B1715-5A63-5999-81B9-F100FC0B9564",
                            "systemImage": "list.bullet.rectangle",
                            "targetDatasetID": "6798A0B1-B203-5769-A7BD-757329455C6A",
                            "title": "Produto atual",
                            "urlKey": ""
                        }
                    ],
                    "badgeKey": "",
                    "cardEnrichments": [],
                    "cardFieldLayout": [
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Unit",
                            "label": "Unidade do item (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Quantity",
                            "label": "Quantidade registrada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "UnitPrice",
                            "label": "Preço comercial registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "LineTotal",
                            "label": "Valor total registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        }
                    ],
                    "datasetID": "634EEBA6-E76B-591B-BE8D-12BC3145A479",
                    "dateFilterKey": "",
                    "dateFilterLastDays": 7,
                    "dateFilterPreset": "none",
                    "detailFieldLayout": [
                        {
                            "detailGroup": "Documento selecionado e produto atual",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Company",
                            "label": "Coligada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Documento selecionado e produto atual",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "DocumentNumber",
                            "label": "Número do documento",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Documento selecionado e produto atual",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "MovementCode",
                            "label": "Tipo de movimento (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Documento selecionado e produto atual",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "ProductCode",
                            "label": "Código atual do produto",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Documento selecionado e produto atual",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "ProductName",
                            "label": "Nome atual do produto",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Documento selecionado e produto atual",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "ProductMatch",
                            "label": "Cadastro global atual do produto",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Item, local e datas cadastradas",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "VisibleSequence",
                            "label": "Número sequencial exibido",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Item, local e datas cadastradas",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "LineBranch",
                            "label": "Filial do item (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Item, local e datas cadastradas",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "LineLocation",
                            "label": "Local do item (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Quantidades cadastradas — sem conversão",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Unit",
                            "label": "Unidade do item (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Quantidades cadastradas — sem conversão",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Quantity",
                            "label": "Quantidade registrada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Quantidades cadastradas — sem conversão",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "QuantityToReceive",
                            "label": "Quantidade a receber registrada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Quantidades cadastradas — sem conversão",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "OrderUnitQuantity",
                            "label": "Quantidade na unidade do pedido",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Item, local e datas cadastradas",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "LineIssue",
                            "label": "Emissão do item — origem",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Item, local e datas cadastradas",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "LineDelivery",
                            "label": "Entrega do item — origem",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Preços e valores — confirme moeda e bases",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "UnitPrice",
                            "label": "Preço comercial registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Preços e valores — confirme moeda e bases",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "TablePrice",
                            "label": "Preço de tabela registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Preços e valores — confirme moeda e bases",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "LineTotal",
                            "label": "Valor total registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Preços e valores — confirme moeda e bases",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "LineNet",
                            "label": "Valor líquido do item",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Preços e valores — confirme moeda e bases",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "LineDiscount",
                            "label": "Desconto do item",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Preços e valores — confirme moeda e bases",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "LineExpense",
                            "label": "Despesa do item",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Organização do item",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "LineCostCenter",
                            "label": "Centro de custo do item",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Organização do item",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Department",
                            "label": "Departamento (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Organização do item",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Shelf",
                            "label": "Prateleira",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Item, local e datas cadastradas",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "CancelledCode",
                            "label": "Cancelado (código da origem)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        }
                    ],
                    "detailLiveRefreshSeconds": 0,
                    "fixedFilters": [],
                    "id": "824FB02F-DDAB-558E-BCC0-442A9EC82323",
                    "openFilters": [],
                    "pageSize": 100,
                    "requiresOpeningFilterSelection": false,
                    "showOnHome": false,
                    "sortRules": [
                        {
                            "direction": "ascending",
                            "id": "40AC97BA-78F0-5188-BEB2-64A1F71E5902",
                            "key": "VisibleSequence",
                            "type": "text"
                        },
                        {
                            "direction": "ascending",
                            "id": "38F61D5E-BAB6-5BA0-9081-0A7F02099C14",
                            "key": "LineKey",
                            "type": "text"
                        }
                    ],
                    "subtitle": "",
                    "subtitleKey": "ProductName",
                    "systemImage": "doc.text",
                    "title": "Itens do documento",
                    "titleKey": "LineTitle"
                },
                {
                    "actions": [],
                    "badgeKey": "",
                    "cardEnrichments": [],
                    "cardFieldLayout": [
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Company",
                            "label": "Coligada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "ControlUnit",
                            "label": "Unidade de controle",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Price1",
                            "label": "Preço 1 — nome, moeda e valor",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Price2",
                            "label": "Preço 2 — nome, moeda e valor",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        }
                    ],
                    "datasetID": "6798A0B1-B203-5769-A7BD-757329455C6A",
                    "dateFilterKey": "",
                    "dateFilterLastDays": 7,
                    "dateFilterPreset": "none",
                    "detailFieldLayout": [
                        {
                            "detailGroup": "Produto global — dados atuais",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Company",
                            "label": "Coligada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Produto global — dados atuais",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "ProductCode",
                            "label": "Código do produto",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Produto global — dados atuais",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "ProductName",
                            "label": "Nome do produto",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Unidades por coligada — sem conversão",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "ControlUnit",
                            "label": "Unidade de controle",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Produto global — dados atuais",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Description",
                            "label": "Descrição",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Produto global — dados atuais",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "AuxDescription",
                            "label": "Descrição auxiliar",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Produto global — dados atuais",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "InactiveCode",
                            "label": "Inativo (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Unidades por coligada — sem conversão",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "PurchaseUnit",
                            "label": "Unidade de compra cadastrada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Unidades por coligada — sem conversão",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "SalesUnit",
                            "label": "Unidade de venda cadastrada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Unidades por coligada — sem conversão",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "ManufacturerNumber",
                            "label": "Número no fabricante",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Preços cadastrados — não preços de uma venda",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Price1",
                            "label": "Preço 1 — nome, moeda e valor",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Preços cadastrados — não preços de uma venda",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Price2",
                            "label": "Preço 2 — nome, moeda e valor",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Preços cadastrados — não preços de uma venda",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Price3",
                            "label": "Preço 3 — nome, moeda e valor",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Preços cadastrados — não preços de uma venda",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Price4",
                            "label": "Preço 4 — nome, moeda e valor",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Preços cadastrados — não preços de uma venda",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Price5",
                            "label": "Preço 5 — nome, moeda e valor",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Referência de estoque 2 — confirme a parametrização",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "MinStock2",
                            "label": "Estoque mínimo — referência 2",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Referência de estoque 2 — confirme a parametrização",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "MaxStock2",
                            "label": "Estoque máximo — referência 2",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Referência de estoque 2 — confirme a parametrização",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "OrderPoint2",
                            "label": "Ponto de pedido — referência 2",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Características cadastradas — confirme unidades e códigos",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "GrossWeight",
                            "label": "Peso bruto cadastrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Características cadastradas — confirme unidades e códigos",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "NetWeight",
                            "label": "Peso líquido cadastrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Características cadastradas — confirme unidades e códigos",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "FractionCode",
                            "label": "Venda fracionada (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Características cadastradas — confirme unidades e códigos",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "LotCode",
                            "label": "Controle por lote (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Características cadastradas — confirme unidades e códigos",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "SerialCode",
                            "label": "Número de série (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Características cadastradas — confirme unidades e códigos",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "ShelfLifeDays",
                            "label": "Validade cadastrada em dias",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Características cadastradas — confirme unidades e códigos",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "MinimumShelfLifeDays",
                            "label": "Validade mínima em dias",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Produto global — dados atuais",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "MasterMatch",
                            "label": "Cadastro global atual",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        }
                    ],
                    "detailLiveRefreshSeconds": 0,
                    "fixedFilters": [],
                    "id": "4C451638-0737-5E4B-AFEA-72199600CAA4",
                    "openFilters": [],
                    "pageSize": 100,
                    "requiresOpeningFilterSelection": false,
                    "showOnHome": false,
                    "sortRules": [
                        {
                            "direction": "ascending",
                            "id": "F999D70E-EF17-5DAC-B4C7-A6D53CBACDE6",
                            "key": "ProductCode",
                            "type": "text"
                        },
                        {
                            "direction": "ascending",
                            "id": "D548628C-5C21-5B03-B3A8-C42AD3D04106",
                            "key": "ProductKey",
                            "type": "text"
                        }
                    ],
                    "subtitle": "",
                    "subtitleKey": "ProductName",
                    "systemImage": "doc.text",
                    "title": "Produto atual da coligada",
                    "titleKey": "RecordTitle"
                }
            ],
            "relations": [
                {
                    "childDatasetID": "634EEBA6-E76B-591B-BE8D-12BC3145A479",
                    "childKey": "DocumentKey",
                    "id": "D1CC93E0-7E54-5D28-BBD0-AB848622867A",
                    "name": "Itens do documento",
                    "parentDatasetID": "33E718B5-9C59-5ED2-A8AE-6B38D82D99A4",
                    "parentKey": "DocumentKey"
                },
                {
                    "childDatasetID": "6798A0B1-B203-5769-A7BD-757329455C6A",
                    "childKey": "ProductKey",
                    "id": "F56B1715-5A63-5999-81B9-F100FC0B9564",
                    "name": "Produto atual",
                    "parentDatasetID": "634EEBA6-E76B-591B-BE8D-12BC3145A479",
                    "parentKey": "ProductKey"
                }
            ],
            "widgets": []
        }
    },
    "format": "cifru-configuration-package",
    "formatVersion": 1,
    "manifest": {
        "applicationName": "TOTVS RM",
        "changelog": "Novo dossiê Pro: coligada/tipo/período, documentos, itens e produto atual. Oito capturas DEMO; não teste em RM real.",
        "configurationLanguages": [
            "pt"
        ],
        "countries": [
            "BR"
        ],
        "createdAt": "2026-10-11T00:00:00Z",
        "description": "NÃO OFICIAL — NÃO VALIDADA EM UMA INSTALAÇÃO ERP REAL. Documentação selecionada e testes sintéticos, não instalação ERP real.\n\nPara compras, vendas, operações, contabilidade e gestão: escolha a coligada, o tipo configurado do documento e o período de emissão. Veja número/série, parceiro atual, filial, local, datas, condições, centro de custo e valores cadastrados. Abra Itens do documento para consultar unidades, quantidades, preços comerciais, valores, entrega e organização de cada linha. Em Produto atual, abra a ficha cadastral da mesma coligada, com unidades, fabricante, cinco preços com nomes e moedas próprios, referências de estoque, pesos, controles e validade.\n\nPor que Cifru? Adapte as configurações à sua forma de trabalhar. Escolha os campos, filtros e detalhes de que precisa e leve para o celular informações que talvez não estejam disponíveis no aplicativo móvel do seu sistema de gestão. As possibilidades dependem dos dados acessíveis na fonte autorizada e do seu plano Cifru.\n\nPro: uma fonte, um Home, três listas/Detalhes e duas ações sequenciais, inicialmente fechadas. Somente SELECT, live sem refresh periódico. Limites 2.000 documentos, 500 linhas e uma ficha de produto por leitura. Filtros nativos coligada/tipo/período de EMISSÃO são exigidos antes do limite final; descoberta não depende de parâmetros de abertura ainda não escolhidos. Fim da janela é exclusivo. Datas de movimento/saída/entrega não substituem emissão. Os filhos seguem o documento/linha selecionados, não reexecutam a janela inteira.\n\nTIPOS E SITUAÇÕES: CODTMV/TIPO/STATUS e CANCELADO são códigos da origem. Não classifica automaticamente códigos como pedidos, notas fiscais, pagamentos, aprovação ou baixa válida. Confirme a parametrização do tipo e personalize a ficha conforme sua rotina. Mantém todos os registros conservados que correspondem ao filtro, inclusive códigos desconhecidos e cancelamentos; não promete abrangência de histórico ou validação fiscal.\n\nVALORES: CODMOEVALORLIQUIDO pertence ao valor líquido do DOCUMENTO. A ficha não presume essa moeda para bruto/frete/seguro/desconto/despesa ou para PRECOUNITARIO/PRECOTABELA/VALORTOTALITEM/VALORLIQUIDO das linhas: confirme moeda e bases individualmente na origem. Nenhum BRL presumido, soma entre moedas, total calculado, impostos, arredondamento, saldo restante ou margem. Preço comercial PRECOUNITARIO não é o custo dinâmico VALORUNITARIO; esse custo não é consultado. VALORTOTALITEM é o valor armazenado, não fórmula quantidade×preço nem classificação líquido/bruto universal. NULL, zero, negativos e precisão são preservados.\n\nQUANTIDADES: exibe registros atuais QUANTIDADE, QUANTIDADEARECEBER e QTDUNDPEDIDO, sem reconstruir quantidade original, faturada, disponível ou saldo de estoque. CODUND é unidade do item; não garante que as três quantidades usam a mesma base. Não converte ou soma unidades. A existência de linha/filial/local não significa que afeta estoque; DATAMOVIMENTO e regras de fechamento/faturamento têm papel específico no RM. A ficha do produto é cadastro ATUAL, não descrição, unidade, preço ou peso históricos do documento. As referências 2 são parâmetros, não saldos efetivos; não há consulta a TPRDLOC neste dossiê.\n\nIDENTIDADE: documento por coligada+IDMOV; linha por coligada+IDMOV+NSEQITMMOV, não número do documento ou NUMEROSEQUENCIAL visível. Antes de ler filhos, revalida identidade e contexto original tipo/número/série/emissão/coligada e código do parceiro, preservando NULL diferente de vazio. Produto ainda precisa ser o da linha selecionada. Duplicatas ou identidades incompletas bloqueiam a leitura afetada; não primeira correspondência. Partner ausente/ambíguo conserva documento; produto ausente/ambíguo conserva linha, sem nome escolhido arbitrariamente ou fanout. Nomes FCFO são atuais, não snapshot histórico; FCFO.CODCOLIGADA usa TMOV.CODCOLCFO, não a coligada transacional. TPRODUTO usa IDPRD global na estrutura selecionada; TPRODUTODEF/TPARPRODUTO são por coligada.\n\nPRODUTO ATUAL: cinco slots PRECOx conservam o nome configurado e sua própria CODMOEPRECOx. Não presume compra/venda/custo de slot1/2. Moeda ausente é indicada. Unidades de controle, compra/venda e pesos não criam conversões ou unidades físicas não documentadas. Controles de inativo/fracionado/lote/série são códigos sem legenda 0/1 inventada; validade em dias.\n\nCOMPATIBILIDADE: origens selecionadas de RM12.1.25, layout2024 e estrutura de produto global11.40; não certifica versão2026, owner/tipos/PK/FK ou instalação. Requer objetos dbo do adaptador já existentes, datas SQL nativas e SQL Server2012+ para CONCAT. dbo não é owner provado do fornecedor. Confirme nomes/edição/unicidade/datas/moedas/bases/parametrização e remapeie/teste antes de importar. Não executa inclusão, fórmulas visuais, importação, processos S-1250, NOLOCK, manutenção, regravação ou regeração dos exemplos documentais.\n\nSEGURANÇA: conta SQL separada com SELECT mínimo aprovado e dados/empresas restritos na fonte. SQL direto não herda ACL/sessão/auditoria do RM. Filtros não são permissões. Limites de linhas não garantem consulta barata/completa; verifique índices, plano, timeouts e fuso. Busca/filtros locais abrangem só dados carregados. Sem CPF/CNPJ, bancos, credenciais, servidores ou dados reais no pacote. Oito capturas nativas complementares aprovadas, sem conexão RM real; exemplos inteiramente inventados.\n\nDocumentação: https://tdn-homolog.totvs.com/pages/releaseview.action?pageId=876226391 ; https://centraldeatendimento.totvs.com/hc/pt-br/articles/360025974972-Cross-Segmentos-TOTVS-BackOffice-Linha-RM-TOTVS-Gest%C3%A3o-de-Estoque-Compras-e-Faturamento-MOV-S-1250-Parametrizar-Tipo-de-movimento-NF-Emiss%C3%A3o-em-nome-do-Produtor-Rural ; https://centraldeatendimento.totvs.com/hc/pt-br/articles/1500003347142--Cross-Segmentos-TOTVS-BackOffice-Linha-RM-TOTVS-Gest%C3%A3o-de-Estoque-Compras-e-Faturamento-MOV-Diferen%C3%A7a-Entre-Pre%C3%A7o-Unit%C3%A1rio-e-Valor-Unit%C3%A1rio-do-Item-de-Movimento ; https://centraldeatendimento.totvs.com/hc/pt-br/articles/360063327113-Cross-Segmentos-TOTVS-BackOffice-Linha-RM-TOTVS-Gest%C3%A3o-de-Estoque-Compras-e-Faturamento-PRD-Produto-n%C3%A3o-%C3%A9-exibido-na-Ficha-F%C3%ADsica-Financeira\n\nGaleria: Oito capturas nativas representativas demonstram os cards do documento, seus Detalhes, a abertura real dos itens, os Detalhes de uma linha, a abertura do produto atual e seus preços por coligada. Dados inteiramente inventados e marcados DEMO. A galeria exemplifica os três níveis, não mostra simultaneamente todas as 76 posições de Detalhes da configuração. Todas foram verificadas preenchidas em 16 capturas privadas; contextos repetidos e diagnósticos não são 76 novas colunas físicas. Sem ajuste de imagem ou redução dos campos para caber na galeria. Há casos sintéticos de NULL, zero, negativo e cadastro ausente; não dados do ERP real. As datas completas e os demais controles/pesos/validade continuam na configuração. A lista inicial que expõe o código last7Days, Home, quadros intermediários redundantes e RAW ficam privados. O preset nativo Últimos 7 dias inclui o dia atual; não se confunde com a janela fixa dos testes SQLite. Não teste em RM, SQL Server, iOS, instalação, compra Pro ou performance.",
        "licenseCode": "Cifru-Community-1.0",
        "minimumCifruVersion": "1.1.0",
        "minimumPlan": "pro",
        "packageID": "3D3E64B5-70F3-5117-B228-480EE9D71B35",
        "rootButtonCount": 1,
        "summary": "Coligada/tipo/período, documento completo, linhas e cadastro atual do produto a pedido.",
        "tags": [
            "TOTVS RM",
            "SQL Server",
            "Documentos",
            "Itens",
            "Produtos",
            "Pro"
        ],
        "title": "Documentos por tipo, itens e ficha atual do produto — Pro"
    }
}

Tags

Reviews

There are no approved reviews for this version yet.

Write a review

Sign in to review

Similar templates

From the same application, then shared tags, in the same language and country.