projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
is_sales methode für Order
[kivitendo-erp.git]
/
SL
/
DB
/
Order.pm
diff --git
a/SL/DB/Order.pm
b/SL/DB/Order.pm
index
6b31cd2
..
6a03672
100644
(file)
--- a/
SL/DB/Order.pm
+++ b/
SL/DB/Order.pm
@@
-84,6
+84,11
@@
sub is_type {
return shift->type eq shift;
}
+sub is_sales {
+ croak 'not an accessor' if @_ > 1;
+ return shift->customer_id;
+}
+
sub invoices {
my $self = shift;
my %params = @_;