Páginas filhas
  • DAGROINDUSTRIA-13425 DT [BEN] Criar API para Reporte de Ordem de Produção com o Protheus

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Produto:

Solucoes_totvs
SolucaoTOTVS Agro Beneficiamento

Solucoes_totvs_cross
SolucaoCross

Solucoes_totvs_parceiros
SolucaoParceiros

Solucoes_totvs_parceirosexptotvs
SolucaoParcsExpsTOTVS

Linha de Produto:

Linhas_totvs

Segmento:

Segmentos_totvs
SegmentoAgroindústria

Módulo:

Modulos_cross_segmentos

Modulos_framework

Modulos_totvs_construcao

Modulos_totvs_juridico

Modulos_totvs_logistica

Modulos_totvs_manufatura

Modulos_totvs_rh

Modulos_totvs_saude

Modulos_totvs_prestadores_de_servicos

INTEGRAÇÔES

Função:
País:Brasil
Ticket:
Requisito/Story/Issue (informe o requisito relacionado) :DAGROINDUSTRIA-13425


02. SITUAÇÃO/REQUISITO

A partir do número da Ordem de Produção (recebida do PCP Protheus), realizar o reporte da produção (itens produzidos, subprodutos, matéria-prima e materiais consumidos na produção.

...

Bloco de código
languageyml
{
   "event":"upsert",
   "productionOrderNumber":"pcpBCC01001pcpBEB01001   ",
   "companyId":"210T1",
   "branchId":"2100D MG 01",
   "reversedReportreportQuantity":true1242.250,
   "reversalDatereportDateTime":"2024-03-19"04-03T08:29:17",
   "reversedReport":false,
   "lotCode":"1674702022",
   "outflowWarehouseCode":"01",
   "outflowLocationCode":null,
   "movimentType":"002",
   "part_total":"T",
   "lotDueDate":null,
   "listOfReversalAppointments":[listOfSupplyOrders":[
      {
         "productionOrderNumber":"pcpBEB01001   ",
         "materialCode":"064200011",
         "usedQuantity":5.600,
         "warehouseCode":"01",
         "locationCode":null,
         "lotCode":null,
         "movimentType":"501"
      },
      {
         "productionOrderNumber":"pcpBEB01001   ",
         "materialCode":"064200009",
         "usedQuantity":5.000,
         "warehouseCode":"01",
         "locationCode":null,
         "lotCode":null,
         "movimentType":"501"
      },
      {
         "productionOrderNumber":"pcpBEB01001   ",
         "materialCode":"223850001",
         "usedQuantity":3000.000,
         "warehouseCode":"01",
         "locationCode":null,
         "lotCode":"CLA021",
         "movimentType":"501"
      },
      {
         "productionOrderNumber":"pcpBEB01001   ",
         "materialCode":"620300004",
         "usedQuantity":-29.706,
         "warehouseCode":"01",
         "locationCode":null,
         "lotCode":null,
         "movimentType":"001"
      },
      {
         "productionOrderNumber":"pcpBEB01001   ",
         "integrationReportmaterialCode":"D MG 01 pcpBC8016109963620300003",
         "usedQuantity":-207.590,
         "warehouseCode":"01",
         "locationCode":null,
         "lotCode":null,
         "movimentType":"001"
      },
      {
         "productionOrderNumber":"pcpBEB01001   ",
         "reversalTypematerialCode":"1620300002",
         "reversalQuantityusedQuantity":1242.25-1520.454,
         "warehouseCode":"01",
         "locationCode":null,
         "lotCode":null,
         "movimentType":"001"
      }
   ],
   "listOfBales":[
      {
         "branchId":"2100D MG 01",
         "materialCode":"620300001",
         "netWeight":248.45450,
         "grossWeight":250.0000,
         "crop":"2022",
         "baleCode":"067857067816",
         "bigBaleCode":"409202CLA021",
         "baleTag":"0007898696091067857000078986960910678167",
         "reportDateTime":"2024-0304-14T1802T16:2857:3503",
         "warehouseCode":"01",
         "lotCode":"16754020221674702022"
      },
      {
         "branchId":"2100D MG 01",
         "materialCode":"620300001",
         "netWeight":248.45450,
         "grossWeight":250.0000,
         "crop":"2022",
         "baleCode":"067858067817",
         "bigBaleCode":"409202CLA021",
         "baleTag":"0007898696091067858700078986960910678174",
         "reportDateTime":"2024-0304-14T1802T16:2857:3506",
         "warehouseCode":"01",
         "lotCode":"16754020221674702022"
      },
      {
         "branchId":"2100D MG 01",
         "materialCode":"620300001",
         "netWeight":248.45450,
         "grossWeight":250.0000,
         "crop":"2022",
         "baleCode":"067859067818",
         "bigBaleCode":"409202CLA021",
         "baleTag":"0007898696091067859400078986960910678181",
         "reportDateTime":"2024-0304-14T1802T16:2857:3509",
         "warehouseCode":"01",
         "lotCode":"16754020221674702022"
      },
      {
         "branchId":"2100D MG 01",
         "materialCode":"620300001",
         "netWeight":248.45450,
         "grossWeight":250.0000,
         "crop":"2022",
         "baleCode":"067860067819",
         "bigBaleCode":"409202CLA021",
         "baleTag":"0007898696091067860000078986960910678198",
         "reportDateTime":"2024-0304-14T1802T16:2857:3511",
         "warehouseCode":"01",
         "lotCode":"16754020221674702022"
      },
      {
         "branchId":"2100D MG 01",
         "materialCode":"620300001",
         "netWeight":248.45450,
         "grossWeight":250.0000,
         "crop":"2022",
         "baleCode":"067861067820",
         "bigBaleCode":"409202CLA021",
         "baleTag":"0007898696091067861700078986960910678204",
         "reportDateTime":"2024-0304-14T1802T16:2857:3514",
         "warehouseCode":"01",
         "lotCode":"16754020221674702022"
      }
   ]
}


04. DEMAIS INFORMAÇÕES

...

05. ASSUNTOS RELACIONADOS



Templatedocumentos