projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Form::_dbconnect_options nach SL::DBConnect::get_options verschoben
[kivitendo-erp.git]
/
SL
/
DB
/
Order.pm
diff --git
a/SL/DB/Order.pm
b/SL/DB/Order.pm
index
0c46f56
..
63d23f7
100644
(file)
--- a/
SL/DB/Order.pm
+++ b/
SL/DB/Order.pm
@@
-27,7
+27,7
@@
__PACKAGE__->meta->add_relationship(
}
},
periodic_invoices_config => {
}
},
periodic_invoices_config => {
- type => 'one to
many
',
+ type => 'one to
one
',
class => 'SL::DB::PeriodicInvoicesConfig',
column_map => { id => 'oe_id' },
},
class => 'SL::DB::PeriodicInvoicesConfig',
column_map => { id => 'oe_id' },
},
@@
-37,8
+37,7
@@
__PACKAGE__->meta->initialize;
# methods
# methods
-sub items { goto &orderitems; }
-sub payment_terms { goto &payment; }
+sub items { goto &orderitems; }
sub type {
my $self = shift;
sub type {
my $self = shift;
@@
-69,7
+68,7
@@
sub displayable_type {
sub is_sales {
croak 'not an accessor' if @_ > 1;
sub is_sales {
croak 'not an accessor' if @_ > 1;
- return shift->customer_id;
+ return
!!
shift->customer_id;
}
sub invoices {
}
sub invoices {
@@
-133,6
+132,10
@@
sub number {
return $self->${ \ $number_method{$self->type} }(@_);
}
return $self->${ \ $number_method{$self->type} }(@_);
}
+sub date {
+ goto &transdate;
+}
+
1;
__END__
1;
__END__