https://issues.folio.org/browse/UINV-193 - Be able to link an invoice line to a PO line after the invoice line has been created]
- Add link between invoice line and order line after the invoice line has been created.
- Update link between invoice line and order line.
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
- Logic updated
- Unit tests created
- API tests created