Report Designer - Amend your customised invoice layout to show negative item lines
Description

In Sage 50 Accounts you can enter negative item lines on your invoices. If you print or email your invoices using a customised layout from Sage 50 Accounts v22 or below, you must edit the layout slightly to display the negative items correctly. Let's take a look.

NOTE: The standard invoice layouts available with Sage 50 Accounts v23 and above automatically show the negative item lines correctly.

Cause
Resolution

Open the layout in Sage Report Designer

We recommend you take a layouts only backup before you start editing your invoice layout.

  1. On the navigation bar, click Invoices and credits, then select any invoice or credit note.
  2. Click Print, then click the layout you want to amend, then click Edit.

Amend the net column items to show negative values

  1. On the invoice layout, locate the ITEM_NUMBER header section.
  2. In the net amount column, double-click the INVOICE_ITEM.FOREIGN_NET_AMOUNT variable, click Clear, then enter the following expression:

    ((INVOICE.INVOICE_TYPE_CODE = 3) || (INVOICE.INVOICE_TYPE_CODE=4))? Unsigned (INVOICE_ITEM.FOREIGN_NET_AMOUNT) : INVOICE_ITEM.FOREIGN_NET_AMOUNT

     TIP: You can copy and paste the expressions from this article into the Expression Editor window.



  3. Click OK, then in the Properties pane click Sign, then click the arrow then click Signed.
  4. Click Formatting, click the finder button  then click the Numeric tab.
  5. On the Max. decimals list, click 2, then click OK.
  6. On the invoice layout, locate the Details section, then repeat steps 2 to 5.
  7. On the invoice layout, locate the ITEM_NUMBER footer section, then repeat steps 2 to 5.

TIP: If you can't see the INVOICE_ITEM.FOREIGN_NET_AMOUNT variable in the ITEM_NUMBER footer section, right-click the Description variable, point to Order, then click Send to Back.


Amend the VAT column items to show negative values

  1. On the invoice layout, locate the ITEM_NUMBER header section.
  2. In the VAT amount column, double-click the INVOICE_ITEM.FOREIGN_TAX_AMOUNT variable, click Clear, then enter the following expression:

    ((INVOICE.INVOICE_TYPE_CODE = 3) || (INVOICE.INVOICE_TYPE_CODE=4))? Unsigned (INVOICE_ITEM.FOREIGN_TAX_AMOUNT) : INVOICE_ITEM.FOREIGN_TAX_AMOUNT

  3. Click OK, then in the Properties pane click Sign, then click the arrow then click Signed.
  4. Click Formatting, click the finder button  then click the Numeric tab.
  5. On the Max. decimals list, click 2, then click OK.
  6. On the invoice layout, locate the Details section, then repeat steps 2 to 5.
  7. On the invoice layout, locate the ITEM_NUMBER footer section, then repeat steps 2 to 5.

TIP: If you can't see the INVOICE_ITEM.FOREIGN_TAX_AMOUNT variable in the ITEM_NUMBER footer section, right-click the Description variable, point to Order, then click Send to Back.


Amend the unit price column items to show negative values

  1. On the invoice layout, locate the ITEM_NUMBER header section.
  2. In the Unit Price column, double-click the INVOICE_ITEM.FOREIGN_UNIT_PRICE variable, click Clear, then enter the following expression:

    INVOICE_ITEM.FOREIGN_NET_AMOUNT < 0.00 ? (INVOICE_ITEM.FOREIGN_UNIT_PRICE * -1) : INVOICE_ITEM.FOREIGN_UNIT_PRICE

  3. Click OK, then in the Properties pane click Sign, then click the arrow then click Signed.
  4. Click Formatting, click the finder button  then click the Numeric tab.
  5. On the Max. decimals list, click 2, then click OK.
  6. On the invoice layout, locate the Details section, then repeat steps 2 to 5.
  7. On the invoice layout, locate the ITEM_NUMBER footer section, then repeat steps 2 to 5.

TIP: If you can't see the INVOICE_ITEM.FOREIGN_UNIT_PRICE variable in the ITEM_NUMBER footer section, right-click the Description variable, point to Order, then click Send to Back.


Save your amended layout and close Report Designer

  1. On the menu bar click File, then click Save.
  2. On the menu bar click File, then click Exit.

TIP: If you'd also like negative values to appear in red, you can do this using conditional formatting. Read more >>


[BCB:184:Emma Footer CB:ECB] [BCB:19:UK - Sales message :ECB]
Steps to duplicate
Related Solutions