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:
42ea98b
)
Nur Verkaufsbelege in Rechnungen umwandeln
author
Moritz Bunkus
<moritz@bunkus.org>
Thu, 11 Nov 2010 16:29:46 +0000
(17:29 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 12 Jan 2011 15:24:16 +0000
(16:24 +0100)
SL/DB/Order.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Order.pm
b/SL/DB/Order.pm
index
ebf0994
..
573e4f5
100644
(file)
--- a/
SL/DB/Order.pm
+++ b/
SL/DB/Order.pm
@@
-101,6
+101,8
@@
sub convert_to {
sub convert_to_invoice {
my ($self, %params) = @_;
+ croak("Conversion to invoices is only supported for sales records") unless $self->customer_id;
+
if (!$params{ar_id}) {
my $chart = SL::DB::Manager::Chart->get_all(query => [ SL::DB::Manager::Chart->link_filter('AR') ],
sort_by => 'id ASC',