Objetivo:

 

 

 

 

Serviço REST - Protheus - taskcostassignments

/TASKCOSTASSIGNMENTS?
ParâmetroTipoObrigatoriedade
pageINTEGEROBRIGATÓRIO
pageSizeINTEGEROBRIGATÓRIO
sourceAppSTRINGOBRIGATÓRIO
companyIdSTRINGOBRIGATÓRIO
branchIdSTRINGOBRIGATÓRIO
companyInternalIdSTRINGOBRIGATÓRIO
freightValueExcludedBooleanOPCIONAL
insuranceValueExcludedBooleanOPCIONAL
expenseValueExcludedBooleanOPCIONAL
initialTaskInternalIdSTRINGOBRIGATÓRIO
finishTaskInternalIdSTRINGOBRIGATÓRIO
initialDateSTRINGOPCIONAL
finishDateSTRINGOPCIONAL
datePurchaseSTRINGOPCIONAL
dateStockSTRINGOPCIONAL
datePaymentSTRINGOPCIONAL
currencyIdSTRINGOBRIGATÓRIO

 

RESPOSTA:

 

{
	"total": 10,
	"hasNext": true,	
	"data": {
		"accountingClosingDate": "2017-10-30",
		"tasks": [      
         {
		    "taskInternalId": "01|010101|PRJ0001|01|001.01.01",
		    "taskCostAssignments": [
				{
					"companyInternalid": "01|010101",
					"productInternalid": "01|010101|001.01",
					"documentType": "NFE",
					"recNo": "001",
					"documentNumber": "0001",
					"itemNumber": "01",
					"apportionmentDate": "01/01/2017",
					"unitOfMeasureInternalid": "un",
					"quantity": 1.0000,
					"unitPrice": 792.00,
					"increase": 1.50,
					"decrease": 1.50,
					"totalPrice": 793.50,
					"customerVendorInternalId": "F;0001|01",
					"currencyInternalId": "R$"					
				},
				{
					"companyInternalid": "01|010101",
					"itemInternalid": "01|010101|001.01",
					"documentType": "NFE",
					"recNo": "001",
					"number": "0001",
					"itemNumber": "02",
					"itemInternalid": "01|010101|001.01",
					"apportionmentDate": "01/01/2017",
					"unitOfMeasureInternalid": "un",
					"quantity": "2.0000",
					"unitPrice": "10.00",
					"totalPrice": "20.00",
					"customerVendorInternalId": "F;0001|01",
					"currencyInternalId": "R$"					
				}
            ]        
      ]
    }
  }
}