2c24b137b04357a931a653f8b26db4fcb687bf92
[freeside.git] / FS / FS / ConfDefaults.pm
1 package FS::ConfDefaults;
2
3 =head1 NAME
4
5 FS::ConfDefaults - Freeside configuration default and available values
6
7 =head1 SYNOPSIS
8
9   use FS::ConfDefaults;
10
11   @avail_cust_fields = FS::ConfDefaults->cust_fields_avail();
12
13 =head1 DESCRIPTION
14
15 Just a small class to keep config default and available values
16
17 =head1 METHODS
18
19 =over 4
20
21 =item cust_fields_avail
22
23 Returns a list, suitable for assigning to a hash, of available values and
24 labels for customer fields values.
25
26 =cut
27
28 # XXX should use msgcat for "Day phone" and "Night phone", but how?
29 sub cust_fields_avail { (
30
31   'Cust. Status | Customer' =>
32     'Status | Last, First or Company (Last, First)',
33   'Cust# | Cust. Status | Customer' =>
34     'custnum | Status | Last, First or Company (Last, First)',
35
36   'Agent | Agent Cust# or Cust# | Cust. Status | Customer' =>
37     'Agent | Agent Cust# | Status | Last, First or Company (Last, First)',
38
39   'Customer | Day phone | Night phone | Mobile phone | Fax number' =>
40     'Customer | (all phones)',
41   'Cust# | Customer | Day phone | Night phone | Mobile phone | Fax number' =>
42     'custnum | Customer | (all phones)',
43
44   'Cust. Status | Name | Company' =>
45     'Status | Last, First | Company',
46   'Cust# | Cust. Status | Name | Company' =>
47     'custnum | Status | Last, First | Company',
48
49   'Cust. Status | Customer' =>
50     'Status | Last, First or Company (Last, First)',
51   'Cust# | Cust. Status | Customer' =>
52     'custnum | Status | Last, First or Company (Last, First)',
53
54   'Cust. Status | Name | Company' =>
55     'Status | Last, First | Company',
56   'Cust# | Cust. Status | Name | Company' =>
57     'custnum | Status | Last, First | Company',
58
59   'Cust# | Cust. Status | Name | Company | Address 1 | Address 2 | City | State | Zip | Country | Day phone | Night phone | Mobile phone | Fax number | Invoicing email(s)' =>
60     'custnum | Status | Last, First | Company | (address) | (all phones) | Invoicing email(s)',
61
62   'Cust# | Cust. Status | Name | Company | Address 1 | Address 2 | City | State | Zip | Country | Day phone | Night phone | Mobile phone | Fax number | Invoicing email(s) | Current Balance' =>
63     'custnum | Status | Last, First | Company | (address) | (all phones) | Invoicing email(s) | Current Balance',
64
65   'Cust# | Cust. Status | Name | Company | (bill) Address 1 | (bill) Address 2 | (bill) City | (bill) State | (bill) Zip | (bill) Country | Day phone | Night phone | Mobile phone | Fax number | (service) Address 1 | (service) Address 2 | (service) City | (service) State | (service) Zip | (service) Country | Invoicing email(s)' =>
66     'custnum | Status | Last, First | Company | (address) | (all phones) | (service address) | Invoicing email(s)',
67
68   'Cust# | Cust. Status | Name | Company | (bill) Address 1 | (bill) Address 2 | (bill) City | (bill) State | (bill) Zip | (bill) Country | Day phone | Night phone | Mobile phone | Fax number | (service) Address 1 | (service) Address 2 | (service) City | (service) State | (service) Zip | (service) Country | Invoicing email(s) | Current Balance' =>
69     'custnum | Status | Last, First | Company | (address) | (all phones) | (service address) | Invoicing email(s) | Current Balance',
70
71   'Cust# | Agent Cust# | Cust. Status | Name | Company | (bill) Address 1 | (bill) Address 2 | (bill) City | (bill) State | (bill) Zip | (bill) Country | Day phone | Night phone | Mobile phone | Fax number | (service) Address 1 | (service) Address 2 | (service) City | (service) State | (service) Zip | (service) Country | Invoicing email(s) | Current Balance' =>
72     'custnum | Agent Cust# | Status | Last, First | Company | (address) | (all phones) | (service address) | Invoicing email(s) | Current Balance',
73
74   'Cust# | Cust. Status | Name | Company | (bill) Address 1 | (bill) Address 2 | (bill) City | (bill) State | (bill) Zip | (bill) Country | (bill) Latitude | (bill) Longitude | Day phone | Night phone | Mobile phone | Fax number | (service) Address 1 | (service) Address 2 | (service) City | (service) State | (service) Zip | (service) Country | (service) Latitude | (service) Longitude | Invoicing email(s) | Current Balance' =>
75     'custnum | Status | Last, First | Company | (address+coord) | (all phones) | (service address+coord) | Invoicing email(s) | Current Balance',
76
77   'Cust# | Cust. Status | Name | Company | (bill) Address 1 | (bill) Address 2 | (bill) City | (bill) State | (bill) Zip | (bill) Country | (bill) Latitude | (bill) Longitude | Day phone | Night phone | Mobile phone | Fax number | (service) Address 1 | (service) Address 2 | (service) City | (service) State | (service) Zip | (service) Country | (service) Latitude | (service) Longitude | Invoicing email(s) | Current Balance | Advertising Source' =>
78     'custnum | Status | Last, First | Company | (address+coord) | (all phones) | (service address+coord) | Invoicing email(s) | Current Balance | Advertising Source',
79
80   'Invoicing email(s)' => 'Invoicing email(s)',
81   'Cust# | Invoicing email(s)' => 'custnum | Invoicing email(s)',
82
83 ); }
84
85 =back
86
87 =head1 BUGS
88
89 Not yet.
90
91 =head1 SEE ALSO
92
93 L<FS::Conf>
94
95 =cut
96
97 1;