Related invoices not displaying on PO

Description

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

Environment

None

Potential Workaround

None

Attachments

2

Checklist

hide

TestRail: 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 PM
Edited

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

Reporter

Tester Assignee

Priority

Story Points

Sprint

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
Loading...