Skip to content

Commit

Permalink
Merge pull request #73 from openimis/develop
Browse files Browse the repository at this point in the history
MERGING develop into release/23.10
  • Loading branch information
delcroip authored Dec 6, 2023
2 parents e6d84fa + 868745a commit 7845818
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions src/components/PolicyFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,31 @@ class PolicyFilter extends Component {
</Grid>
}
/>
<ControlledField
module="policy"
id="PolicyFilter.ConfirmationType"
field={
<Grid item xs={3} className={classes.item}>
<PublishedComponent
pubRef="insuree.ConfirmationTypePicker"
withNull={true}
nullLabel={formatMessage(intl, "insuree", "Family.ConfirmationType.null")}
value={this._filterValue("confirmationType")}
onChange={(k) => {
let filters = [
{
id: "confirmationType",
value: k,
filter: !k ? null : `confirmationType: "${k.code}"`,
},
];
this.props.onChangeFilters(filters);
}
}
/>
</Grid>
}
/>
<ControlledField
module="policy"
id="PolicyFilter.officer"
Expand Down
1 change: 1 addition & 0 deletions src/components/PolicyMasterPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ class PolicyMasterPanel extends FormPanel {
? decodeId(edited.family?.location?.parent?.parent?.id)
: 0
}
enrollmentDate={edited?.enrollDate ?? null}
/>
</Grid>
<Grid item xs={3} className={classes.item}>
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 7845818

Please sign in to comment.