1. Knowledge Base
  2. Content Templates (Document Changes)

How to remove/hide $0 charge line items from the Customer Invoice

In this article, you will find the code that will allow you to hide the Charge Line items not charged to the customer.

<!-- [EACH]([INVOICE_DETAIL])--> <!-- [IF]([INVOICE_DETAIL.AMOUNT])--> <tr> <th><strong>[INVOICE_DETAIL.DESCRIPTION]</strong></th> <td style="text-align: right;">[INVOICE_DETAIL.QUANTITY]</td> <td style="text-align: right;">$[INVOICE_DETAIL.RATE]</td> <td style="text-align: right;">$[INVOICE_DETAIL.AMOUNT]</td> </tr> <!--[ENDIF]--> <!--[ENDEACH]-->

To add this code remember you can do it by going into LSP > Content Templates > Email Invoice HTML