projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DeliveryOrder um convert_invoice erweitert
[kivitendo-erp.git]
/
SL
/
DB
/
Order.pm
diff --git
a/SL/DB/Order.pm
b/SL/DB/Order.pm
index
f73e32c
..
d61ec31
100644
(file)
--- a/
SL/DB/Order.pm
+++ b/
SL/DB/Order.pm
@@
-67,6
+67,7
@@
sub _before_save_set_ord_quo_number {
sub items { goto &orderitems; }
sub add_items { goto &add_orderitems; }
sub items { goto &orderitems; }
sub add_items { goto &add_orderitems; }
+sub record_number { goto &number; }
sub type {
my $self = shift;
sub type {
my $self = shift;
@@
-94,6
+95,9
@@
sub displayable_type {
die 'invalid type';
}
die 'invalid type';
}
+sub displayable_name {
+ join ' ', grep $_, map $_[0]->$_, qw(displayable_type record_number);
+};
sub is_sales {
croak 'not an accessor' if @_ > 1;
sub is_sales {
croak 'not an accessor' if @_ > 1;