Relink invoice with new order if POL link was changed in invoice line

Description

Purpose/Overview:
https://folio-org.atlassian.net/browse/UINV-193 - Be able to link an invoice line to a PO line after the invoice line has been created]

Requirements/Scope:

  1. Add link between invoice line and order line after the invoice line has been created.

  2. Update link between invoice line and order line.

Approach:
You need to check a list of links between the order and the invoice, if not, then delete it and create a new one. If a link exists for a new order, then there is no need to update or create a new link

Reuse logic org.folio.services.order.OrderService#createInvoiceOrderRelation for the org.folio.rest.impl.InvoiceLineHelper#updateInvoiceLine

 

Acceptance criteria:

  • Logic updated

  • Unit tests created

  • API tests created

Environment

None

Potential Workaround

None

Attachments

2
  • 17 Jun 2021, 12:42 PM
  • 04 Jun 2021, 02:34 PM

Checklist

hide

TestRail: Results

Activity

Show:

Dennis BridgesJune 17, 2021 at 9:37 PM

Test successful in folio-testing

Siarhei HrabkoJune 17, 2021 at 5:08 PM

, please make a final verification of this story to be sure that everything implemented as expected

Siarhei HrabkoJune 17, 2021 at 12:42 PM

Verified via integration tests against testing env

Max ShtankoJune 4, 2021 at 2:34 PM

Tested locally with the collection below. 

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

Release

R2 2021

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created December 9, 2020 at 11:28 AM
Updated July 1, 2021 at 9:23 AM
Resolved June 17, 2021 at 9:37 PM
TestRail: Cases
TestRail: Runs

Flag notifications