TOTVS RM

Produtos, preços por coligada e saldos por local — Pro

Ficha de produto, cinco preços com moedas, unidades e saldos por filial/local a pedido.

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

Para compras, vendas, estoque e gestão: escolha a coligada e consulte produtos, descrição, unidades de controle, compra e venda, número no fabricante e cinco preços com o nome e o código de moeda cadastrados. Abra uma ficha com referências de estoque, pesos, validade e códigos de controle. Toque em Saldos por local para ler, apenas quando necessário, os registros desse produto na mesma coligada, por filial e local de estoque.

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 botão Home, duas listas/Detalhes e um sub-botão fechado. SELECT somente leitura; 2.000 produtos por coligada e 500 locais por leitura, sem refresh periódico. O filtro nativo de coligada é exigido na abertura e aplicado antes do limite; não exige parâmetros SQL ainda sem escolhas. Busca e filtros locais cobrem apenas os registros carregados. Limites não garantem execução barata ou resultados completos.

PRODUTO GLOBAL E EMPRESA: TPRODUTO usa IDPRD global na estrutura documentada a partir da migração 11.40. TPRODUTODEF e TPARPRODUTO são por coligada. Não trata a chave do DataServer CODCOLIGADA;IDPRD como uma coluna CODCOLIGADA da tabela global, nem consulta TPRD como se fosse essa tabela: TPRD é uma view de compatibilidade. As fichas nascem de definições por coligada. Master ausente ou ambíguo não elimina a definição, não escolhe um nome arbitrário e não multiplica linhas. Definições e locais com identidade incompleta/ambígua são excluídos; isso não prova ausência de produtos ou estoques.

PREÇOS: cada slot 1 a 5 conserva PRECOx, seu próprio CODMOEPRECOx e o nome configurado NOMEDOPRECOPRODx. Nome ausente/ambíguo usa somente Preço x; moeda ausente é indicada, não presumida BRL. Não afirma que Preço 1 é compra/custo ou Preço 2 é venda. São preços do cadastro ATUAL, não preços válidos de uma operação, tarifa com impostos, cotação, tabela promocional ou custo contábil. Valores são preservados como texto, sem soma, conversão ou arredondamento fixo. NULL continua ausente; zero e negativos não viram valores positivos. Não soma moedas diferentes.

ESTOQUE: mostra SALDOFISICO2, QUANTIDADE e SALDORESERVA guardados em TPRDLOC. A documentação StockLevel mapeia saldo atual/disponível/reservado apenas na parametrização DEFAULT e avisa que customizações podem mudar esse de-para. Confirme os três campos e a referência 2 com o administrador. A unidade de controle é CONTEXTO cadastral da coligada, não prova da base das quantidades nem conversão de unidades. Estoque mínimo, máximo e ponto de pedido da referência 2 são parâmetros, não saldo ou sugestão de compra calculada. Não soma locais, calcula disponível=físico-reservado, seleciona lotes, projeta saldo histórico ou mostra valor financeiro/custos com fallback presumido. Zero/negativos/NULL são distintos. O sub-botão revalida coligada+produto atual; outro produto com igual código não é trocado por ele.

CARACTERÍSTICAS: pesos são valores cadastrais sem unidade física inferida; validade é em dias conforme a lista física. Inativo, venda fracionada, lote e série são códigos da origem, sem inventar legenda 0/1, sim/não ou estado atual de disponibilidade. Campos técnicos de identidade e auditoria não são exibidos. Não é execução de processos de compra, estoque ou alteração de produto.

COMPATIBILIDADE A VERIFICAR: lista física RM 11.40 (23/10/2012), mapa StockLevel 1.001/3.003 (24/10/2022) e artigos públicos de corroboracão selecionada. Não certifica uma versão 2026. Requer os quatro objetos dbo existentes do adaptador; dbo não é owner comprovado do fornecedor. Confirme versão, colunas, tipos, unicidade, nomes de preços, moeda, bases e parametrização; remapeie e teste antes de importar. SQL Server 2012+ para CONCAT. Não cria objetos, concede direitos ou busca outro owner. O contexto do WebService e os campos fiscais do Smart View não são promovidos em novas colunas SQL.

