Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

We have introduced the new ADvendio Invoice item-related list on the Invoice object. It is a Lightning web component.

Users should be able to set Table fields using the feature settings, like in the Campaign item-related list

...

The checkboxes has been disabled for canceled and cancellation items, so users can't select them in the list

Info
  • canceled: InvoiceItem__c.Invoice__r.Status__c == 'Canceled' || InvoiceItem__c.Status__c == 'Canceled'

  • cancelation: InvoiceItem__c.ConnectedItem__c != null

After the billing run record has been created and invoice records are generated

...

Open an Invoice record, click on Cancel button:

...

When the pop up displays, click on Select Invoice Items button:

image-20240702-103049.pngImage Removed

  1. Observe that the new Full Invoice Item Related List was displayed:

image-20240702-103128.pngImage Removed

  1. Click on the name of the Invoice record:

image-20240702-103220.pngImage Removed

  1. Observe that the detail page of that invoice record was displayed:

image-20240702-103306.pngImage Removed

  1. Open Related tab, observe that the Select Invoice Items related list was displayed with maximum 6 records in the table:

image-20240702-103814.pngImage Removed

  1. Select some records in the table, then click on View All button:

image-20240702-103840.pngImage Removed

  1. Observe that the Full page Related list was displayed with the selected item in the table:

image-20240702-103925.pngImage Removed

  1. Hover the mouse over the table header, observe that the sort icon would be displayed:

image-20240702-104001.pngImage Removed

  1. Click on the table header, for example, Name header, observe that the records were sorted by the name, and the sort icon was changed related to the sorting:

image-20240702-104019.pngImage Removed

  1. After selected some items, click on Cancel Invoice Items button:

image-20240702-104048.pngImage Removed

  1. Click on Cancel Invoice Items button in the modal, observe that after the process was completed, a Success pop up displayed and the page was routed to the related PreInvoice record:

image-20240702-104110.pngImage Removed

  1. Open above Invoice record again, observe that the invoice items that were canceled have “Canceled” status and the checkbox of those items were disabled:

image-20240702-104145.pngImage Removed

  1. Click on Don’t Show Canceled Items button, observe that the button color was changed and the data table only displays the active invoice items:

image-20240702-104212.pngImage Removed

  1. Click on the Don’t Show Canceled Items button again, observe that the color of the button was changed, and the canceled items were displayed again:

image-20240702-104337.pngImage Removed

  1. Open the Invoice Item related list in the Invoice record, observe that there are some dummy character in the filter button (I added them for this scenario):

image-20240702-104404.pngImage Removed

  1. Go to Feature Settings tab, open All view:

image-20240702-104433.pngImage Removed

  1. Search for “InvoiceItemRelatedList”, observe that there are 3 feature setting records for Invoice Item Related List:

image-20240702-104448.pngImage Removed

  1. Open FilterButtons record:

image-20240702-104525.pngImage Removed

  1. change the label of the filter:

image-20240702-104543.pngImage Removed

  1. Open the Invoice Item related list in the Invoice record, refresh the page several times (because LWC keeps the caching memory, so that in some cases, we need to do the refreshing several time to clear the caching memory, or we can use Clear Caching Memory feature of the browser directly), observe that the new label was displayed:

image-20240702-104555.pngImage Removed

  1. In the feature settings, open TableFields record of InvoiceItemRelatedList, change the list of field in that record, then open the Invoice Item Related List In the Invoice Record, refresh the page several time to get the latest information from feature setting, observe that the updated field list was displayed in the table.

image-20240702-104608.pngImage Removed

image-20240702-104626.pngImage Removed

after updated:

image-20240702-104644.pngImage Removedimage-20240702-104703.pngImage RemovedThis view can be a very useful tool for the end user to see invoice items that are not technical reversals as well as use it for invoice or invoice item cancelation.

As your admin to add a new InvoiceItemRelatedList component to the Invoice object and set up the filters, buttons, and columns.

...

You can copy the following feature setting setup and use this new component. Please note that as of version 2.172.3, this feature setting will be created automatically.

Feature Setting Name

Feature Name

What it does

Value

FilterButtons

InvoiceItemRelatedList

Create buttons for filtering out some invoice items, e.g Technical reversal

{
"Buttons":[
{
"title":"Hide Cancelled Item",
"label":"Hide Cancelled Item",
"filter":"ADvendio__Invoice__r.ADvendio__Status__c != 'Canceled' AND ADvendio__Status__c != 'Canceled'",
"isActive":false
},
{
"title":"Hide Technical Reversal",
"label":"Hide Technical Reversal",
"filter":"ADvendio__CreationType__c != Technical Reversal",
"isActive":true
}]
}

TableFields

InvoiceItemRelatedList

Create a set of fields to be displayed in the table's column field.

{"TableFields" : ["Name","ADvendio__Invoice__c","ADvendio__Status__c","ADvendio__InvoicedAmountNet3__c","ADvendio__InvoicedAmountNet3Delta__c","ADvendio__InvoiceItemStartDate__c","ADvendio__InvoiceItemEndDate__c","ADvendio__InvoicedQuantity__c","ADvendio__ConnectedItem__c"]}

SortByField

InvoiceItemRelatedList

Sorts the values in the table

{"Order":"asc","Field":["ADvendio__SortOrder__c"]}