Skip to content

Commit

Permalink
[MODORDERS-944/MODORDERS-948/MODFIN-333] - BE - Added donor info to F…
Browse files Browse the repository at this point in the history
…und and POL and receiving statuses for piece (#426)

* [MODORDERS-944/MODORDERS-948/MODFIN-333] BE - Added donor info to Fund, POL and added new receiving statuses for piece to schema

* [MODORDERS-944/MODORDERS-948/MODFIN-333] BE - Added donor info to Fund and POL and receiving statuses for piece

* [MODORDERS-944/MODORDERS-948/MODFIN-333] - added index

* [MODORDERS-944/MODORDERS-948/MODFIN-333] - minor improvement

* [MODORDERS-944/MODORDERS-948/MODFIN-333] - minor improvement
  • Loading branch information
azizbekxm authored Oct 20, 2023
1 parent 08bbc65 commit 60f5255
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 4 deletions.
4 changes: 4 additions & 0 deletions mod-finance/examples/fund.sample
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"1895e539-8dac-441e-b1f5-aab62b3fde60",
"47f504bd-0c1b-498e-a2ae-e2f0a0cea273"
],
"donorOrganizationIds": [
"d926d900-e27d-46d6-bba8-31e9d5c2cf44",
"077274ad-6b4f-4c28-9779-6d381e7a1ca1"
],
"tags": {
"tagList": [
"tag"
Expand Down
8 changes: 8 additions & 0 deletions mod-finance/schemas/fund.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@
"$ref": "../../common/schemas/uuid.json"
}
},
"donorOrganizationIds": {
"description": "donor organization ids associated with this fund",
"type": "array",
"items": {
"description": "UUID of an donor organization record",
"$ref": "../../common/schemas/uuid.json"
}
},
"tags": {
"type" : "object",
"description": "arbitrary tags associated with this fund",
Expand Down
4 changes: 2 additions & 2 deletions mod-orders-storage/examples/piece_collection.sample
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"discoverySuppress": false,
"copyNumber": "175143",
"receiptDate": "2020-01-10T00:00:00.000Z",
"receivingStatus": "Expected",
"receivingStatus": "Unreceivable",
"supplement": true
},
{
Expand Down Expand Up @@ -51,7 +51,7 @@
"chronology": "2022",
"discoverySuppress": true,
"copyNumber": "108572",
"receivingStatus": "Received",
"receivingStatus": "Late",
"supplement": true,
"receiptDate": "2018-10-11T00:00:00.000Z",
"receivedDate": "2018-10-10T00:00:00.000Z"
Expand Down
2 changes: 1 addition & 1 deletion mod-orders-storage/examples/piece_post.sample
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"chronology": "2021",
"discoverySuppress": false,
"copyNumber": "94753",
"receivingStatus": "Expected",
"receivingStatus": "Claim delayed",
"supplement": true,
"receiptDate": "2018-10-11T00:00:00.000Z"
}
4 changes: 4 additions & 0 deletions mod-orders-storage/examples/po_line_collection.sample
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
"subscriptionTo": "2020-10-09T00:00:00.000Z"
},
"donor": "ABCDEFGHIJKLM",
"donorOrganizationIds": [
"d926d900-e27d-46d6-bba8-31e9d5c2cf44",
"077274ad-6b4f-4c28-9779-6d381e7a1ca1"
],
"eresource": {
"accessProvider": "ba3f3d45-247d-41f6-8dc9-6488adcad329",
"activated": false,
Expand Down
4 changes: 4 additions & 0 deletions mod-orders-storage/examples/po_line_get.sample
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
"subscriptionTo": "2020-10-09T00:00:00.000Z"
},
"donor": "ABCDEFGHIJKLM",
"donorOrganizationIds": [
"d926d900-e27d-46d6-bba8-31e9d5c2cf44",
"077274ad-6b4f-4c28-9779-6d381e7a1ca1"
],
"eresource": {
"accessProvider": "ba3f3d45-247d-41f6-8dc9-6488adcad329",
"activated": false,
Expand Down
4 changes: 4 additions & 0 deletions mod-orders-storage/examples/po_line_post.sample
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
"subscriptionTo": "2020-10-09T00:00:00.000Z"
},
"donor": "ABCDEFGHIJKLM",
"donorOrganizationIds": [
"d926d900-e27d-46d6-bba8-31e9d5c2cf44",
"077274ad-6b4f-4c28-9779-6d381e7a1ca1"
],
"fundDistribution": [
{
"code": "HIST",
Expand Down
6 changes: 5 additions & 1 deletion mod-orders-storage/schemas/piece.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@
"type": "string",
"enum": [
"Received",
"Expected"
"Expected",
"Late",
"Claim delayed",
"Claim sent",
"Unreceivable"
],
"default": "Expected"
},
Expand Down
8 changes: 8 additions & 0 deletions mod-orders-storage/schemas/po_line.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@
"description": "the donor contributing to this purchase order line",
"type": "string"
},
"donorOrganizationIds": {
"description": "donor organization ids associated with this fund",
"type": "array",
"items": {
"description": "UUID of an donor organization record",
"$ref": "../../common/schemas/uuid.json"
}
},
"eresource": {
"description": "eresource record",
"type": "object",
Expand Down
4 changes: 4 additions & 0 deletions mod-orders/examples/composite_po_line.sample
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
"subscriptionTo": "2020-10-09T00:00:00.000Z"
},
"donor": "ABCDEFGHIJKLM",
"donorOrganizationIds": [
"d926d900-e27d-46d6-bba8-31e9d5c2cf44",
"077274ad-6b4f-4c28-9779-6d381e7a1ca1"
],
"eresource": {
"activated": false,
"activationDue": 10,
Expand Down
8 changes: 8 additions & 0 deletions mod-orders/schemas/composite_po_line.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@
"description": "the donor contributing to this purchase order line",
"type": "string"
},
"donorOrganizationIds": {
"description": "donor organization ids associated with this fund",
"type": "array",
"items": {
"description": "UUID of an donor organization record",
"$ref": "../../common/schemas/uuid.json"
}
},
"eresource": {
"description": "eresource-related details of this purchase order line",
"type": "object",
Expand Down

0 comments on commit 60f5255

Please sign in to comment.