garfield.printer.db Module

class garfield.printer.db.BasePrintAccountLog

Bases: object

@DynamicAttrs

gross_price
gross_price_per_page
net_price
net_price_per_page
tax_price
tax_price_per_page
class garfield.printer.db.CBFPrinter

Bases: object

apply(query)
description = u'Barbezahlung Druckerzeugnisse'
prio = 70
class garfield.printer.db.PrintAccount

Bases: object

@DynamicAttrs

close()
static create(sess, user_code, description, type_id, price_per_page, tax_group_id, location_id, user_id, cash_box_id, initial_value)
gross_price_per_page
net_price_per_page
tax_price_per_page
transfer_to(target_print_account, pages, comment)
static update_by_user_code(sess, user_code, counter_value)
static user_code_exists(sess, user_code)

Returns boolean.

class garfield.printer.db.PrintAccountLog

Bases: garfield.printer.db.BasePrintAccountLog

@DynamicAttrs

class garfield.printer.db.PrintAccountLogData

Bases: garfield.printer.db.BasePrintAccountLog

@DynamicAttrs

class garfield.printer.db.PrintAccountTransferLog

Bases: object

@DynamicAttrs

static create(sess, source_print_account, target_print_account, pages, comment)
class garfield.printer.db.PrintAccountType

Bases: garfield.database.TypeDescriptionMixin

@DynamicAttrs

print_account_type_description

Returns the description for the current instance of the base class.

The primary key of the object is used as the key to the descriptions dictionary _DESCRIPTIONS.

class garfield.printer.db.PrintAccountTypePrice

Bases: object

@DynamicAttrs

class garfield.printer.db.PrintUserAccountLog

Bases: object

@DynamicAttrs

garfield.printer.db.add_printer_cash_box_filters(cb_filters, **_)
garfield.printer.db.create_all_print_account_subtotals(sess, subtotal, counter_value=None)
garfield.printer.db.create_print_account_subtotal(sess, subtotal, print_account, counter_value=None)
garfield.printer.db.create_user_trans_log_printer_subtotals(sess, subtotal)
garfield.printer.db.enhance_description_for_printer(user_trans)

Returns a detailed description of the user transaction in case it concerns itsself about a printer transaction (and the details are still available.)

garfield.printer.db.load_printer_hostnames(sess, config)
garfield.printer.db.setup_printer_environment(config, garfield_sess, garfield_meta, environment_sess)
garfield.printer.db.setup_tables(sess, meta)