SEGURANÇA: use conta SQL separada com SELECT mínimo aprovado pela empresa e empresas/produtos restritos na fonte. SQL externo não herda permissões ou auditoria do RM; filtros não são ACL. As consultas não usam NOLOCK nem executam exemplos de inclusão/importação dos manuais. Verifique índices, planos e timeout com o administrador. Nenhum servidor, usuário, senha ou dado empresarial é incluído. Exemplos inteiramente inventados; seis capturas nativas complementares aprovadas, sem conexão RM real.

Documentação: https://tdn-homolog.totvs.com/pages/viewpage.action?pageId=42043453 ; https://tdn-homolog.totvs.com/pages/releaseview.action?pageId=668198725 ; https://centraldeatendimento.totvs.com/hc/pt-br/articles/360034102134-Cross-Segmentos-TOTVS-BackOffice-Linha-RM-TOTVS-Gest%C3%A3o-de-Estoque-Compras-e-Faturamento-PRD-Como-Alterar-C%C3%B3digo-de-Produto ; https://centraldeatendimento.totvs.com/hc/pt-br/articles/42781703120663-Cross-Segmentos-Linha-RM-RT-Objeto-de-neg%C3%B3cio-Lan%C3%A7amentos-Fiscais-CBS-IBS-n%C3%ADvel-item

Galeria: Seis imagens nativas complementares mostram a coligada escolhida, um card completo, todos os 26 campos úteis da ficha de um produto, o sub-botão realmente aberto e os 9 campos da ficha de um local. São 35 posições preenchidas com dados inteiramente inventados. Há também casos sintéticos de código repetido, cadastro ausente, zero, negativo e NULL; não são afirmações sobre uma instalação real. A imagem intermediária de Detalhes corta uma linha que aparece completa na última imagem e é redundante; não entra na galeria. Home, listas repetidas, a captura R1 com etiqueta longa e os RAW ficam privados. Unidades e mapeamento default de saldos devem ser confirmados. Não teste em RM, SQL Server, iOS, instalação física, compra Pro ou performance.

What this package creates

1 Home1 Details2 lists1 sources to map
  • Home: Produtos por coligada
  • Details: Saldos por local
  • Sub-button: Saldos por local

Sources are mapped locally and verified before applying.

Custom queriesPRO2 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(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)

static read-only checks passed

Statically verified read-only$.components.workspaceSelection.datasets.1.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, CONCAT(CAST(N'' AS nvarchar(max)), DATALENGTH(CAST(s.CODCOLIGADA AS nvarchar(max))), N':', CAST(s.CODCOLIGADA AS nvarchar(max)), N'|', DATALENGTH(CAST(s.IDPRD AS nvarchar(max))), N':', CAST(s.IDPRD AS nvarchar(max)), N'|', DATALENGTH(CAST(s.CODFILIAL AS nvarchar(max))), N':', CAST(s.CODFILIAL AS nvarchar(max)), N'|', DATALENGTH(CAST(s.CODLOC AS nvarchar(max))), N':', CAST(s.CODLOC AS nvarchar(max)), N'|') AS LocationKey, CONCAT(N'Filial ',s.CODFILIAL,N' · Local ',s.CODLOC) AS LocationTitle, s.CODFILIAL AS Branch, s.CODLOC AS Location, s.SALDOFISICO2 AS Stock2, s.QUANTIDADE AS Available, s.SALDORESERVA AS Reserved FROM dbo.TPRDLOC s INNER JOIN dbo.TPRODUTODEF d ON d.CODCOLIGADA=s.CODCOLIGADA AND d.IDPRD=s.IDPRD LEFT JOIN dbo.TPRODUTO p ON p.IDPRD=d.IDPRD AND 1=(SELECT COUNT(*) FROM dbo.TPRODUTO q WHERE q.IDPRD=d.IDPRD) WHERE d.CODCOLIGADA=:company AND d.IDPRD=:product AND 1=(SELECT COUNT(*) FROM dbo.TPRODUTODEF z WHERE z.CODCOLIGADA=d.CODCOLIGADA AND z.IDPRD=d.IDPRD) AND 1=(SELECT COUNT(*) FROM dbo.TPRDLOC v WHERE v.CODCOLIGADA=s.CODCOLIGADA AND v.IDPRD=s.IDPRD AND v.CODFILIAL=s.CODFILIAL AND v.CODLOC=s.CODLOC) AND s.CODFILIAL IS NOT NULL AND s.CODLOC IS NOT NULL

static read-only checks passed

