projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
870484f
)
is_sales methode für Order
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 13 Mar 2012 18:57:23 +0000
(19:57 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 13 Mar 2012 19:01:45 +0000
(20:01 +0100)
SL/DB/Order.pm
patch
|
blob
|
history
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 = @_;