Added periods_between() & taxpoint() plpgsql functions for use in
salesinvoice generation