Páginas filhas
  • Histórico de Deduções (POST)

Versões comparadas

Chave

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

A integração de grupo de insumos e grupo de materiais consiste na movimentação do cadastro no sentido ERP para PIMS Multicultivos, ou seja, será realizado no ERP e enviado para o PIMS Multicultivos através do PIMSConnector. O objetivo é permitir o controle do consumo dos insumos e materiais automotivos pelo seu respectivo grupo. Esta integração no PIMS Multicultivos é cadastrada em duas tabelas distintas, sendo assim é necessário existir no ERP, uma classificação que determina o tipo de item, se é grupo de insumo ou grupo de material automotivo.

Informações da Mensagem

  • Tipo de Envio: Assíncrona / Síncrona
  • Tipo de Evento: Upsert / Delete

Campo Obrigatórios

  • Código;
  • Descrição da família;
  • Classificação da família.

Exemplos de Mensagens

Mensagem XML

Bloco de código
languagexml
titleFamily_Envio
linenumberstrue
collapsetrue
POST /CONTRATOS_WS/CONTRATOS_WS.asmx HTTP/1.1
Host: 10.173.14.69
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "CONTRATOS_WS/apiHTTP_POST_HISTDEDCTCANA"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <apiHTTP_POST_HISTDEDCTCANA xmlns="CONTRATOS_WS">
      <oACERTOPROV>
        <instancia>string</instancia>
        <tpRegistro>string</tpRegistro>
        <cdUnidInd>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </cdUnidInd>
        <deUnidInd>string</deUnidInd>
        <cdFazenda>string</cdFazenda>
        <deFazenda>string</deFazenda>
        <amAcerto>
          <Value>dateTime</Value>
          <IsNull>boolean</IsNull>
        </amAcerto>
        <pcAcerto>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </pcAcerto>
        <cdTpCalc>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </cdTpCalc>
        <deTpCalc>string</deTpCalc>
        <cdFornec>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </cdFornec>
        <deFornec>string</deFornec>
        <dtBaseATR>
          <Value>dateTime</Value>
          <IsNull>boolean</IsNull>
        </dtBaseATR>
        <cdSafra>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </cdSafra>
        <vlATR>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlATR>
        <vlTonCana>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlTonCana>
        <qtCanaEnt>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </qtCanaEnt>
        <vlCanaBruto>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlCanaBruto>
        <vlCanaLiq>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlCanaLiq>
        <vlFatorK>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlFatorK>
        <vlPg100>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlPg100>
        <vlAcertoATR>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlAcertoATR>
        <cdTpPropr>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </cdTpPropr>
        <deTpPropr>string</deTpPropr>
        <vlTotServ>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlTotServ>
        <fgAcertoFinal>string</fgAcertoFinal>
        <fgIndividual>string</fgIndividual>
        <vlAcAtrReceb>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlAcAtrReceb>
        <vlKgATR>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlKgATR>
        <vlTotBonus>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlTotBonus>
        <vlTotServCorr>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlTotServCorr>
        <fgAcertoAnual>string</fgAcertoAnual>
        <fgContrRescind>string</fgContrRescind>
        <instContr>string</instContr>
        <cdEmpContr>string</cdEmpContr>
        <noContrCana>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </noContrCana>
        <vlRefAno>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlRefAno>
        <fgProvMensal>string</fgProvMensal>
        <fgTpProc>string</fgTpProc>
        <vlIcms>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlIcms>
        <vlDescGeocana>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlDescGeocana>
        <qtAtrSemPremio>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </qtAtrSemPremio>
      </oACERTOPROV>
    </apiHTTP_POST_HISTDEDCTCANA>
  </soap:Body>
</soap:Envelope>
Bloco de código
languagexml
titleFamily_Retorno
linenumberstrue
collapsetrue
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <apiHTTP_POST_HISTDEDCTCANAResponse xmlns="CONTRATOS_WS">
      <apiHTTP_POST_HISTDEDCTCANAResult>string</apiHTTP_POST_HISTDEDCTCANAResult>
    </apiHTTP_POST_HISTDEDCTCANAResponse>
  </soap:Body>
</soap:Envelope>

Mensagem JSON

