projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SimpleSystemSetting: Umstellung von »Kunden-/Lieferantentypen«
[kivitendo-erp.git]
/
SL
/
DB
/
MetaSetup
/
Customer.pm
diff --git
a/SL/DB/MetaSetup/Customer.pm
b/SL/DB/MetaSetup/Customer.pm
index
0f523a4
..
2b241ab
100644
(file)
--- a/
SL/DB/MetaSetup/Customer.pm
+++ b/
SL/DB/MetaSetup/Customer.pm
@@
-4,7
+4,7
@@
package SL::DB::Customer;
use strict;
use strict;
-use
base
qw(SL::DB::Object);
+use
parent
qw(SL::DB::Object);
__PACKAGE__->meta->table('customer');
__PACKAGE__->meta->table('customer');
@@
-13,31
+13,32
@@
__PACKAGE__->meta->columns(
bank => { type => 'text' },
bank_code => { type => 'text' },
bcc => { type => 'text' },
bank => { type => 'text' },
bank_code => { type => 'text' },
bcc => { type => 'text' },
- bic => { type => '
varchar', length => 100
},
+ bic => { type => '
text'
},
business_id => { type => 'integer' },
c_vendor_id => { type => 'text' },
cc => { type => 'text' },
business_id => { type => 'integer' },
c_vendor_id => { type => 'text' },
cc => { type => 'text' },
- city => { type => '
varchar', length => 75
},
+ city => { type => '
text'
},
contact => { type => 'text' },
contact => { type => 'text' },
- country => { type => '
varchar', length => 75
},
- creditlimit => { type => 'numeric', default => '0', precision =>
5, scale => 1
5 },
+ country => { type => '
text'
},
+ creditlimit => { type => 'numeric', default => '0', precision =>
15, scale =>
5 },
currency_id => { type => 'integer', not_null => 1 },
customernumber => { type => 'text' },
delivery_term_id => { type => 'integer' },
currency_id => { type => 'integer', not_null => 1 },
customernumber => { type => 'text' },
delivery_term_id => { type => 'integer' },
- department_1 => { type => '
varchar', length => 75
},
- department_2 => { type => '
varchar', length => 75
},
+ department_1 => { type => '
text'
},
+ department_2 => { type => '
text'
},
depositor => { type => 'text' },
direct_debit => { type => 'boolean', default => 'false' },
depositor => { type => 'text' },
direct_debit => { type => 'boolean', default => 'false' },
- discount => { type => 'float',
precision
=> 4 },
+ discount => { type => 'float',
scale
=> 4 },
email => { type => 'text' },
email => { type => 'text' },
- fax => { type => 'varchar', length => 30 },
+ fax => { type => 'text' },
+ gln => { type => 'text' },
greeting => { type => 'text' },
homepage => { type => 'text' },
greeting => { type => 'text' },
homepage => { type => 'text' },
- iban => { type => 'varchar', length => 100 },
+ hourly_rate => { type => 'numeric', precision => 8, scale => 2 },
+ iban => { type => 'text' },
id => { type => 'integer', not_null => 1, sequence => 'id' },
itime => { type => 'timestamp', default => 'now()' },
id => { type => 'integer', not_null => 1, sequence => 'id' },
itime => { type => 'timestamp', default => 'now()' },
- klass => { type => 'integer', default => '0' },
- language => { type => 'varchar', length => 5 },
+ language => { type => 'text' },
language_id => { type => 'integer' },
mandate_date_of_signature => { type => 'date' },
mandator_id => { type => 'text' },
language_id => { type => 'integer' },
mandate_date_of_signature => { type => 'date' },
mandator_id => { type => 'text' },
@@
-47,17
+48,17
@@
__PACKAGE__->meta->columns(
obsolete => { type => 'boolean', default => 'false' },
payment_id => { type => 'integer' },
phone => { type => 'text' },
obsolete => { type => 'boolean', default => 'false' },
payment_id => { type => 'integer' },
phone => { type => 'text' },
+ pricegroup_id => { type => 'integer' },
salesman_id => { type => 'integer' },
salesman_id => { type => 'integer' },
- street => { type => '
varchar', length => 75
},
+ street => { type => '
text'
},
taxincluded => { type => 'boolean' },
taxincluded_checked => { type => 'boolean' },
taxnumber => { type => 'text' },
taxincluded => { type => 'boolean' },
taxincluded_checked => { type => 'boolean' },
taxnumber => { type => 'text' },
- taxzone_id => { type => 'integer', default => '0', not_null => 1 },
- terms => { type => 'integer', default => '0' },
+ taxzone_id => { type => 'integer', not_null => 1 },
user_password => { type => 'text' },
user_password => { type => 'text' },
- username => { type => '
varchar', length => 50
},
+ username => { type => '
text'
},
ustid => { type => 'text' },
ustid => { type => 'text' },
- zipcode => { type => '
varchar', length => 10
},
+ zipcode => { type => '
text'
},
);
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
);
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
@@
-89,6
+90,16
@@
__PACKAGE__->meta->foreign_keys(
class => 'SL::DB::PaymentTerm',
key_columns => { payment_id => 'id' },
},
class => 'SL::DB::PaymentTerm',
key_columns => { payment_id => 'id' },
},
+
+ pricegroup => {
+ class => 'SL::DB::Pricegroup',
+ key_columns => { pricegroup_id => 'id' },
+ },
+
+ taxzone => {
+ class => 'SL::DB::TaxZone',
+ key_columns => { taxzone_id => 'id' },
+ },
);
1;
);
1;