projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Request handling: bei zu hohem Speicherverbrauch erst flushen, dann beenden
[kivitendo-erp.git]
/
SL
/
AccTransCorrections.pm
diff --git
a/SL/AccTransCorrections.pm
b/SL/AccTransCorrections.pm
index
702cf29
..
e2fdb27
100644
(file)
--- a/
SL/AccTransCorrections.pm
+++ b/
SL/AccTransCorrections.pm
@@
-262,6
+262,10
@@
sub _check_trans_invoices_inventory_with_taxkeys {
my $self = shift;
my %params = @_;
my $self = shift;
my %params = @_;
+ # ist nur für bestandsmethode notwendig. bei der Aufwandsmethode
+ # können Warenkonten mit Steuerschlüssel sein (5400 in SKR04)
+ return 0 if $::instance_conf->get_inventory_system eq 'periodic';
+
if (!$params{transaction}->[0]->{invoice}) {
$main::lxdebug->leave_sub();
return 0;
if (!$params{transaction}->[0]->{invoice}) {
$main::lxdebug->leave_sub();
return 0;
@@
-649,6
+653,8
@@
sub analyze {
my @problems = @{ $self->{problems} };
my @problems = @{ $self->{problems} };
+ map { $self->{$_} ||= [] } qw(ap_ar_taxkey_problems invoice_inventory_taxkey_problems missing_taxkeys_in_invoices);
+
if (0 != scalar @{ $self->{ap_ar_taxkey_problems} }) {
my $problem = {
'type' => 'ap_ar_wrong_taxkeys',
if (0 != scalar @{ $self->{ap_ar_taxkey_problems} }) {
my $problem = {
'type' => 'ap_ar_wrong_taxkeys',
@@
-801,6
+807,10
@@
sub fix_invoice_inventory_with_taxkeys {
my $self = shift;
my %params = @_;
my $self = shift;
my %params = @_;
+ # ist nur für bestandsmethode notwendig. bei der Aufwandsmethode
+ # können Warenkonten mit Steuerschlüssel sein (5400 in SKR04)
+ return 0 if $::instance_conf->get_inventory_system eq 'periodic';
+
my $myconfig = \%main::myconfig;
my $form = $main::form;
my $myconfig = \%main::myconfig;
my $form = $main::form;