Revision cf3a8cf7
Von Sven Schöling vor mehr als 7 Jahren hinzugefügt
SL/Dev/CustomerVendor.pm | ||
---|---|---|
2 | 2 |
|
3 | 3 |
use strict; |
4 | 4 |
use base qw(Exporter); |
5 |
our @EXPORT = qw(create_customer create_vendor); |
|
5 |
our @EXPORT_OK = qw(new_customer new_vendor); |
|
6 |
our %EXPORT_TAGS = (ALL => \@EXPORT_OK); |
|
6 | 7 |
|
7 | 8 |
use SL::DB::TaxZone; |
8 | 9 |
use SL::DB::Currency; |
9 | 10 |
use SL::DB::Customer; |
10 | 11 |
|
11 |
sub create_customer {
|
|
12 |
sub new_customer {
|
|
12 | 13 |
my (%params) = @_; |
13 | 14 |
|
14 | 15 |
my $taxzone = _check_taxzone(delete $params{taxzone_id}); |
... | ... | |
22 | 23 |
return $customer; |
23 | 24 |
} |
24 | 25 |
|
25 |
sub create_vendor {
|
|
26 |
sub new_vendor {
|
|
26 | 27 |
my (%params) = @_; |
27 | 28 |
|
28 | 29 |
my $taxzone = _check_taxzone(delete $params{taxzone_id}); |
... | ... | |
69 | 70 |
|
70 | 71 |
=head1 FUNCTIONS |
71 | 72 |
|
72 |
=head2 C<create_customer %PARAMS>
|
|
73 |
=head2 C<new_customer %PARAMS>
|
|
73 | 74 |
|
74 | 75 |
Creates a new customer. |
75 | 76 |
|
... | ... | |
87 | 88 |
If neither taxzone_id or currency_id (both are NOT NULL) are passed as params |
88 | 89 |
then default values are used. |
89 | 90 |
|
90 |
=head2 C<create_vendor %PARAMS>
|
|
91 |
=head2 C<new_vendor %PARAMS>
|
|
91 | 92 |
|
92 | 93 |
Creates a new vendor. |
93 | 94 |
|
Auch abrufbar als: Unified diff
SL::Dev: EXPORT rewrite und create/new split
- SL::Dev module exportieren nicht mehr ungefragt
- SL::Dev::ALL exportiert jetzt den übergebenen tag aus allen Modulen
- Funktionen nicht nicht speichern (Part/CustomerVendor) heißen jetzt
"new_X" anstatt "create_X"