Objetivo:

 

 

 

 

Serviço REST - Protheus - taskcostassignments

/TASKCOSTASSIGNMENTS?
ParâmetroTipoObrigatoriedade
pageINTEGEROBRIGATÓRIO
pageSizeINTEGEROBRIGATÓRIO
orderSTRINGOPCIONAL
sourceAppSTRINGOBRIGATÓRIO
companyIdSTRINGOBRIGATÓRIO
branchIdSTRINGOBRIGATÓRIO
companyInternalIdSTRINGOBRIGATÓRIO
projectInternalIdSTRINGOBRIGATÓRIO
freightValueExcludedBooleanOPCIONAL
insuranceValueExcludedBooleanOPCIONAL
expenseValueExcludedBooleanOPCIONAL
initialTaskInternalId ***STRINGOBRIGATÓRIO
finishTaskInternalId ***STRINGOBRIGATÓRIO
initialDateSTRINGOPCIONAL *
finishDateSTRINGOPCIONAL *
datePurchaseSTRINGOPCIONAL
dateStockSTRINGOPCIONAL
datePaymentSTRINGOPCIONAL
currencyIdSTRINGOBRIGATÓRIO

 

RESPOSTA:

 

{
	"total": 10,
	"hasNext": true,	
	"data": {
		"accountingClosingDate": "2017-10-30",
		"listOfTasks": [      
        {
		    "taskInternalId": "01|010101|PRJ0001|01|001.01.01",
		    "taskCostAssignments": [
				{
					"companyInternalid": "01|010101",
					"itemInternalid": "01|010101|001.01",
					"documentType": "NFE",
					"recNo": "001",
					"number": "0001",
					"itemNumber": "01",
					"itemInternalid": "01|010101|001.01",
					"apportionmentDate": "01/01/2017",
					"unitOfMeasureInternalid": "un",
					"quantity": "1.0000",
					"unitPrice": "792.00",
					"totalPrice": "792.00",
					"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$"					
				}
            ]        
      ]
    }
  }
}