diff --git a/src/components/PolicyFilter.js b/src/components/PolicyFilter.js index 35c641f..bcd3407 100644 --- a/src/components/PolicyFilter.js +++ b/src/components/PolicyFilter.js @@ -132,6 +132,31 @@ class PolicyFilter extends Component { } /> + + { + let filters = [ + { + id: "confirmationType", + value: k, + filter: !k ? null : `confirmationType: "${k.code}"`, + }, + ]; + this.props.onChangeFilters(filters); + } + } + /> + + } + /> diff --git a/src/index.js b/src/index.js index 7175e51..1bc6b0c 100644 --- a/src/index.js +++ b/src/index.js @@ -53,7 +53,7 @@ const DEFAULT_CONFIG = { "refs": [ { key: "policy.PolicyOfficerPicker", ref: PolicyOfficerPicker }, { key: "policy.PolicyOfficerPicker.projection", ref: ["id", "uuid", "code", "lastName", "otherNames"] }, - { key: "policy.PolicyPicker.projection", ref: ["id", "uuid", "startDate", "product{name, code}", "expiryDate", "value"] }, + { key: "policy.PolicyPicker.projection", ref: ["id", "uuid", "startDate", "product{name, code}", "expiryDate", "value", "sumPremiums"] }, { key: "policy.PolicyOfficerPicker.sort", ref: 'officer__code' }, { key: "policy.PolicyStatusPicker", ref: PolicyStatusPicker }, { key: "policy.PolicyStatusPicker.projection", ref: null },