Related invoices not displaying on PO
Description
Environment
None
Potential Workaround
None
Attachments
2
blocks
defines
has to be done before
relates to
Checklist
hideTestRail: Results
Activity
Show:

Aliaksandr Pautau October 1, 2020 at 7:16 AM
Verified on folio testing via UI:

Yauheni Kuzmianok September 29, 2020 at 7:44 AM
Verified on snapshot by above tests

Yauheni Kuzmianok September 25, 2020 at 12:01 PMEdited
Api tests has been updated https://github.com/folio-org/folio-api-tests/pull/479
And added new integration test https://github.com/folio-org/folio-integration-tests/pull/59/files

Craig McNally February 19, 2020 at 3:17 PM
this probably relates to the order-invoice-relationship table which we currently aren't populating. Take a closer look and create a story or repurpose this bug.
Done
Details
Assignee
Aliaksandr PautauAliaksandr PautauReporter
Dennis BridgesDennis BridgesTester Assignee
Dennis BridgesDennis BridgesPriority
P3Story Points
3Sprint
NoneDevelopment Team
ThunderjetFix versions
TestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Assignee

Reporter

Tester Assignee

Priority
Story Points
3
Sprint
None
Development Team
Thunderjet
Fix versions
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created December 18, 2019 at 4:42 PM
Updated November 25, 2020 at 12:38 PM
Resolved October 1, 2020 at 7:16 AM
Overview
In order to list the invoices for a given purchase order, we need to populate the order-invoice-relationship table. This should happen when creating/deleting invoice lines.
Approach
The orders-invoice-relationships API should be called when creating/removing invoice-lines.
Upon invoice-line creation
GET /orders-storage/order-invoice-relns?query=purchaseOrderId==<poId> and invoiceId==<invId>
POST /orders-storage/order-invoice-relns (if needed)
Gracefully handle failures due to record already existing
Upon invoice-line deletion
Acceptance Criteria
The order-invoice-relationships table is updated upon invoice-line creation/deletion
unit tests are updated
api tests are updated