How do I change InvoiceLineItem from InvoiceLineItemRefFullName1 to InvoiceLineItemRefFullName2
Problem:
How do I go about replacing all Invoices that contain the InvoiceLineItemRefFullName "Framing" with the InvoiceLineItemRefFullName "Installation"
First we will fetch data from InvoiceLine table whose InvoiceLineItemRefFullName is "Framing":
By Quering:
Select TxnID,TxnDate,RefNumber,InvoiceLineItemRefListID,InvoiceLineItemRefFullName from invoiceline where InvoiceLineItemRefFullName='Framing'
Note: Invoice have different TxnID,TxnDate & RefNumber.
Solution:
By executing below update statement in VB Demo, We are able to change InvoiceLineItemRefFullName "Framing" with the InvoiceLineItemRefFullName "Installation"
Update invoiceline set InvoiceLineItemRefFullName='Installation' where InvoiceLineItemRefFullName='Framing'
We changed InvoiceLineItem from "Framing" to "Installation".