use strict;
-use base qw(SL::DB::Object);
+use parent qw(SL::DB::Object);
__PACKAGE__->meta->table('customer');
discount => { type => 'float', scale => 4 },
email => { type => 'text' },
fax => { type => 'text' },
+ gln => { type => 'text' },
greeting => { type => 'text' },
homepage => { type => 'text' },
hourly_rate => { type => 'numeric', precision => 8, scale => 2 },
iban => { type => 'text' },
id => { type => 'integer', not_null => 1, sequence => 'id' },
itime => { type => 'timestamp', default => 'now()' },
- klass => { type => 'integer', default => '0' },
language => { type => 'text' },
language_id => { type => 'integer' },
mandate_date_of_signature => { type => 'date' },
obsolete => { type => 'boolean', default => 'false' },
payment_id => { type => 'integer' },
phone => { type => 'text' },
+ pricegroup_id => { type => 'integer' },
salesman_id => { type => 'integer' },
street => { type => 'text' },
taxincluded => { type => 'boolean' },
taxincluded_checked => { type => 'boolean' },
taxnumber => { type => 'text' },
taxzone_id => { type => 'integer', not_null => 1 },
- terms => { type => 'integer', default => '0' },
user_password => { type => 'text' },
username => { type => 'text' },
ustid => { type => 'text' },
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' },