Invoice entity¶
An invoice is a list of stock items that a customer should pay for.
An invoice is expressed in a currency.
An invoice is related to a project.
An invoice is related to a company.
An invoice is created from a template.
An invoice is subdivided in Master and Details.
Master¶
- Invoice date
- Invoice status
- Customer
- Delivery address
- Invoicing address
- Currency
- Project
- Total amount
Detail¶
The detail of an invoice is a list of groups containing stock items, operations, comments or sub-totals.
Each group has a label and a total amount. It can be specified as Visible or not. Its detail can also be specified as Visible or not. If a group is not visible it will never appear on printouts. If its detail is visible but not its detail, only the label and total amount will appear on printouts.
There a two kinds of groups :- groups for items, containing stock items, operations, comments
- groups for sub-totals
Groups for items¶
Items groups contain different kinds of lines- stock items
- operations
- comments
A stock item line is a relation with a stock item, a Unit, a quantity and a price. Each line has a value. In simple case, the value of the line is the price multiplied by the quantity. If then stock item has stock item’s operations, they will be reckoned in the line.
examples
As for a stock item line, an operation line has a value that can be- a fix value
- a % of a previously defined group
examples
Comments are just lines of text. They have no value.
Groups for sub-totals¶
Sub-total groups regroups previously created group for which the total will be summed.
Standard features¶
- Numbering
- to each invoice is assigned a unique number
- this number can be generated, optionnaly using the year or month in it
- the number can be used to find the invoice
- Generated from a template
- Translatable