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.
- 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 |
---|
language | xml |
---|
title | Family_Envio |
---|
linenumbers | true |
---|
collapse | true |
---|
|
POST /CONTRATOS_WS/CONTRATOS_WS.asmx HTTP/1.1
Host: 10.173.11.161
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<apiHTTP_PUT_HIST_TX_CTCANA 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_PUT_HIST_TX_CTCANA>
</soap12:Body>
</soap12:Envelope> |
Bloco de código |
---|
language | xml |
---|
title | Family_Retorno |
---|
linenumbers | true |
---|
collapse | true |
---|
|
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<apiHTTP_PUT_HIST_TX_CTCANAResponse xmlns="CONTRATOS_WS">
<apiHTTP_PUT_HIST_TX_CTCANAResult>string</apiHTTP_PUT_HIST_TX_CTCANAResult>
</apiHTTP_PUT_HIST_TX_CTCANAResponse>
</soap12:Body>
</soap12:Envelope> |
Mensagem JSON
Bloco de código |
---|
language | js |
---|
title | Family_Envio |
---|
linenumbers | true |
---|
collapse | true |
---|
|
{
"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 |
---|
language | js |
---|
title | Family_Retorno |
---|
linenumbers | true |
---|
collapse | true |
---|
|
{
"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"
}
}
}
}
}
} |
SEGMENTO | TAGS | TIPO | TAMANHO | DESCRITIVO DA TAG |
Event | INSTANCIA | String | 5 | Codigo da Instancia |
FG_TP_PROC | String | 1 | Tipo de processo ( M = mensal Y = anual T=ajuste topografico) |
CD_EMPRESA | String | 5 | Codigo empresa |
NO_CONTR_CANA | Number | 15 | Numero do contrato |
NO_PARCELA | Number | 3 | numero da parcela |
CD_UPNIVEL1 | String | 6 | codiog upnivel1 |
DT_HISTORICO | Date | 10 | Data historico |
DT_PAGTO | Date | 10 | data do pagamento |
CD_TXCONTR | Number | 3 | codigo da taxa |
VL_TX_CONTRIB | Number | 13 | valor da taxa |
VL_BASE_TX | Number | 15 | valor base taxa |
CD_GRP_TXCONTR | Number | 2 | grupo de taxa |
CD_SAFRA | Number | 5 | codigo da safra |
FG_ACERTO_ANUAL | String | 1 | falg de acerto anual |
VL_SUBSIDIO | Number | 13 | Valor do Subsídio |
FG_LIMINAR_INSS | String | 1 | Flag de liminar para suspensçao da cobrança de ICMS (S=Sim - N=Não) |
ROWVERSION | Number | 5 | CONTROLE INTERNO |