Páginas filhas
  • Pesagem de Matéria Prima - WeighingRawMaterials

Versões comparadas

Chave

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

Está integração tem como objetivo possibilitar ao usuário do ERP enviar as pesagens ao PIMS para uma determinada unidade administrativa, ou seja, está integração será no sentido ERP para o PIMS.

Informações da Mensagem

  • Identificador da Mensagem: WeighingRawMaterials
  • Versão: 1.000
  • Módulo PIMS Multicultivos: Apontamentos > Colheita > Pesagem
  • Tipo de Envio: Síncrona
  • Tipo de Evento: Upsert

...

Bloco de código
languagexml
titleWeighingRawMaterials_Envio
linenumberstrue
collapsetrue
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TOTVSMessage>
	<MessageInformation version="1.002">
		<BranchId>D MG 01 </BranchId>
		<CompanyId>18</CompanyId>
		<DeliveryType>Sync</DeliveryType>
		<GeneratedOn>2018-05-22T17:17:34Z</GeneratedOn>
		<Product name="ERP" version="12"/>
		<SourceApplication>TSSLC_LOCAL18</SourceApplication>
		<StandardVersion>1.000</StandardVersion>
		<Transaction>WEIGHINGRAWMATERIALS</Transaction>
		<Type>BusinessMessage</Type>
		<UUID>b5246426-d823-6580-b4bd-7970e274a958</UUID>
	</MessageInformation>
	<BusinessMessage>
		<BusinessEvent>
			<Entity>WeighingRawMaterials</Entity>
			<Event>upsert</Event>
		</BusinessEvent>
		<BusinessContent>
			<CompanyId>18</CompanyId>
			<BranchId>D MG 01 </BranchId>
			<CompanyInternalId>D |D MG 01 </CompanyInternalId>
			<InternalId>D MG 01 |90|0000000535</InternalId>
			<MovementDate>2018-05-22</MovementDate>
			<EntryDate>2018-05-22T14:16:00</EntryDate>
			<ExitDate>2018-05-22T14:16:00</ExitDate>
			<HarvestOrderCodePIMS>6</HarvestOrderCodePIMS>
			<HarvestOrderCode>0000000535</HarvestOrderCode>
			<WarehouseCode>01</WarehouseCode>
			<WarehouseInternalId>D MG 01 |01</WarehouseInternalId>
			<GrossWeight>10000</GrossWeight>
			<TaraWeight>5000</TaraWeight>
			<ImpurityTotal>12</ImpurityTotal>
			<WeighingBulletinNumber>90</WeighingBulletinNumber>
			<EquipmentCode>AAA-1010</EquipmentCode>
		</BusinessContent>
	</BusinessMessage>
</TOTVSMessage>
Bloco de código
languagexml
titleWeighingRawMaterials_Retorno
linenumberstrue
collapsetrue
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TOTVSMessage>
	<MessageInformation version="1.002">
		<BranchId>D MG 01 </BranchId>
		<CompanyId>18</CompanyId>
		<DeliveryType>Sync</DeliveryType>
		<GeneratedOn>2018-05-22T14:17:35</GeneratedOn>
		<Product name="PIMS" version="12.1.21"/>
		<SourceApplication>PIMSCONNECTOR</SourceApplication>
		<StandardVersion>1.000</StandardVersion>
		<Transaction>WEIGHINGRAWMATERIALS</Transaction>
		<Type>Response</Type>
		<UUID>f1c2edea-7b61-4390-9a10-5d651a923112</UUID>
	</MessageInformation>
	<ResponseMessage>
		<ProcessingInformation>
			<ProcessedOn>2018-05-22T14:17:35</ProcessedOn>
			<Status>OK</Status>
		</ProcessingInformation>
		<ReceivedMessage>
			<MessageContent/>
			<SentBy>ERP</SentBy>
			<UUID>b5246426-d823-6580-b4bd-7970e274a958</UUID>
		</ReceivedMessage>
		<ReturnContent>
			<ListOfInternalId>
				<InternalId>
					<Destination>||2977051546669589755</Destination>
					<Name>WEIGHINGRAWMATERIALS</Name>
					<Origin>D MG 01 |90|0000000535</Origin>
				</InternalId>
			</ListOfInternalId>
		</ReturnContent>
	</ResponseMessage>
</TOTVSMessage>

Mensagem JSON

Bloco de código
languagejs
titleWeighingRawMaterials_Envio
linenumberstrue
collapsetrue
{
	"TOTVSMessage" : {
		"MessageInformation" : {
			"@version" : "1.002",
			"BranchId" : "D MG 01 ",
			"CompanyId" : "18",
			"DeliveryType" : "Sync",
			"GeneratedOn" : "2018-05-22T17:17:34Z",
			"Product" : {
				"@name" : "ERP",
				"@version" : "12"
			},
			"SourceApplication" : "TSSLC_LOCAL18",
			"StandardVersion" : "1.000",
			"Transaction" : "WEIGHINGRAWMATERIALS",
			"Type" : "BusinessMessage",
			"UUID" : "b5246426-d823-6580-b4bd-7970e274a958"
		},
		"BusinessMessage" : {
			"BusinessEvent" : {
				"Entity" : "WeighingRawMaterials",
				"Event" : "upsert"
			},
			"BusinessContent" : {
				"CompanyId" : "18",
				"BranchId" : "D MG 01 ",
				"CompanyInternalId" : "D |D MG 01 ",
				"InternalId" : "D MG 01 |90|0000000535",
				"MovementDate" : "2018-05-22",
				"EntryDate" : "2018-05-22T14:16:00",
				"ExitDate" : "2018-05-22T14:16:00",
				"HarvestOrderCodePIMS" : "6",
				"HarvestOrderCode" : "0000000535",
				"WarehouseCode" : "01",
				"WarehouseInternalId" : "D MG 01 |01",
				"GrossWeight" : "10000",
				"TaraWeight" : "5000",
				"ImpurityTotal" : "12",
				"WeighingBulletinNumber" : "90",
				"EquipmentCode" : "AAA-1010"
			}
		}
	}
}
Bloco de código
languagejs
titleWeighingRawMaterials_Retorno
linenumberstrue
collapsetrue
{
	"TOTVSMessage" : {
		"MessageInformation" : {
			"@version" : "1.002",
			"BranchId" : "D MG 01 ",
			"CompanyId" : "18",
			"DeliveryType" : "Sync",
			"GeneratedOn" : "2018-05-22T14:17:35",
			"Product" : {
				"@name" : "PIMS",
				"@version" : "12.1.21"
			},
			"SourceApplication" : "PIMSCONNECTOR",
			"StandardVersion" : "1.000",
			"Transaction" : "WEIGHINGRAWMATERIALS",
			"Type" : "Response",
			"UUID" : "f1c2edea-7b61-4390-9a10-5d651a923112"
		},
		"ResponseMessage" : {
			"ProcessingInformation" : {
				"ProcessedOn" : "2018-05-22T14:17:35",
				"Status" : "OK"
			},
			"ReceivedMessage" : {
				"MessageContent" : null,
				"SentBy" : "ERP",
				"UUID" : "b5246426-d823-6580-b4bd-7970e274a958"
			},
			"ReturnContent" : {
				"ListOfInternalId" : {
					"InternalId" : {
						"Destination" : "||2977051546669589755",
						"Name" : "WEIGHINGRAWMATERIALS",
						"Origin" : "D MG 01 |90|0000000535"
					}
				}
			}
		}
	}
}

Descrição Detalhada das Tags

...