The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Muster::Hook::Costings - Muster hook for costings derivation

VERSION

version 0.62

DESCRIPTION

Muster::Hook::Costings does costings derivation; that is, derives costs of things from the page meta-data plus looking up information in various databases.

This just does a bunch of specific calculations; I haven't figured out a good way of defining derivations in a config file.

METHODS

register

Initialize, and register hooks.

process

Process (scan or modify) a leaf object. This only does stuff in the scan phase. This expects the leaf meta-data to be populated.

  my $new_leaf = $self->process(%args);

calculate_overheads

Calculate overheads like listing fees and COMMISSION (which depends on the total, backwards)

_do_one_col_query

Do a SELECT query, and return the first column of results. This is a freeform query, so the caller must be careful to formulate it correctly.

my $results = $self->_do_one_col_query($dbname,$query);

_do_n_col_query

Do a SELECT query, and return all the results. This is a freeform query, so the caller must be careful to formulate it correctly.

my $results = $self->_do_n_col_query($dbname,$query);