This commit was generated by cvs2svn to compensate for changes in r12472,
[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   'Cust. Status | Name | Company' =>
37     'Status | Last, First | Company',
38   'Cust# | Cust. Status | Name | Company' =>
39     'custnum | Status | Last, First | Company',
40
41   'Cust. Status | (bill) Customer | (service) Customer' =>
42     'Status | Last, First or Company (Last, First) | (same for service contact if present)',
43   'Cust# | Cust. Status | (bill) Customer | (service) Customer' =>
44     'custnum | Status | Last, First or Company (Last, First) | (same for service contact if present)',
45
46   'Cust. Status | (bill) Name | (bill) Company | (service) Name | (service) Company' =>
47     'Status | Last, First | Company | (same for service contact if present)',
48   'Cust# | Cust. Status | (bill) Name | (bill) Company | (service) Name | (service) Company' =>
49     'custnum | Status | Last, First | Company | (same for service contact if present)',
50
51   'Cust# | Cust. Status | Name | Company | Address 1 | Address 2 | City | State | Zip | Country | Day phone | Night phone | Invoicing email(s)' => 
52     'custnum | Status | Last, First | Company | (address) | Day phone | Night phone | Invoicing email(s)',
53
54   'Cust# | Cust. Status | Name | Company | Address 1 | Address 2 | City | State | Zip | Country | Day phone | Night phone | Fax number | Invoicing email(s) | Payment Type' => 
55     'custnum | Status | Last, First | Company | (address) | (all phones) | Invoicing email(s) | Payment Type',
56
57   'Cust# | Cust. Status | Name | Company | Address 1 | Address 2 | City | State | Zip | Country | Day phone | Night phone | Fax number | Invoicing email(s) | Payment Type | Current Balance' => 
58     'custnum | Status | Last, First | Company | (address) | (all phones) | Invoicing email(s) | Payment Type | Current Balance',
59
60   'Cust# | Cust. Status | (bill) Name | (bill) Company | (bill) Address 1 | (bill) Address 2 | (bill) City | (bill) State | (bill) Zip | (bill) Country | (bill) Day phone | (bill) Night phone | (service) Name | (service) Company | (service) Address 1 | (service) Address 2 | (service) City | (service) State | (service) Zip | (service) Country | (service) Day phone | (service) Night phone | Invoicing email(s)' => 
61     'custnum | Status | Last, First | Company | (address) | Day phone | Night phone | (service address) | Invoicing email(s)',
62
63   'Cust# | Cust. Status | (bill) Name | (bill) Company | (bill) Address 1 | (bill) Address 2 | (bill) City | (bill) State | (bill) Zip | (bill) Country | (bill) Day phone | (bill) Night phone | (bill) Fax number | (service) Name | (service) Company | (service) Address 1 | (service) Address 2 | (service) City | (service) State | (service) Zip | (service) Country | (service) Day phone | (service) Night phone | (service) Fax number | Invoicing email(s) | Payment Type' => 
64     'custnum | Status | Last, First | Company | (address) | (all phones) | (service address) | Invoicing email(s) | Payment Type',
65
66   'Cust# | Cust. Status | (bill) Name | (bill) Company | (bill) Address 1 | (bill) Address 2 | (bill) City | (bill) State | (bill) Zip | (bill) Country | (bill) Day phone | (bill) Night phone | (bill) Fax number | (service) Name | (service) Company | (service) Address 1 | (service) Address 2 | (service) City | (service) State | (service) Zip | (service) Country | (service) Day phone | (service) Night phone | (service) Fax number | Invoicing email(s) | Payment Type | Current Balance' => 
67     'custnum | Status | Last, First | Company | (address) | (all phones) | (service address) | Invoicing email(s) | Payment Type | Current Balance',
68
69   'Invoicing email(s)' => 'Invoicing email(s)',
70   'Cust# | Invoicing email(s)' => 'custnum | Invoicing email(s)',
71
72 ); }
73
74 =back
75
76 =head1 BUGS
77
78 Not yet.
79
80 =head1 SEE ALSO
81
82 L<FS::Conf>
83
84 =cut
85
86 1;