# system.kanoa.tooling.resetCounter(resetInfo, userId)

Resets a tool's counts after maintenance, logged as adjustments. pm sets the since-PM counts to 0 and stamps lastPmDate; refurb sets the since-refurbishment counts to 0, stamps lastRefurbDate and adds 1 to refurbCount; calibration stamps lastCalibrationDate and moves calibrationDue on by the tool's calibrationIntervalDays. The tool's status is then brought up to date.

---

### Parameters

**resetInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
 <tbody>
  <tr><td> - toolingAssetId</td><td>Integer</td><td>Required</td></tr>
  <tr><td> - kind</td><td>String</td><td>Required. pm, refurb or calibration</td></tr>
  <tr><td> - workOrderId</td><td>Integer</td><td>The maintenance work order</td></tr>
  <tr><td> - note</td><td>String</td><td></td></tr>
 </tbody>
</table>

**userId** `Integer`: The user making the change<br />

---

### Returns

**(1, message)**<br />

---

### Example

```python
resetInfo = {'toolingAssetId': 1, 'kind': 'kind', 'workOrderId': 1, 'note': 'note'}
userId = 5
result1, result2 = system.kanoa.tooling.resetCounter(resetInfo, userId)
```
