Customer:OnPac

From Freeside
Revision as of 08:50, 2 November 2006 by Ivan (talk | contribs) (Schema changes)

Jump to: navigation, search

Schema changes

  • Add elec_usage table (see Schema Changes)
    • id serial primary_key
    • _date @date_type
    • kwatts int
    • TDSP @money_type

Usage import

  1. Import usage charges into elec_usage table (Usage charges)
  2. Associate usage charges with specific customer/package (Static mapping)
  3. Trigger billing for that customer package (Billing)

Usage charges

  • KW -> kwatts
  • Invoice date -> _date

Static mapping

  • Customer Name -> informational only, or sanity check w/ Freeside data
  • Customer Number -> cust_main.custnum
  • Meter Number -> cust_pkg.pkgnum?

Unknown

Still have to determine how to handle these fields in import:

  • Invoice number -> need to store/use somehow instead of autogenerated invoice number?
  • Cross reference -> what is this for?
  • ESSID -> what is this for?

Billing

  • Add a rate plan to bill on demand
  • Calculate Kw difference & multiply by a rate (rate stored in part_pkg_option)
  • Pass through the desired details as cust_bill_pkg_detail

Add'l work

  • Handle Due Date
    • Add new cust_bill column to store per-invoice due dates
    • Have import associate this with the bills it triggers