Skip to content

Commit

Permalink
feat(patients): link Fin. Act. to registries
Browse files Browse the repository at this point in the history
This commit ensures the links to the different registries from the
patient's financial activity work.  Note that there is a bug #2596.
  • Loading branch information
jniles committed Apr 6, 2018
1 parent 9e32a8b commit b21f3df
Showing 1 changed file with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,15 @@ <h5 ng-show="!$ctrl.status.isInGoodStanding" class="text-danger">
<tr>
<th>
<span translate>FORM.LABELS.INVOICES</span>
(<a ui-sref="invoiceRegistry({debtor_uuid : $ctrl.patient.debtor_uuid})">{{$ctrl.groups.IV.count}}</a>)
(<a href ui-sref="invoiceRegistry({
filters : [
{ key : 'patientReference', value : $ctrl.data.patient.reference },
{ key : 'limit', value : $ctrl.groups.IV.count },
{ key : 'period', value : 'allTime' }
]
})">
{{$ctrl.groups.IV.count}}
</a>)
</th>
<td>IV</td>
<td>{{$ctrl.groups.IV.count }}</td>
Expand All @@ -108,7 +116,15 @@ <h5 ng-show="!$ctrl.status.isInGoodStanding" class="text-danger">
<tr>
<th>
<span translate>FORM.LABELS.CASH_PAYMENTS</span>
(<a ui-sref="cashRegistry({debtor_uuid : $ctrl.patient.debtor_uuid })">{{$ctrl.groups.CP.count}}</a>)
(<a href ui-sref="cashRegistry({
filters : [
{ key : 'patientReference', value : $ctrl.data.patient.reference },
{ key : 'limit', value : $ctrl.groups.CP.count },
{ key : 'period', value : 'allTime' }
]
})">
{{$ctrl.groups.CP.count}}
</a>)
</th>
<td>CP</td>
<td>{{$ctrl.groups.CP.count }}</td>
Expand All @@ -120,7 +136,15 @@ <h5 ng-show="!$ctrl.status.isInGoodStanding" class="text-danger">
<tr>
<th>
<span translate>FORM.LABELS.VOUCHERS</span>
(<a ui-sref="voucherRegistry({debtor_uuid : $ctrl.patient.debtor_uuid })">{{$ctrl.groups.VO.count}}</a>)
(<a href ui-sref="vouchers({
filters : [
{ key : 'entity_uuid', value : $ctrl.data.patient.debtor_uuid, displayValue: $ctrl.data.patient.display_name },
{ key : 'limit', value : $ctrl.groups.VO.count },
{ key : 'period', value : 'allTime' }
]
})">
{{$ctrl.groups.VO.count}}
</a>)
</th>
<td>VO</td>
<td>{{$ctrl.groups.VO.count }}</td>
Expand Down

0 comments on commit b21f3df

Please sign in to comment.