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:
3c8cd82
)
Order->number dispacher methode, die je nach typ ordnumber oder quonumber aufruft.
author
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 18 Apr 2012 13:17:06 +0000
(15:17 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 18 Apr 2012 13:17:06 +0000
(15:17 +0200)
SL/DB/Order.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Order.pm
b/SL/DB/Order.pm
index
e28a87c
..
8212a64
100644
(file)
--- a/
SL/DB/Order.pm
+++ b/
SL/DB/Order.pm
@@
-149,6
+149,19
@@
sub convert_to_invoice {
return $invoice;
}
+sub number {
+ my $self = shift;
+
+ my %number_method = (
+ sales_order => 'ordnumber',
+ sales_quotation => 'quonumber',
+ puchase_order => 'ordnumber',
+ request_quotation => 'quonumber',
+ );
+
+ return $self->${ \ $number_method{$self->type} }(@_);
+}
+
1;
__END__