Create, close, cancel, Purchase Orders (UXPROD-1141)

[MODORDERS-563] Cannot delete PO Line if other PO Line on the same order is linked to an invoice line Created: 12/Aug/21  Updated: 09/Nov/21  Resolved: 14/Sep/21

Status: Closed
Project: mod-orders
Components: None
Affects versions: None
Fix versions: 12.1.3
Parent: Create, close, cancel, Purchase Orders

Type: Bug Priority: P3
Reporter: Lisa Sjögren Assignee: Ann-Marie Breaux (Inactive)
Resolution: Done Votes: 0
Labels: communitycontrib
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Attachments: File MODORDERS-563.postman_collection.json     PNG File Screen Shot 2021-08-12 at 11.04.19 AM.png     JPEG File Step 1 - Order 10000 has 3 order lines -1.jpg     JPEG File Step 1 - Order 10000 has 3 order lines via postman .jpg     JPEG File Step 2 - Time 1 order line linked to invoice .jpg     JPEG File Step 3 - Try to delete not linked poLine Time 2 .jpg     JPEG File Step 3 - Try to delete not linked poLine to Time 3-1.jpg     JPEG File Step 4 - Succesfully deleted Time 2 .jpg     JPEG File Step 5 - Try to delete linked poLine to invoice .jpg     PNG File When delete linked and not linked poLine to invoice.png     File cannot-delete-pol-if-other-pol-has-invoice_folio-snapshot.dev.folio.org.har     PNG File image-2021-08-12-17-52-24-070.png    
Issue links:
Defines
defines UXPROD-3061 Thunderjet - R3 Enhancements/Bugfixes Closed
Relates
relates to MODORDERS-609 Deleting an order line fails without ... Closed
Sprint: ACQ Sprint 123, ACQ Sprint 122
Story Points: 2
Development Team: Thunderjet
Release: R3 2021
Affected Institution:
MI State University/Library of Michigan, Trinity College
Tester Assignee: Dennis Bridges
Epic Link: Create, close, cancel, Purchase Orders

 Description   

Overview: Originally reported in Iris, reproduced in Iris Bugfest and in Snapshot on 2021-08-12.

Steps to Reproduce:

  1. Log in to https://folio-snapshot.dev.folio.org/
  2. Go to Settings/Orders/Purchase order lines limit
  3. Change the limit from 1 to 2 or more, and Save
  4. Go to the Orders app
  5. Create a new order
  6. Create PO Line 1
  7. Create PO Line 2
  8. Open the PO
  9. In Invoices, create an Invoice and link it to PO Line A
  10. In Orders, try to delete PO Line B

Expected Results:
PO Line B is successfully deleted.

Actual Results:
PO Line B fails to delete, with the following errors:
"Error while deleting PO Line"
"This order or order line is linked to Invoice number(s) and can not be deleted"

{
  "errors" : [ {
    "message" : "This order or order line is linked to Invoice number(s) and can not be deleted",
    "code" : "orderRelatesToInvoice",
    "parameters" : [ ]
  } ],
  "total_records" : 1
}

Additional Information:
I get the same error when trying to delete either PO Line, even though, as far as I can tell, only one of them is actually linked to the Invoice line.

URL: https://folio-snapshot.dev.folio.org/

Interested parties: Ben Taylor



 Comments   
Comment by Lisa Sjögren [ 12/Aug/21 ]

ping Dennis Bridges

Comment by Dennis Bridges [ 12/Aug/21 ]

Also reproduced in bugfest-juniper

Comment by Aleksandr Oleinik [ 13/Sep/21 ]

Verified on  testing .  Screenshots attached with Steps in atachments

Comment by Ann-Marie Breaux (Inactive) [ 14/Sep/21 ]

Tested on folio-snapshot, and all looks fine. Thanks for fixing it, Aleksandr Oleinik!

Generated at Thu Feb 08 22:21:55 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.