Bloco de código
languagejs
titleFamily_Envio
linenumberstrue
collapsetrue
{
	"TOTVSMessage" : {
		"MessageInformation" : {
			"@version" : "2.002",
			"BranchId" : "D MG 01 ",
			"CompanyId" : "T1",
			"DeliveryType" : "Sync",
			"GeneratedOn" : "2018-03-21T19:27:54Z",
			"Product" : {
				"@name" : "ERP",
				"@version" : "12"
			},
			"SourceApplication" : "P12_DEV_SERVERT1",
			"StandardVersion" : "1.000",
			"Transaction" : "FAMILY",
			"Type" : "BusinessMessage",
			"UUID" : "01da1810-a305-6677-bdaf-cda337c8a412"
		},
		"BusinessMessage" : {
			"BusinessEvent" : {
				"Entity" : "FAMILY",
				"Event" : "upsert",
				"Identification" : {
					"key" : {
						"@name" : "InternalId",
						"$" : "T1|D MG 01|456"
					}
				}
			},
			"BusinessContent" : {
				"CompanyId" : "T1",
				"BranchId" : "D MG 01 ",
				"CompanyInternalId" : "T1|D MG 01 ",
				"Code" : "456 ",
				"InternalId" : "T1|D MG 01|456",
				"Description" : "Peças Automotivas",
				"FamilyClassificationCode" : "2"
			}
		}
	}
}
Bloco de código
languagejs
titleFamily_Retorno
linenumberstrue
collapsetrue
{
	"TOTVSMessage" : {
		"MessageInformation" : {
			"@version" : "2.002",
			"BranchId" : "D MG 01 ",
			"CompanyId" : "T1",
			"DeliveryType" : "Sync",
			"GeneratedOn" : "2018-03-21T16:24:02",
			"Product" : {
				"@name" : "PIMS",
				"@version" : "12.1.20"
			},
			"SourceApplication" : "PIMSCONNECTOR",
			"StandardVersion" : "1.000",
			"Transaction" : "FAMILY",
			"Type" : "Response",
			"UUID" : "aee6b73a-3d4d-4cac-bd20-85d9bc95fd0c"
		},
		"ResponseMessage" : {
			"ProcessingInformation" : {
				"ProcessedOn" : "2018-03-21T16:24:02",
				"Status" : "OK"
			},
			"ReceivedMessage" : {
				"MessageContent" : null,
				"SentBy" : "ERP",
				"UUID" : "01da1810-a305-6677-bdaf-cda337c8a412"
			},
			"ReturnContent" : {
				"ListOfInternalId" : {
					"InternalId" : {
						"Destination" : "||959851251781955913",
						"Name" : "FAMILY",
						"Origin" : "T1|D MG 01|456"
					}
				}
			}
		}
	}
}

Descrição Detalhada das Tags

SEGMENTOTAGSTIPOTAMANHODESCRITIVO DA TAG


Event

instancia
String5Código da Instância
TP_REGISTRO
String1Codigo da Unidade Industrial
CD_UNID_IND
Number3Codigo da Unidade Producao Nivel1                                   



Event

CD_UPNIVEL1Date6Ano e mes do acerto
AM_ACERTONumber10Flag para indicar o tipo de processo [tab2]

PC_ACERTO

Number

3

percentual de acerto

CD_TP_CALCNumber2Codigo do Tipo de Calculo
CD_FORNECDate8Codigo do Fornecedor
DT_BASE_ATRNumber10Data Base do Valor do Kg ATR
CD_SAFRANumber5Codigo da Safra
VL_ATRNumber7Qtdade ATR
VL_TON_CANANumber15Valor da Tonelada de Cana
QT_CANA_ENTNumber13Qtde de Cana Entregue
VL_CANA_BRUTONumber15Valor Bruto
VL_CANA_LIQNumber15Valor Liquido
VL_FATORKNumber5Valor do Fator K
VL_PG100Number15Valor a Pagar a 100 %
VL_ACERTO_ATRNumber15Valor do Acerto de ATR
CD_TP_PROPRNumber3Codigo do Tipo de Propriedade
VL_TOT_SERVNumber13Valor total do desconto de servico
FG_ACERTO_FINALString1Flag Controlador de Acerto Final de Ano