unicef / etools

Other
11 stars 7 forks source link

[ch37278] External: New endpoint for ezHACT FR #3715

Closed emaciupe closed 3 days ago

emaciupe commented 2 months ago

[ch37278]

!Requires a new tenant switch "ezhact_external_fr_disabled"

POST /api/v2/funds/external-reservation/ payload example:

{
    "fr_items": [
        {
            "fr_ref_number": "1234",
            "line_item": 2345,
            "wbs": "111/A0/04/110/002/001",
            "donor": "UNDP",
            "donor_code": "777",
            "grant_number": "555",
            "fund": "SC",
            "overall_amount": "84.72",
            "overall_amount_dc": "84.72",
            "due_date": "2012-02-23",
            "line_item_text": "LEGAL AID"
        },
        {
            "fr_ref_number": "asdf",
            "line_item": 6789,
            "wbs": "111/A0/04/110/002/001",
            "donor": "N/A",
            "donor_code": "N/A",
            "grant_number": "NON-GRANT",
            "fund": "GC",
            "overall_amount": "25.00",
            "overall_amount_dc": "25.00",
            "due_date": "2012-12-17",
            "line_item_text": "LEGAL AID "
        }
    ],
    "business_area_code": "111",
    "pd_reference_number": "RWA/PCA2023161/SPD2023235",
    "vendor_code": "1111111",
    "fr_number": "222222",
    "document_date": "2024-07-08",
    "fr_type": "Programme Document Against PCA",
    "currency": "USD",
    "document_text": "RIGHTS PROJECT ",
    "intervention_amt": "110.20",
    "total_amt": "108.42",
    "total_amt_local": "109.72",
    "actual_amt": "110.20",
    "actual_amt_local": "0.00",
    "outstanding_amt": "12.98",
    "outstanding_amt_local": "0.00",
    "start_date": "2012-01-26",
    "end_date": "2024-07-08",
    "multi_curr_flag": true,
    "completed_flag": false,
    "delegated": false
}