Páginas filhas
  • Valor base do acerto (GET)

Versões comparadas

Chave

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

A integração dos produtos Media Ponderada de Entrada de Cana na Safra ate a Dta Acerto consiste na movimentação do cadastro no sentido ERP para TOTVS Agro Bioenergia, ou seja, será realizado no ERP e enviado para o TOTVS Agro Bioenergia através do PIMSConnector/ERP.

Informações da Mensagem

  • Tipo de Envio: Assíncrona / Síncrona
  • Tipo de Evento: Listagem

Campo Obrigatórios

...

URL de conexão

http://localhost:8180/TOTVS/CONTRATOS_WS.asmx/apiAcertoAnualFinalSafra

...


Exemplos de Mensagens

Mensagem XML

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

<?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_GET_ACERTOFDO<apiAcertoAnualFinalSafra xmlns="CONTRATOS_WS">
      <instancia>string</instancia>
      <cdUnidInd>string</cdUnidInd>
      <pInputINSTANCIA>string<<cdUpnivel1>string</pInputINSTANCIA>cdUpnivel1>
      <pInputAM_FORNEC_INI>string</pInputAM_FORNEC_INI><amAcerto>string</amAcerto>
      <pInputAM_FORNEC_FIN>string</pInputAM_FORNEC_FIN><fgTpProc>string</fgTpProc>
    </apiHTTP_GET_ACERTOFDO>apiAcertoAnualFinalSafra>
  </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_GET_ACERTOFDOResponse<apiAcertoAnualFinalSafraResponse xmlns="CONTRATOS_WS">
      <apiHTTP_GET_ACERTOFDOResult>string</apiHTTP_GET_ACERTOFDOResult><apiAcertoAnualFinalSafraResult>string</apiAcertoAnualFinalSafraResult>
    </apiHTTP_GET_ACERTOFDOResponse>apiAcertoAnualFinalSafraResponse>
  </soap:Body>
</soap:Envelope>

...

Bloco de código
languagejs
titleFamily_Envio
linenumberstrue
collapsetrue
{
    "instancia": "100",
    "cdUnidInd": "1",
    "pInputINSTANCIAcdUpnivel1": "UC   25",
    "pInputAM_FORNEC_INIamAcerto":  "01/05/2006",
    "pInputAM_FORNEC_FINfgTpProc": "02/05/2006M"
 }
