From: Philip Reetz
Date: Sun, 7 Jan 2007 14:38:42 +0000 (+0000)
Subject: Fehler in der Storno-Routine und beim Umwandeln einer Vorlage in einen neuen Beleg...
X-Git-Tag: release-2.4.1~1^2~83
X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9419dfc989a58881eeda136162d5b61e80dafc16;p=kivitendo-erp.git
Fehler in der Storno-Routine und beim Umwandeln einer Vorlage in einen neuen Beleg, wenn die
Vorlage schonmal storniert wurde
---
diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl
index 162afcc17..681169980 100644
--- a/bin/mozilla/ap.pl
+++ b/bin/mozilla/ap.pl
@@ -943,7 +943,7 @@ sub post_as_new {
sub use_as_template {
$lxdebug->enter_sub();
- map { delete $form->{$_} } qw(printed emailed queued invnumber invdate deliverydate id datepaid_1 source_1 memo_1 paid_1 exchangerate_1 AP_paid_1);
+ map { delete $form->{$_} } qw(printed emailed queued invnumber invdate deliverydate id datepaid_1 source_1 memo_1 paid_1 exchangerate_1 AP_paid_1 storno);
$form->{paidaccounts} = 1;
$form->{rowcount}--;
$form->{invdate} = $form->current_date(\%myconfig);
diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl
index 17f37f4cf..104228f4f 100644
--- a/bin/mozilla/ar.pl
+++ b/bin/mozilla/ar.pl
@@ -972,7 +972,7 @@ sub post_as_new {
sub use_as_template {
$lxdebug->enter_sub();
- map { delete $form->{$_} } qw(printed emailed queued invnumber invdate deliverydate id datepaid_1 source_1 memo_1 paid_1 exchangerate_1 AP_paid_1);
+ map { delete $form->{$_} } qw(printed emailed queued invnumber invdate deliverydate id datepaid_1 source_1 memo_1 paid_1 exchangerate_1 AP_paid_1 storno);
$form->{paidaccounts} = 1;
$form->{rowcount}--;
$form->{invdate} = $form->current_date(\%myconfig);
diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl
index 084c2a7db..967d532ce 100644
--- a/bin/mozilla/ir.pl
+++ b/bin/mozilla/ir.pl
@@ -918,7 +918,6 @@ sub storno {
$form->{storno} = 1;
$form->{id} = "";
$form->{invnumber} = "Storno zu " . $form->{invnumber};
- $form->{rowcount}--;
&post();
$lxdebug->leave_sub();
@@ -928,7 +927,7 @@ sub storno {
sub use_as_template {
$lxdebug->enter_sub();
- map { delete $form->{$_} } qw(printed emailed queued invnumber invdate deliverydate id datepaid_1 source_1 memo_1 paid_1 exchangerate_1 AP_paid_1);
+ map { delete $form->{$_} } qw(printed emailed queued invnumber invdate deliverydate id datepaid_1 source_1 memo_1 paid_1 exchangerate_1 AP_paid_1 storno);
$form->{paidaccounts} = 1;
$form->{rowcount}--;
$form->{invdate} = $form->current_date(\%myconfig);
diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl
index fd2423caf..981074862 100644
--- a/bin/mozilla/is.pl
+++ b/bin/mozilla/is.pl
@@ -1444,7 +1444,7 @@ sub print_and_post {
sub use_as_template {
$lxdebug->enter_sub();
- map { delete $form->{$_} } qw(printed emailed queued invnumber invdate deliverydate id datepaid_1 source_1 memo_1 paid_1 exchangerate_1 AP_paid_1);
+ map { delete $form->{$_} } qw(printed emailed queued invnumber invdate deliverydate id datepaid_1 source_1 memo_1 paid_1 exchangerate_1 AP_paid_1 storno);
$form->{paidaccounts} = 1;
$form->{rowcount}--;
$form->{invdate} = $form->current_date(\%myconfig);
@@ -1464,7 +1464,6 @@ sub storno {
$form->{storno} = 1;
$form->{id} = "";
$form->{invnumber} = "Storno zu " . $form->{invnumber};
- $form->{rowcount}--;
&post();
$lxdebug->leave_sub();