Objetivo:
Serviço REST - Protheus - taskcostassignments
| /TASKCOSTASSIGNMENTS? | ||
| Parâmetro | Tipo | Obrigatoriedade | 
|---|---|---|
| page | INTEGER | OBRIGATÓRIO | 
| pageSize | INTEGER | OBRIGATÓRIO | 
| sourceApp | STRING | OBRIGATÓRIO | 
| companyId | STRING | OBRIGATÓRIO | 
| branchId | STRING | OBRIGATÓRIO | 
| companyInternalId | STRING | OBRIGATÓRIO | 
| freightValueExcluded | Boolean | OPCIONAL | 
| insuranceValueExcluded | Boolean | OPCIONAL | 
| expenseValueExcluded | Boolean | OPCIONAL | 
| initialTaskInternalId | STRING | OBRIGATÓRIO | 
| finishTaskInternalId | STRING | OBRIGATÓRIO | 
| initialDate | STRING | OPCIONAL | 
| finishDate | STRING | OPCIONAL | 
| datePurchase | STRING | OPCIONAL | 
| dateStock | STRING | OPCIONAL | 
| datePayment | STRING | OPCIONAL | 
| currencyId | STRING | OBRIGATÓRIO | 
RESPOSTA:
JSon Resposta
{
    "total": 10,
    "hasNext": true,
    "data": {
        "accountingClosingDate": "2017-10-30",
        "tasks": [    
         {
            "taskInternalId": "01|010101|PRJ0001|01|001.01.01",
            "taskCostAssignments": [
                {
					"companyInternalid": "01|010101|001.01",
                    "itemInternalid": "01|010101|001.01",
                    "documentType": "NFE",
                    "recNo": "001",
                    "documentNumber": "0001",
                    "itemNumber": "01",
                    "registerDate": "2017-01-01",
                    "apportionmentDate": "2017-01-01",
                    "unitOfMeasureInternalid": "un",
                    "quantity": 1.0000,
                    "unitPrice": 792.00,
                    "increase": 1.50,
                    "decrease": 1.50,
                    "totalPrice": 793.50,
                    "customerVendorInternalId": "F;0001|01",
                    "currencyInternalId": "01||R$"                
                },
                {
					"companyInternalid": "01|010101|001.01",
                    "itemInternalid": "01|010101|001.01",
                    "documentType": "NFE",
                    "recNo": "001",
                    "number": "0001",
                    "itemNumber": "02",
                    "registerDate": "2017-01-01",
                    "apportionmentDate":"2017-01-01",
                    "unitOfMeasureInternalid": "un",
                    "quantity": 2.0000,
                    "unitPrice": 10.00,
                    "totalPrice": 20.00,
                    "customerVendorInternalId": "F;0001|01",
                    "currencyInternalId": "01||R$"                
                }
            ]
         },
         {
            "taskInternalId": "01|010101|PRJ0001|01|002.01.09",
            "taskCostAssignments": [
                {
					"companyInternalid": "01|010101|001.01",
                    "itemInternalid": "01|010101|001.01",
                    "documentType": "NFE",
                    "recNo": "001",
                    "documentNumber": "0001",
                    "itemNumber": "01",
                    "registerDate": "2017-01-01",
                    "apportionmentDate": "2017-01-01",
                    "unitOfMeasureInternalid": "un",
                    "quantity": 1.0000,
                    "unitPrice": 792.00,
                    "increase": 1.50,
                    "decrease": 1.50,
                    "totalPrice": 793.50,
                    "customerVendorInternalId": "F;0001|01",
                    "currencyInternalId": "01||R$"                
                },
                {
					"companyInternalid": "01|010101|001.01",
                    "itemInternalid": "01|010101|001.01",
                    "documentType": "NFE",
                    "recNo": "001",
                    "number": "0001",
                    "itemNumber": "02",
                    "registerDate": "2017-01-01",
                    "apportionmentDate": "2017-01-01",
                    "unitOfMeasureInternalid": "un",
                    "quantity": 2.0000,
                    "unitPrice": 10.00,
                    "totalPrice": 20.00,
                    "customerVendorInternalId": "F;0001|01",
                    "currencyInternalId": "01||R$"                
                }
            ]
         }      
      ]
    } 
}
Import HTML Content
            Visão Geral
            Conteúdo das Ferramentas
    
