---
title: "resetCalculationRule"
slug: "api/basket/operations/resetcalculationrule"
sidebar:
  order: 476.2
---

## Synopsis

```text
void resetCalculationRule(SessionId sessionId,
    BItemId[] itemIds,
    string ppName,
    string condType,
    int counter,
    CondGroupSelectionOptions? options)
throws BasketServiceFault;
```

See also: [`SessionId`](/pCon/configuratorOnline/specs/api/session/types/sessionid), [`BItemId`](/pCon/configuratorOnline/specs/api/basket/types/bitemid), [`CondGroupSelectionOptions`](/pCon/configuratorOnline/specs/api/basket/types/condgroupselectionoptions), [`BasketServiceFault`](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault)

Resets an explicitly specified calculation rule of item or header conditions. Calculation and condition selection work as for [resetConditionAmount](/pCon/configuratorOnline/specs/api/basket/operations/resetconditionamount) and [setCalculationRule](/pCon/configuratorOnline/specs/api/basket/operations/setcalculationrule).

Conditions without an explicitly specified calculation rule are ignored. For other conditions, the explicit rule, condition amount and, where applicable, quantity relation are reset together. The condition then uses the values supplied by a condition record. If there is no condition record, the condition becomes inactive because its data is missing.
