You are here

[CH09] Style 9: Quantity column, logo, 2 colors

 

Download app: ch.banana.ch.invoice.ch09.js

Development: invoice

 

Quantity column, logo, 2 colors, Red Inpayment slip (IS)

Invoice for Switzerland with quantity and unit price columns and red inpayment slip (IS).

Attributes

Header

  • The header contains a logo. To add a logo:
    • menu Tools -> Add new functionalities... -> Add Documents table
    • In the Id column, write 'logo'
    • In the Attachment column, double-click on the cell, or select the Edit symbol, select the type of Image document and select the picture you want to insert in the printout.
  • The header also contains information specified in the File and accounting properties (menu File -> File and accounting properties -> Address).
  • It is displayed on the top of the page: the logo on the left and the data on the right

Invoice and customer information

  • Invoice number, invoice date, customer number, expiration date of the invoice and page number are displayed here.
  • The expiration date of the invoice is automatically calculated, but it is possible to overwrite that information using the DocType column options.
  • All the data are displayed on the left of the page.

Customer address

  • The customer addres is taken from the Accounts table (address view).
  • It is possible to manually define an address on the transactions table using the DocType column options.
  • The address is displayed on the right of the page.

Items table

  • A table where are listed all the items of the invoice.
  • It is composed of four columns: description, quantity, unit price and total.
  • At the end of the items table are displayed Total net, VAT amount and final Total of the invoice.

More information

At the bottom of the invoice, after the items table, with the DocType column options it is possible to add more information like personal notes and greetings.

Invoice settings

User can change some settings of the invoice.
From the "Print invoices" dialog window, click the Settings button under the layout section.

  • enable/disable the header
    • Set 1 to include the header on the top of the page (default value)
    • Set 0 to not include it.
  • enable/disable the IS
    • Set 1 to include the Swiss IS payment slip
    • Set 0 to not include it.
  • Payment for, 1st line
    • First line address
  • Payment for, 2nd line
    • Second line address
  • Bank IBAN (optional)
    • The IBAN of the bank
  • Postal account
    • The account number of the ISR payment slip
  • ISR subscriber number, 37 digits bottom right (optional)
    • The subscriber number of the ISR payment slip.
  • Payment reason
    • A text to indicate the reason of the payment
  • Character horizontal scaling
    • Default value is 1.0
  • Character vertical scaling
    • Default value is 1.0
  • ISR X-position
    • Default value is 0
  • ISR Y-position
    • Default value is 0
  • ISR print
    • Set 1 to print the ISR payment slip on a new page.
    • Set 0 to print the ISR payment slip on the same page of the invoice (if possible).
  • Image height (only if the logo is taken from the table Documents)
    • Set the height of the image (logo).
    • Default value is 20 (mm).
  • Background color
    • Defines the main color of the invoice. It is the background color of the items table.
    • Default value is #337ab7.
  • Text color
    • Defines the color of the text used for the header/total of the items table.
    • Default value is #ffffff.

Colors can be standard colors (for example: “red”, "yellow", “blue”, “green”, “black”, "grey", etc) or in the Hexadecimal format (for example: #ff0000 ).

Share this article: Twitter | Facebook | Email