forked from practicalparticipation/iati-datastore
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #385 from codeforIATI/currency_conversion_to_usd_p…
…art3 Output converted currency columns (USD + EUR)
- Loading branch information
Showing
5 changed files
with
307 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
iati_datastore/iatilib/test/fixtures/budget-currencies.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<iati-activities version="2.03"> | ||
<iati-activity default-currency="GBP" hierarchy="1" xml:lang="de"> | ||
<iati-identifier>DE-1-198966376</iati-identifier> | ||
<iati-identifier>DE-1-198966376</iati-identifier> | ||
<reporting-org ref="DE-1" secondary-reporter="0" type="10"> | ||
<narrative xml:lang="de">Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung (BMZ)</narrative> | ||
</reporting-org> | ||
<budget type="2" status="2"> | ||
<period-start iso-date="2016-01-01"/> | ||
<period-end iso-date="2016-12-31"/> | ||
<value currency="GBP" value-date="2016-12-23">1916543</value> | ||
</budget> | ||
<budget type="2" status="2"> | ||
<period-start iso-date="2017-01-01"/> | ||
<period-end iso-date="2017-12-31"/> | ||
<value currency="GBP" value-date="2017-12-10">3024387</value> | ||
</budget> | ||
<budget type="2" status="2"> | ||
<period-start iso-date="2018-01-01"/> | ||
<period-end iso-date="2018-12-31"/> | ||
<value currency="GBP" value-date="2018-12-10">2935782</value> | ||
</budget> | ||
<budget type="2" status="2"> | ||
<period-start iso-date="2019-01-01"/> | ||
<period-end iso-date="2019-12-31"/> | ||
<value currency="GBP" value-date="2019-12-10">3343511</value> | ||
</budget> | ||
<budget type="2" status="2"> | ||
<period-start iso-date="2020-01-01"/> | ||
<period-end iso-date="2020-12-31"/> | ||
<value currency="GBP" value-date="2020-12-10">3587780</value> | ||
</budget> | ||
</iati-activity> | ||
</iati-activities> |
44 changes: 44 additions & 0 deletions
44
iati_datastore/iatilib/test/fixtures/transaction-currencies.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<iati-activities version="2.03"> | ||
<iati-activity default-currency="GBP" hierarchy="1" xml:lang="de"> | ||
<iati-identifier>DE-1-198966376</iati-identifier> | ||
<iati-identifier>DE-1-198966376</iati-identifier> | ||
<reporting-org ref="DE-1" secondary-reporter="0" type="10"> | ||
<narrative xml:lang="de">Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung (BMZ)</narrative> | ||
</reporting-org> | ||
<transaction ref="ACET RS12-A"> | ||
<transaction-type code="1"/> | ||
<transaction-date iso-date="2017-06-30"/> | ||
<value currency="GBP" value-date="2017-06-30">8797.16</value> | ||
</transaction> | ||
<transaction ref="ACET RS13-A"> | ||
<transaction-type code="2"/> | ||
<transaction-date iso-date="2017-06-30"/> | ||
<value currency="GBP" value-date="2017-06-30">9797.16</value> | ||
</transaction> | ||
<transaction ref="ACET RS14-A"> | ||
<transaction-type code="3"/> | ||
<transaction-date iso-date="2017-06-30"/> | ||
<value currency="GBP" value-date="2017-06-30">5797.16</value> | ||
</transaction> | ||
<transaction ref="ACET RS15-A"> | ||
<transaction-type code="4"/> | ||
<transaction-date iso-date="2017-06-30"/> | ||
<value currency="GBP" value-date="2017-06-30">6797.16</value> | ||
</transaction> | ||
<transaction ref="ACET RS16-A"> | ||
<transaction-type code="5"/> | ||
<transaction-date iso-date="2017-06-30"/> | ||
<value currency="GBP" value-date="2017-06-30">16797.16</value> | ||
</transaction> | ||
<transaction ref="ACET RS17-A"> | ||
<transaction-type code="6"/> | ||
<transaction-date iso-date="2017-06-30"/> | ||
<value currency="GBP" value-date="2017-06-30">26797.16</value> | ||
</transaction> | ||
<transaction ref="ACET RS17-A"> | ||
<transaction-type code="7"/> | ||
<transaction-date iso-date="2017-06-30"/> | ||
<value currency="GBP" value-date="2017-06-30">56797.16</value> | ||
</transaction> | ||
</iati-activity> | ||
</iati-activities> |
Oops, something went wrong.