Bloco de código
languagejs
titleFamily_Retorno
linenumberstrue
collapsetrue
{
    "d": "[{\"instancia\":\"UC\",\"cdUnidInd\":2.0,\"deUnidInd\":\"Usina Cresciumal\",\"cdFazenda\":\"102001\",\"deFazenda\":\"FAZENDA RETIRO BOA VISTA\",\"amAcerto\":\"2006-05-01T00:00:00\",\"fgTpProc\":\"M\",\"pcAcerto\":90.0,\"cdTpCalc\":99.0,\"deTpCalc\":\"CONSECANA\",\"cdFornec\":10061487.0,\"deFornec\":\"TIAGO DO AMARAL CORREA LEITE\",\"dtBaseATR\":\"2006-05-31T00:00:00\",\"cdSafra\":2006.0,\"cdTpPropr\":4.0,\"deTpPropr\":\"Fornecedor\",\"vlATR\":137.0,\"vlTonCana\":39.4716,\"qtCanaEnt\":621440.0,\"vlCanaBruto\":24529.23,\"vlCanaLiq\":22076.31,\"vlFatorK\":0.9294,\"vlPg100\":null,\"vlAcertoATR\":null,\"vltotServ\":0.0,\"fgAcertoFinal\":\"S\",\"fgIndividual\":\"N\",\"vlAcAtrReceb\":0.0,\"vlKgATR\":0.31,\"vlTotBonus\":0.0,\"vlRecPgTot\":26440.88,\"fatorReducao\":0.0,\"acTotNf\":null,\"vlTotServCorr\":0.0,\"fgCalcAcerto\":\"A\",\"fgAcertoAnual\":\"S\",\"fgContrRescind\":\"\",\"instContr\":\"UC\",\"cdEmpContr\":\"1\",\"noContrCana\":2008000001363.0,\"vlRefAno\":0.0,\"vlICMS\":null,\"vlDescGeocana\":null,\"qtATRSemPremio\":null},{\"instancia\":\"UC\",\"cdUnidInd\":2.0,\"deUnidInd\":\"Usina Cresciumal\",\"cdFazenda\":\"102020\",\"deFazenda\":\"FAZENDA BELA VISTA\",\"amAcerto\":\"2006-05-01T00:00:00\",\"fgTpProc\":\"M\",\"pcAcerto\":90.0,\"cdTpCalc\":99.0,\"deTpCalc\":\"CONSECANA\",\"cdFornec\":10054941.0,\"deFornec\":\"PAULO DE ARAUJO RODRIGUES E OUTROS \",\"dtBaseATR\":\"2006-05-31T00:00:00\",\"cdSafra\":2006.0,\"cdTpPropr\":4.0,\"deTpPropr\":\"Fornecedor\",\"vlATR\":134.82,\"vlTonCana\":41.7942,\"qtCanaEnt\":1942545.0,\"vlCanaBruto\":81187.11,\"vlCanaLiq\":73068.4,\"vlFatorK\":1.0,\"vlPg100\":null,\"vlAcertoATR\":null,\"vltotServ\":null,\"fgAcertoFinal\":\"\",\"fgIndividual\":\"N\",\"vlAcAtrReceb\":0.0,\"vlKgATR\":0.31,\"vlTotBonus\":0.0,\"vlRecPgTot\":0.0,\"fatorReducao\":0.0,\"acTotNf\":null,\"vlTotServCorr\":null,\"fgCalcAcerto\":\"A\",\"fgAcertoAnual\":\"\",\"fgContrRescind\":\"\",\"instContr\":\"UC\",\"cdEmpContr\":\"\",\"noContrCana\":null,\"vlRefAno\":0.0,\"vlICMS\":null,\"vlDescGeocana\":null,\"qtATRSemPremio\":null},{\"instancia\":\"UC\",\"cdUnidInd\":2.0,\"deUnidInd\":\"Usina Cresciumal\",\"cdFazenda\":\"102072\",\"deFazenda\":\"FAZENDA SANTA ISABEL\",\"amAcerto\":\"2006-05-01T00:00:00\",\"fgTpProc\":\"M\",\"pcAcerto\":90.0,\"cdTpCalc\":99.0,\"deTpCalc\":\"CONSECANA\",\"cdFornec\":10054941.0,\"deFornec\":\"PAULO DE ARAUJO RODRIGUES E OUTROS \",\"dtBaseATR\":\"2006-05-31T00:00:00\",\"cdSafra\":2006.0,\"cdTpPropr\":4.0,\"deTpPropr\":\"Fornecedor\",\"vlATR\":135.55,\"vlTonCana\":42.0205,\"qtCanaEnt\":4553710.0,\"vlCanaBruto\":191349.17,\"vlCanaLiq\":172214.25,\"vlFatorK\":1.0,\"vlPg100\":null,\"vlAcertoATR\":null,\"vltotServ\":null,\"fgAcertoFinal\":\"\",\"fgIndividual\":\"N\",\"vlAcAtrReceb\":0.0,\"vlKgATR\":0.31,\"vlTotBonus\":0.0,\"vlRecPgTot\":0.0,\"fatorReducao\":0.0,\"acTotNf\":null,\"vlTotServCorr\":null,\"fgCalcAcerto\":\"A\",\"fgAcertoAnual\":\"\",\"fgContrRescind\":\"\",\"instContr\":\"UC\",\"cdEmpContr\":\"\",\"noContrCana\":null,\"vlRefAno\":0.0,\"vlICMS\":null,\"vlDescGeocana\":null,\"qtATRSemPremio\":null},{\"instancia\":\"UC\",\"cdUnidInd\":2.0,\"deUnidInd\":\"Usina Cresciumal\",\"cdFazenda\":\"102074\",\"deFazenda\":\"FAZENDA BELA VISTA\",\"amAcerto\":\"2006-05-01T00:00:00\",\"fgTpProc\":\"M\",\"pcAcerto\":90.0,\"cdTpCalc\":99.0,\"deTpCalc\":\"CONSECANA\",\"cdFornec\":10054950.0,\"deFornec\":\"HILTON GOUVEIA FAGUNDES \",\"dtBaseATR\":\"2006-05-31T00:00:00\",\"cdSafra\":2006.0,\"cdTpPropr\":4.0,\"deTpPropr\":\"Fornecedor\",\"vlATR\":134.82,\"vlTonCana\":41.7942,\"qtCanaEnt\":718565.0,\"vlCanaBruto\":30031.85,\"vlCanaLiq\":27028.67,\"vlFatorK\":1.0,\"vlPg100\":null,\"vlAcertoATR\":null,\"vltotServ\":null,\"fgAcertoFinal\":\"\",\"fgIndividual\":\"N\",\"vlAcAtrReceb\":0.0,\"vlKgATR\":0.31,\"vlTotBonus\":0.0,\"vlRecPgTot\":0.0,\"fatorReducao\":0.0,\"acTotNf\":null,\"vlTotServCorr\":null,\"fgCalcAcerto\":\"A\",\"fgAcertoAnual\":\"\",\"fgContrRescind\":\"\",\"instContr\":\"UC\",\"cdEmpContr\":\"\",\"noContrCana\":null,\"vlRefAno\":0.0,\"vlICMS\":null,\"vlDescGeocana\":null,\"qtATRSemPremio\":null},{\"instancia\":\"UC\",\"cdUnidInd\":2.0,\"deUnidInd\":\"Usina Cresciumal\",\"cdFazenda\":\"203723\",\"deFazenda\":\"FAZENDA BARRANCO VERMELHO\",\"amAcerto\":\"2006-05-01T00:00:00\",\"fgTpProc\":\"M\",\"pcAcerto\":90.0,\"cdTpCalc\":99.0,\"deTpCalc\":\"CONSECANA\",\"cdFornec\":20050180.0,\"deFornec\":\"CLEIDE NILZA MOURÃO\",\"dtBaseATR\":\"2006-05-31T00:00:00\",\"cdSafra\":2006.0,\"cdTpPropr\":8.0,\"deTpPropr\":\"Parceria Pago Fornec\",\"vlATR\":141.38,\"vlTonCana\":43.8278,\"qtCanaEnt\":1735556.0,\"vlCanaBruto\":76065.6,\"vlCanaLiq\":68459.04,\"vlFatorK\":1.0,\"vlPg100\":null,\"vlAcertoATR\":null,\"vltotServ\":0.0,\"fgAcertoFinal\":\"\",\"fgIndividual\":\"N\",\"vlAcAtrReceb\":0.0,\"vlKgATR\":0.31,\"vlTotBonus\":0.0,\"vlRecPgTot\":0.0,\"fatorReducao\":0.0,\"acTotNf\":null,\"vlTotServCorr\":0.0,\"fgCalcAcerto\":\"A\",\"fgAcertoAnual\":\"\",\"fgContrRescind\":\"\",\"instContr\":\"UC\",\"cdEmpContr\":\"\",\"noContrCana\":null,\"vlRefAno\":0.0,\"vlICMS\":null,\"vlDescGeocana\":null,\"qtATRSemPremio\":null},{\"instancia\":\"UC\",\"cdUnidInd\":2.0,\"deUnidInd\":\"Usina Cresciumal\",\"cdFazenda\":\"203732\",\"deFazenda\":\"FAZENDA CASARÃO \",\"amAcerto\":\"2006-05-01T00:00:00\",\"fgTpProc\":\"M\",\"pcAcerto\":90.0,\"cdTpCalc\":99.0,\"deTpCalc\":\"CONSECANA\",\"cdFornec\":20050436.0,\"deFornec\":\"DIVA MARIA C. CARVALHO E OUTROS\",\"dtBaseATR\":\"2006-05-31T00:00:00\",\"cdSafra\":2006.0,\"cdTpPropr\":8.0,\"deTpPropr\":\"Parceria Pago Fornec\",\"vlATR\":117.4,\"vlTonCana\":18.1679,\"qtCanaEnt\":17108.0,\"vlCanaBruto\":310.82,\"vlCanaLiq\":279.74,\"vlFatorK\":0.4992,\"vlPg100\":null,\"vlAcertoATR\":null,\"vltotServ\":0.0,\"fgAcertoFinal\":\"\",\"fgIndividual\":\"N\",\"vlAcAtrReceb\":0.0,\"vlKgATR\":0.31,\"vlTotBonus\":0.0,\"vlRecPgTot\":0.0,\"fatorReducao\":0.0,\"acTotNf\":null,\"vlTotServCorr\":0.0,\"fgCalcAcerto\":\"A\",\"fgAcertoAnual\":\"\",\"fgContrRescind\":\"\",\"instContr\":\"UC\",\"cdEmpContr\":\"\",\"noContrCana\":null,\"vlRefAno\":null,\"vlICMS\":null,\"vlDescGeocana\":null,\"qtATRSemPremio\":null},{\"instancia\":\"UC\",\"cdUnidInd\":2.0,\"deUnidInd\":\"Usina Cresciumal\",\"cdFazenda\":\"203805\",\"deFazenda\":\"FAZENDA ILHA VERDE\",\"amAcerto\":\"2006-05-01T00:00:00\",\"fgTpProc\":\"\",\"pcAcerto\":100.0,\"cdTpCalc\":99.0,\"deTpCalc\":\"CONSECANA\",\"cdFornec\":20050459.0,\"deFornec\":\"NADY MOREIRA DE QUEIROZ\",\"dtBaseATR\":\"2006-05-10T00:00:00\",\"cdSafra\":2006.0,\"cdTpPropr\":null,\"deTpPropr\":\"\",\"vlATR\":147.1763,\"vlTonCana\":45.2733,\"qtCanaEnt\":11512096.0,\"vlCanaBruto\":537309.81,\"vlCanaLiq\":537309.81,\"vlFatorK\":0.9923,\"vlPg100\":null,\"vlAcertoATR\":null,\"vltotServ\":null,\"fgAcertoFinal\":\"S\",\"fgIndividual\":\"\",\"vlAcAtrReceb\":null,\"vlKgATR\":null,\"vlTotBonus\":null,\"vlRecPgTot\":0.0,\"fatorReducao\":0.0,\"acTotNf\":null,\"vlTotServCorr\":null,\"fgCalcAcerto\":\"\",\"fgAcertoAnual\":\"S\",\"fgContrRescind\":\"\",\"instContr\":\"UC\",\"cdEmpContr\":\"1\",\"noContrCana\":2008000001316.0,\"vlRefAno\":0.0,\"vlICMS\":null,\"vlDescGeocana\":null,\"qtATRSemPremio\":null},{\"instancia\":\"UC\",\"cdUnidInd\":2.0,\"deUnidInd\":\"Usina Cresciumal\",\"cdFazenda\":\"204110\",\"deFazenda\":\"FAZENDA SANTA CARMEM\",\"amAcerto\":\"2006-05-01T00:00:00\",\"fgTpProc\":\"M\",\"pcAcerto\":90.0,\"cdTpCalc\":99.0,\"deTpCalc\":\"CONSECANA\",\"cdFornec\":20050290.0,\"deFornec\":\"JOSÉ DE SOUZA QUEIROZ NETO\",\"dtBaseATR\":\"2006-05-31T00:00:00\",\"cdSafra\":2006.0,\"cdTpPropr\":5.0,\"deTpPropr\":\"Parceria Fixa\",\"vlATR\":138.29,\"vlTonCana\":36.358,\"qtCanaEnt\":324786.0,\"vlCanaBruto\":11808.57,\"vlCanaLiq\":10627.71,\"vlFatorK\":0.8481,\"vlPg100\":null,\"vlAcertoATR\":null,\"vltotServ\":null,\"fgAcertoFinal\":\"\",\"fgIndividual\":\"N\",\"vlAcAtrReceb\":0.0,\"vlKgATR\":0.31,\"vlTotBonus\":0.0,\"vlRecPgTot\":0.0,\"fatorReducao\":0.0,\"acTotNf\":null,\"vlTotServCorr\":null,\"fgCalcAcerto\":\"A\",\"fgAcertoAnual\":\"\",\"fgContrRescind\":\"\",\"instContr\":\"UC\",\"cdEmpContr\":\"\",\"noContrCana\":null,\"vlRefAno\":0.0,\"vlICMS\":null,\"vlDescGeocana\":null,\"qtATRSemPremio\":null},{\"instancia\":\"UC\",\"cdUnidInd\":2.0,\"deUnidInd\":\"Usina Cresciumal\",\"cdFazenda\":\"204704\",\"deFazenda\":\"SÍTIO CACHOEIRA DO ITUPEVA \",\"amAcerto\":\"2006-05-01T00:00:00\",\"fgTpProc\":\"M\",\"pcAcerto\":90.0,\"cdTpCalc\":99.0,\"deTpCalc\":\"CONSECANA\",\"cdFornec\":20050431.0,\"deFornec\":\"BENEDITO DA SILVA NETO SOBRINHO \",\"dtBaseATR\":\"2006-05-31T00:00:00\",\"cdSafra\":2006.0,\"cdTpPropr\":5.0,\"deTpPropr\":\"Parceria Fixa\",\"vlATR\":158.39,\"vlTonCana\":49.1009,\"qtCanaEnt\":778266.0,\"vlCanaBruto\":38213.56,\"vlCanaLiq\":34392.2,\"vlFatorK\":1.0,\"vlPg100\":null,\"vlAcertoATR\":null,\"vltotServ\":null,\"fgAcertoFinal\":\"\",\"fgIndividual\":\"N\",\"vlAcAtrReceb\":0.0,\"vlKgATR\":0.31,\"vlTotBonus\":0.0,\"vlRecPgTot\":0.0,\"fatorReducao\":0.0,\"acTotNf\":null,\"vlTotServCorr\":null,\"fgCalcAcerto\":\"A\",\"fgAcertoAnual\":\"\",\"fgContrRescind\":\"\",\"instContr\":\"UC\",\"cdEmpContr\":\"\",\"noContrCana\":null,\"vlRefAno\":0.0,\"vlICMS\":null,\"vlDescGeocana\":null,\"qtATRSemPremio\":null},{\"instancia\":\"UC\",\"cdUnidInd\":2.0,\"deUnidInd\":\"Usina Cresciumal\",\"cdFazenda\":\"204895\",\"deFazenda\":\"SÍTIO BAÍRA \",\"amAcerto\":\"2006-05-01T00:00:00\",\"fgTpProc\":\"M\",\"pcAcerto\":90.0,\"cdTpCalc\":99.0,\"deTpCalc\":\"CONSECANA\",\"cdFornec\":20050040.0,\"deFornec\":\"ELOISA E. DE CARVALHO MOREIRA E OUTRA\",\"dtBaseATR\":\"2006-05-31T00:00:00\",\"cdSafra\":2006.0,\"cdTpPropr\":5.0,\"deTpPropr\":\"Parceria Fixa\",\"vlATR\":152.1,\"vlTonCana\":47.151,\"qtCanaEnt\":10487.0,\"vlCanaBruto\":494.47,\"vlCanaLiq\":445.02,\"vlFatorK\":1.0,\"vlPg100\":null,\"vlAcertoATR\":null,\"vltotServ\":0.0,\"fgAcertoFinal\":\"\",\"fgIndividual\":\"N\",\"vlAcAtrReceb\":0.0,\"vlKgATR\":0.31,\"vlTotBonus\":0.0,\"vlRecPgTot\":0.0,\"fatorReducao\":0.0,\"acTotNf\":null,\"vlTotServCorr\":0.0,\"fgCalcAcerto\":\"A\",\"fgAcertoAnual\":\"\",\"fgContrRescind\":\"\",\"instContr\":\"\",\"cdEmpContr\":\"2\",\"noContrCana\":40.0,\"vlRefAno\":null,\"vlICMS\":null,\"vlDescGeocana\":null,\"qtATRSemPremio\":null},{\"instancia\":\"UC\",\"cdUnidInd\":2.0,\"deUnidInd\":\"Usina Cresciumal\",\"cdFazenda\":\"205805\",\"deFazenda\":\"FAZENDA ILHA VERDE\",\"amAcerto\":\"2006-05-01T00:00:00\",\"fgTpProc\":\"\",\"pcAcerto\":100.0,\"cdTpCalc\":99.0,\"deTpCalc\":\"CONSECANA\",\"cdFornec\":20900006.0,\"deFornec\":\"LOUIS DREYFUS COMMODITIES BIOENERGIA S.A\",\"dtBaseATR\":\"2006-05-10T00:00:00\",\"cdSafra\":2006.0,\"cdTpPropr\":null,\"deTpPropr\":\"\",\"vlATR\":147.1763,\"vlTonCana\":45.2733,\"qtCanaEnt\":2878024.0,\"vlCanaBruto\":134327.45,\"vlCanaLiq\":134327.45,\"vlFatorK\":0.9923,\"vlPg100\":null,\"vlAcertoATR\":null,\"vltotServ\":null,\"fgAcertoFinal\":\"S\",\"fgIndividual\":\"\",\"vlAcAtrReceb\":null,\"vlKgATR\":null,\"vlTotBonus\":null,\"vlRecPgTot\":null,\"fatorReducao\":null,\"acTotNf\":null,\"vlTotServCorr\":null,\"fgCalcAcerto\":\"\",\"fgAcertoAnual\":\"S\",\"fgContrRescind\":\"\",\"instContr\":\"UC\",\"cdEmpContr\":\"1\",\"noContrCana\":2008000001316.0,\"vlRefAno\":null,\"vlICMS\":null,\"vlDescGeocana\":null,\"qtATRSemPremio\":null}]"
}

Descrição Detalhada das Tags

SEGMENTOTAGSTIPOTAMANHODESCRITIVO DA TAG


Event

pInputINSTANCIA
instancia
String5Código da Instância
pInputAM_FORNEC_INIString10Data Inicial do PeríodopInputAM_FORNEC_FINString10Data Final do Período
cdUnidIndNumber3Código da Unidade Industrial
cdUpnivel1String6Código da Unidade Produção Nível
amAcertoDate10Anos e mês do Acerto
fgTpProcString1Flag para indicar o tipo de processo (F=Fornecedores - P=Parceria - T=Terceiros - R=Repasse)