Part of stoqlib.lib.invoice View In Hierarchy
Known subclasses: stoqlib.lib.invoice.PurchaseInvoice, stoqlib.lib.invoice.SaleInvoice
| Method | __init__ | Undocumented |
| Method | _arrange_fields | Arrange all the fields. |
| Method | _fetch_data_by_field | Undocumented |
| Method | _add_field | Undocumented |
| Method | _fetch_list_fields | Fetch the list field data and seperate/sort it by page. |
| Method | generate_pages | Formats the data from the sale according to the fields specified |
| Method | has_invoice_number | Returns if the invoice has an invoice number field or not. |
| Method | send_to_printer | Send the printer invoice to the printer |
List items are items are invoice fields which has a list type All items which has are located above a list item is a header item and all item which are located belove is a footer item.
Fetch the list field data and seperate/sort it by page. The dictionary returned is structured like this:
- key: page number
- value: field, field_type, lines for the page
- field comes from the database
- field_type is the type of the field
- lines is all the lines which should be printed on
the current page
| Returns | a dictionary | |
| Returns | pages printed (type: a list of pages ) | |