View the JSON being importedcollapsed by default

The exact portable content of this version.

{
    "components": {
        "sourceSlots": [
            {
                "displayName": "TOTVS RM — SQL Server de produtos autorizado",
                "id": "61EE2BDC-E73D-5170-8CAC-E7E9339A5BCC",
                "kind": "sqlServer",
                "requiredObjects": [
                    "dbo.TPRODUTO",
                    "dbo.TPRODUTODEF",
                    "dbo.TPARPRODUTO",
                    "dbo.TPRDLOC"
                ],
                "requiresCustomSQL": true
            }
        ],
        "workspaceSelection": {
            "commonFields": [],
            "datasets": [
                {
                    "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": "74D9F4AD-4CB6-5F51-9E64-6B8F228E09CA",
                    "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": 2000,
                    "name": "Produtos por coligada",
                    "primaryKey": "ProductKey",
                    "queryParameters": [],
                    "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": "61EE2BDC-E73D-5170-8CAC-E7E9339A5BCC",
                    "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)",
                    "tableName": ""
                },
                {
                    "cacheMode": "live",
                    "calculatedFields": [],
                    "customQueryIntegrationName": "TOTVS RM",
                    "endpointPath": "",
                    "fetchSortRules": [
                        {
                            "direction": "ascending",
                            "id": "0C267017-DE6C-5C21-997B-670A47D60F61",
                            "key": "Branch",
                            "type": "text"
                        },
                        {
                            "direction": "ascending",
                            "id": "E064E9D7-F164-5A59-A51B-9FA3286A22A3",
                            "key": "LocationKey",
                            "type": "text"
                        }
                    ],
                    "id": "DFC9C61F-39F6-5BBB-8D5C-A21422FDB376",
                    "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": false
                        },
                        {
                            "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": "LocationKey",
                            "label": "Chave técnica do local",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "LocationKey",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "LocationTitle",
                            "label": "Título do local",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "LocationTitle",
                            "type": "text",
                            "visibleInDetail": false,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Branch",
                            "label": "Filial (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Branch",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Location",
                            "label": "Local de estoque (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Location",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": false
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Stock2",
                            "label": "Saldo físico 2 registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Stock2",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": true
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Available",
                            "label": "Disponível (default)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Available",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": true
                        },
                        {
                            "commonFieldKey": "",
                            "key": "Reserved",
                            "label": "Reservado (default)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text",
                            "sourceColumn": "Reserved",
                            "type": "text",
                            "visibleInDetail": true,
                            "visibleInList": true
                        }
                    ],
                    "maxRows": 500,
                    "name": "Saldos por local",
                    "primaryKey": "LocationKey",
                    "queryParameters": [
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "Company",
                            "id": "D895914B-6B31-5014-8E5C-D54307B58701",
                            "name": "company",
                            "source": "parentField",
                            "type": "text"
                        },
                        {
                            "constantValue": "",
                            "dayOffset": 0,
                            "fieldKey": "ProductID",
                            "id": "F0757212-E053-5CA6-92F1-01E91259F07B",
                            "name": "product",
                            "source": "parentField",
                            "type": "text"
                        }
                    ],
                    "refreshPolicy": {
                        "enabled": false,
                        "intervalMinutes": 60
                    },
                    "rootArrayPath": "",
                    "rowLimitEnabled": true,
                    "searchKeys": [
                        "Company",
                        "ProductCode",
                        "ProductName",
                        "ControlUnit",
                        "Branch",
                        "Location",
                        "Stock2",
                        "Available",
                        "Reserved"
                    ],
                    "sourceID": "61EE2BDC-E73D-5170-8CAC-E7E9339A5BCC",
                    "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, CONCAT(CAST(N'' AS nvarchar(max)), DATALENGTH(CAST(s.CODCOLIGADA AS nvarchar(max))), N':', CAST(s.CODCOLIGADA AS nvarchar(max)), N'|', DATALENGTH(CAST(s.IDPRD AS nvarchar(max))), N':', CAST(s.IDPRD AS nvarchar(max)), N'|', DATALENGTH(CAST(s.CODFILIAL AS nvarchar(max))), N':', CAST(s.CODFILIAL AS nvarchar(max)), N'|', DATALENGTH(CAST(s.CODLOC AS nvarchar(max))), N':', CAST(s.CODLOC AS nvarchar(max)), N'|') AS LocationKey, CONCAT(N'Filial ',s.CODFILIAL,N' · Local ',s.CODLOC) AS LocationTitle, s.CODFILIAL AS Branch, s.CODLOC AS Location, s.SALDOFISICO2 AS Stock2, s.QUANTIDADE AS Available, s.SALDORESERVA AS Reserved FROM dbo.TPRDLOC s INNER JOIN dbo.TPRODUTODEF d ON d.CODCOLIGADA=s.CODCOLIGADA AND d.IDPRD=s.IDPRD LEFT JOIN dbo.TPRODUTO p ON p.IDPRD=d.IDPRD AND 1=(SELECT COUNT(*) FROM dbo.TPRODUTO q WHERE q.IDPRD=d.IDPRD) WHERE d.CODCOLIGADA=:company AND d.IDPRD=:product AND 1=(SELECT COUNT(*) FROM dbo.TPRODUTODEF z WHERE z.CODCOLIGADA=d.CODCOLIGADA AND z.IDPRD=d.IDPRD) AND 1=(SELECT COUNT(*) FROM dbo.TPRDLOC v WHERE v.CODCOLIGADA=s.CODCOLIGADA AND v.IDPRD=s.IDPRD AND v.CODFILIAL=s.CODFILIAL AND v.CODLOC=s.CODLOC) AND s.CODFILIAL IS NOT NULL AND s.CODLOC IS NOT NULL",
                    "tableName": ""
                }
            ],
            "pages": [
                {
                    "actions": [
                        {
                            "id": "F84BE105-943A-5CAA-8B22-CDB307E0C603",
                            "kind": "showRelated",
                            "relatedInitiallyExpanded": false,
                            "relatedPresentation": "separate",
                            "relatedPreviewLimit": 12,
                            "relatedRowStyle": "cards",
                            "relatedShowsCount": true,
                            "relationID": "E8B0B266-C302-5E2C-B2B2-E70A539F012D",
                            "systemImage": "list.bullet.rectangle",
                            "targetDatasetID": "DFC9C61F-39F6-5BBB-8D5C-A21422FDB376",
                            "title": "Saldos por local",
                            "urlKey": ""
                        }
                    ],
                    "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": "74D9F4AD-4CB6-5F51-9E64-6B8F228E09CA",
                    "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": "353A9263-7EE8-5F3F-81F0-814252D543BA",
                    "openFilters": [
                        {
                            "id": "1E2A9206-133A-539F-AF10-989CA340100E",
                            "includeAllOption": false,
                            "key": "Company",
                            "title": "Escolher coligada autorizada",
                            "type": "text"
                        }
                    ],
                    "pageSize": 100,
                    "requiresOpeningFilterSelection": true,
                    "showOnHome": true,
                    "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": "Produtos por coligada",
                    "titleKey": "RecordTitle"
                },
                {
                    "actions": [],
                    "badgeKey": "",
                    "cardEnrichments": [],
                    "cardFieldLayout": [
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "ControlUnit",
                            "label": "Unidade de controle",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Stock2",
                            "label": "Saldo físico 2 registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Available",
                            "label": "Disponível (default)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Reserved",
                            "label": "Reservado (default)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        }
                    ],
                    "datasetID": "DFC9C61F-39F6-5BBB-8D5C-A21422FDB376",
                    "dateFilterKey": "",
                    "dateFilterLastDays": 7,
                    "dateFilterPreset": "none",
                    "detailFieldLayout": [
                        {
                            "detailGroup": "Produto selecionado — contexto atual",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Company",
                            "label": "Coligada",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Produto selecionado — contexto atual",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "ProductCode",
                            "label": "Código do produto",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Produto selecionado — contexto atual",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "ProductName",
                            "label": "Nome do produto",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Produto selecionado — contexto atual",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "ControlUnit",
                            "label": "Unidade de controle",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Local e quantidades — confirme o mapeamento default",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Branch",
                            "label": "Filial (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Local e quantidades — confirme o mapeamento default",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Location",
                            "label": "Local de estoque (código)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Local e quantidades — confirme o mapeamento default",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Stock2",
                            "label": "Saldo físico 2 registrado",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Local e quantidades — confirme o mapeamento default",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Available",
                            "label": "Disponível (default)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        },
                        {
                            "detailGroup": "Local e quantidades — confirme o mapeamento default",
                            "detailRole": "information",
                            "isVisible": true,
                            "key": "Reserved",
                            "label": "Reservado (default)",
                            "locationLabelKey": "",
                            "locationLongitudeKey": "",
                            "presentation": "text"
                        }
                    ],
                    "detailLiveRefreshSeconds": 0,
                    "fixedFilters": [],
                    "id": "0ED23F62-E03B-54E1-86AC-83F3530C3CCB",
                    "openFilters": [],
                    "pageSize": 100,
                    "requiresOpeningFilterSelection": false,
                    "showOnHome": false,
                    "sortRules": [
                        {
                            "direction": "ascending",
                            "id": "0C267017-DE6C-5C21-997B-670A47D60F61",
                            "key": "Branch",
                            "type": "text"
                        },
                        {
                            "direction": "ascending",
                            "id": "E064E9D7-F164-5A59-A51B-9FA3286A22A3",
                            "key": "LocationKey",
                            "type": "text"
                        }
                    ],
                    "subtitle": "",
                    "subtitleKey": "ProductName",
                    "systemImage": "doc.text",
                    "title": "Saldos por local",
                    "titleKey": "LocationTitle"
                }
            ],
            "relations": [
                {
                    "childDatasetID": "DFC9C61F-39F6-5BBB-8D5C-A21422FDB376",
                    "childKey": "ProductKey",
                    "id": "E8B0B266-C302-5E2C-B2B2-E70A539F012D",
                    "name": "Saldos por local",
                    "parentDatasetID": "74D9F4AD-4CB6-5F51-9E64-6B8F228E09CA",
                    "parentKey": "ProductKey"
                }
            ],
            "widgets": []
        }
    },
    "format": "cifru-configuration-package",
    "formatVersion": 1,
    "manifest": {
        "applicationName": "TOTVS RM",
        "changelog": "Primeira ficha Pro de produtos/preços por coligada e saldos por local; seis capturas DEMO nativas. Não validação 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 física selecionada e testes sintéticos, não instalação RM real.\n\nPara compras, vendas, estoque e gestão: escolha a coligada e consulte produtos, descrição, unidades de controle, compra e venda, número no fabricante e cinco preços com o nome e o código de moeda cadastrados. Abra uma ficha com referências de estoque, pesos, validade e códigos de controle. Toque em Saldos por local para ler, apenas quando necessário, os registros desse produto na mesma coligada, por filial e local de estoque.\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 botão Home, duas listas/Detalhes e um sub-botão fechado. SELECT somente leitura; 2.000 produtos por coligada e 500 locais por leitura, sem refresh periódico. O filtro nativo de coligada é exigido na abertura e aplicado antes do limite; não exige parâmetros SQL ainda sem escolhas. Busca e filtros locais cobrem apenas os registros carregados. Limites não garantem execução barata ou resultados completos.\n\nPRODUTO GLOBAL E EMPRESA: TPRODUTO usa IDPRD global na estrutura documentada a partir da migração 11.40. TPRODUTODEF e TPARPRODUTO são por coligada. Não trata a chave do DataServer CODCOLIGADA;IDPRD como uma coluna CODCOLIGADA da tabela global, nem consulta TPRD como se fosse essa tabela: TPRD é uma view de compatibilidade. As fichas nascem de definições por coligada. Master ausente ou ambíguo não elimina a definição, não escolhe um nome arbitrário e não multiplica linhas. Definições e locais com identidade incompleta/ambígua são excluídos; isso não prova ausência de produtos ou estoques.\n\nPREÇOS: cada slot 1 a 5 conserva PRECOx, seu próprio CODMOEPRECOx e o nome configurado NOMEDOPRECOPRODx. Nome ausente/ambíguo usa somente Preço x; moeda ausente é indicada, não presumida BRL. Não afirma que Preço 1 é compra/custo ou Preço 2 é venda. São preços do cadastro ATUAL, não preços válidos de uma operação, tarifa com impostos, cotação, tabela promocional ou custo contábil. Valores são preservados como texto, sem soma, conversão ou arredondamento fixo. NULL continua ausente; zero e negativos não viram valores positivos. Não soma moedas diferentes.\n\nESTOQUE: mostra SALDOFISICO2, QUANTIDADE e SALDORESERVA guardados em TPRDLOC. A documentação StockLevel mapeia saldo atual/disponível/reservado apenas na parametrização DEFAULT e avisa que customizações podem mudar esse de-para. Confirme os três campos e a referência 2 com o administrador. A unidade de controle é CONTEXTO cadastral da coligada, não prova da base das quantidades nem conversão de unidades. Estoque mínimo, máximo e ponto de pedido da referência 2 são parâmetros, não saldo ou sugestão de compra calculada. Não soma locais, calcula disponível=físico-reservado, seleciona lotes, projeta saldo histórico ou mostra valor financeiro/custos com fallback presumido. Zero/negativos/NULL são distintos. O sub-botão revalida coligada+produto atual; outro produto com igual código não é trocado por ele.\n\nCARACTERÍSTICAS: pesos são valores cadastrais sem unidade física inferida; validade é em dias conforme a lista física. Inativo, venda fracionada, lote e série são códigos da origem, sem inventar legenda 0/1, sim/não ou estado atual de disponibilidade. Campos técnicos de identidade e auditoria não são exibidos. Não é execução de processos de compra, estoque ou alteração de produto.\n\nCOMPATIBILIDADE A VERIFICAR: lista física RM 11.40 (23/10/2012), mapa StockLevel 1.001/3.003 (24/10/2022) e artigos públicos de corroboracão selecionada. Não certifica uma versão 2026. Requer os quatro objetos dbo existentes do adaptador; dbo não é owner comprovado do fornecedor. Confirme versão, colunas, tipos, unicidade, nomes de preços, moeda, bases e parametrização; remapeie e teste antes de importar. SQL Server 2012+ para CONCAT. Não cria objetos, concede direitos ou busca outro owner. O contexto do WebService e os campos fiscais do Smart View não são promovidos em novas colunas SQL.\n\nSEGURANÇA: use conta SQL separada com SELECT mínimo aprovado pela empresa e empresas/produtos restritos na fonte. SQL externo não herda permissões ou auditoria do RM; filtros não são ACL. As consultas não usam NOLOCK nem executam exemplos de inclusão/importação dos manuais. Verifique índices, planos e timeout com o administrador. Nenhum servidor, usuário, senha ou dado empresarial é incluído. Exemplos inteiramente inventados; seis capturas nativas complementares aprovadas, sem conexão RM real.\n\nDocumentação: https://tdn-homolog.totvs.com/pages/viewpage.action?pageId=42043453 ; https://tdn-homolog.totvs.com/pages/releaseview.action?pageId=668198725 ; https://centraldeatendimento.totvs.com/hc/pt-br/articles/360034102134-Cross-Segmentos-TOTVS-BackOffice-Linha-RM-TOTVS-Gest%C3%A3o-de-Estoque-Compras-e-Faturamento-PRD-Como-Alterar-C%C3%B3digo-de-Produto ; https://centraldeatendimento.totvs.com/hc/pt-br/articles/42781703120663-Cross-Segmentos-Linha-RM-RT-Objeto-de-neg%C3%B3cio-Lan%C3%A7amentos-Fiscais-CBS-IBS-n%C3%ADvel-item\n\nGaleria: Seis imagens nativas complementares mostram a coligada escolhida, um card completo, todos os 26 campos úteis da ficha de um produto, o sub-botão realmente aberto e os 9 campos da ficha de um local. São 35 posições preenchidas com dados inteiramente inventados. Há também casos sintéticos de código repetido, cadastro ausente, zero, negativo e NULL; não são afirmações sobre uma instalação real. A imagem intermediária de Detalhes corta uma linha que aparece completa na última imagem e é redundante; não entra na galeria. Home, listas repetidas, a captura R1 com etiqueta longa e os RAW ficam privados. Unidades e mapeamento default de saldos devem ser confirmados. Não teste em RM, SQL Server, iOS, instalação física, compra Pro ou performance.",
        "licenseCode": "Cifru-Community-1.0",
        "minimumCifruVersion": "1.1.0",
        "minimumPlan": "pro",
        "packageID": "86757683-8578-5933-8B6E-126F36117551",
        "rootButtonCount": 1,
        "summary": "Ficha de produto, cinco preços com moedas, unidades e saldos por filial/local a pedido.",
        "tags": [
            "TOTVS RM",
            "SQL Server",
            "Produtos",
            "Preços",
            "Estoque",
            "Pro"
        ],
        "title": "Produtos, preços por coligada e saldos por local — 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.