projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Spool-Dateien: Handling vom wiederholten Spoolen desselben Beleges gefixt
[kivitendo-erp.git]
/
SL
/
AP.pm
diff --git
a/SL/AP.pm
b/SL/AP.pm
index
eda1e71
..
95bde38
100644
(file)
--- a/
SL/AP.pm
+++ b/
SL/AP.pm
@@
-38,7
+38,7
@@
use SL::DATEV qw(:CONSTANTS);
use SL::DBUtils;
use SL::IO;
use SL::MoreCommon;
use SL::DBUtils;
use SL::IO;
use SL::MoreCommon;
-
+use SL::DB::Default;
use Data::Dumper;
use strict;
use Data::Dumper;
use strict;
@@
-251,7
+251,7
@@
sub post_transaction {
# add paid transactions
for my $i (1 .. $form->{paidaccounts}) {
# add paid transactions
for my $i (1 .. $form->{paidaccounts}) {
- if ($form->{"acc_trans_id_$i"} && $payments_only && (
$::lx_office_conf{features}->{payments_changeable}
== 0)) {
+ if ($form->{"acc_trans_id_$i"} && $payments_only && (
SL::DB::Default->get->payments_changeable
== 0)) {
next;
}
next;
}
@@
-355,7
+355,7
@@
sub post_transaction {
IO->set_datepaid(table => 'ap', id => $form->{id}, dbh => $dbh);
# safety check datev export
IO->set_datepaid(table => 'ap', id => $form->{id}, dbh => $dbh);
# safety check datev export
- if ($::
lx_office_conf{datev_check}{check_on_ap_transaction}
) {
+ if ($::
instance_conf->get_datev_check_on_ap_transaction
) {
my $transdate = $::form->{transdate} ? DateTime->from_lxoffice($::form->{transdate}) : undef;
$transdate ||= DateTime->today;
my $transdate = $::form->{transdate} ? DateTime->from_lxoffice($::form->{transdate}) : undef;
$transdate ||= DateTime->today;
@@
-593,7
+593,7
@@
sub post_payment {
$old_form = save_form();
# Delete all entries in acc_trans from prior payments.
$old_form = save_form();
# Delete all entries in acc_trans from prior payments.
- if (
$::lx_office_conf{features}->{payments_changeable}
!= 0) {
+ if (
SL::DB::Default->get->payments_changeable
!= 0) {
$self->_delete_payments($form, $dbh);
}
$self->_delete_payments($form, $dbh);
}