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:
ea50762
)
post in SL::DB::Invoice funktioniert nur für Verkaufsrechnungen
author
G. Richardson
<information@kivitendo-premium.de>
Mon, 29 Feb 2016 10:56:17 +0000
(11:56 +0100)
committer
G. Richardson
<information@kivitendo-premium.de>
Mon, 29 Feb 2016 15:18:46 +0000
(16:18 +0100)
Abbruch, wenn post bei einer Debitorenbuchung aufgerufen wird.
SL/DB/Invoice.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Invoice.pm
b/SL/DB/Invoice.pm
index
54da8fa
..
7efe38e
100644
(file)
--- a/
SL/DB/Invoice.pm
+++ b/
SL/DB/Invoice.pm
@@
-222,6
+222,8
@@
sub new_from {
sub post {
my ($self, %params) = @_;
+ die "not an invoice" unless $self->invoice;
+
require SL::DB::Chart;
if (!$params{ar_id}) {
my $chart = SL::DB::Manager::Chart->get_all(query => [ SL::DB::Manager::Chart->link_filter('AR') ],