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

NAME

Business::ISP::Conversion - ISP specific conversion module.

VERSION

SYNOPSIS

    use Business::ISP::Vars;
    my $vardb = Business::ISP::Vars->new();

    # Retrieve the different payment methods avaiable
    my %payment_options = $vardb->payment_methods();

DESCRIPTION

NOTE: You don't need this module, it was specific to my particular environment. It will be removed.

This module provides the resources to migrate information from the old .inf style information base to a MySQL database system.

METHODS

client_inf_to_db

Converts .inf style information base records into MySQL style, and 'INSERT's them.

This ONLY applies to the info section of the user's .inf db.

Takes no parameters, there is no return.

plans_inf_to_db

Converts .inf style information base records into MySQL style, and 'INSERT's them.

This ONLY applies to the plans section of the user's .inf db.

Takes no parameters, there is no return.

gledger_inf_to_db(YEAR)

Converts .inf-style General Ledger into MySQL style, and 'INSERT's them.

This ONLY applies to the General Ledger, and not the User Ledger.

YEAR is a mandatory parameter. It is the year you want to begin the translation process. It must be specified in YYYY integer format. There is no return.

uledger_inf_to_db(YEAR)

Converts .inf-style User Ledger into MySQL style, and 'INSERT's them.

This ONLY applies to the User Ledger, and not the General Ledger.

YEAR is a mandatory parameter. It is the year you want to begin the translation process. It must be specified in YYYY integer format. There is no return.

convert_account_balance

Aggregates the total payments and amounts in each user's User Ledger, and compiles an account balance for each one.

The aggregate account balance is INSERTed into the MySQL database, into a 'balance' table.

Takes no parameters, there is no return.

AUTHOR

Steve Bertrand, <steveb at cpan.org>

BUGS

Report bugs to <steve at ibctech.ca>. I will be notified, and will report back to you with any updates.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Business::ISP::Conversion

COPYRIGHT & LICENSE

Copyright 2012 Steve Bertrand, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.