pwyf / 2018-index-indicator-definitions

1 stars 0 forks source link

Finance Type #27

Open andylolz opened 7 years ago

andylolz commented 7 years ago

Description

The type of finance shows whether the activity is a grant, loan, export credit or debt relief.

This can be either at the activity or transaction level, and is only expected if the activity is in the implementation, completion or post-completion phase.

Proposed test

Firstly:

For each current activity,
if `activity-status/@code` is one of (2, 3, 4)
then `default-finance-type` should be present
or `transaction/finance-type` should be present

Secondly:

For each current activity,
if `activity-status/@code` is one of (2, 3, 4)
then at least one `default-finance-type/@code` should be on the FinanceType codelist
or at least one `transaction/finance-type/@code` should be on the FinanceType codelist
andylolz commented 7 years ago

These tests will remain as proposed.