From 01b298ec34411c2eb6272cad65d5065cf6e812f5 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Mon, 29 Feb 2016 11:55:27 +0100 Subject: [PATCH] Payment Helper - Methode transactions wieder entfernt MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Es gibt schon eine Relationship transactions in SL::DB::Invoice und SL::DB::PurchaseInvoice. Diese wird ansonsten überschrieben, und dann kann man auch keine AccTransaction Objekte mehr zu Rechnungsobjekten hinzufügen. --- SL/DB/Helper/Payment.pm | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/SL/DB/Helper/Payment.pm b/SL/DB/Helper/Payment.pm index ad776ca9c..c5add7bd2 100644 --- a/SL/DB/Helper/Payment.pm +++ b/SL/DB/Helper/Payment.pm @@ -4,7 +4,7 @@ use strict; use parent qw(Exporter); our @EXPORT = qw(pay_invoice); -our @EXPORT_OK = qw(skonto_date skonto_charts amount_less_skonto within_skonto_period percent_skonto reference_account reference_amount transactions open_amount open_percent remaining_skonto_days skonto_amount check_skonto_configuration valid_skonto_amount get_payment_suggestions validate_payment_type open_sepa_transfer_amount get_payment_select_options_for_bank_transaction); +our @EXPORT_OK = qw(skonto_date skonto_charts amount_less_skonto within_skonto_period percent_skonto reference_account reference_amount open_amount open_percent remaining_skonto_days skonto_amount check_skonto_configuration valid_skonto_amount get_payment_suggestions validate_payment_type open_sepa_transfer_amount get_payment_select_options_for_bank_transaction); our %EXPORT_TAGS = ( "ALL" => [@EXPORT, @EXPORT_OK], ); @@ -606,15 +606,6 @@ sub get_payment_suggestions { return 1; }; -sub transactions { - my ($self) = @_; - - return unless $self->id; - - require SL::DB::AccTransaction; - SL::DB::Manager::AccTransaction->get_all(query => [ trans_id => $self->id ]); -} - sub validate_payment_type { my $payment_type = shift; -- 2.20.1