From 2d8e82acef3633fc1a02bf2a78632400fc9ea862 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Tue, 14 Jun 2016 15:27:05 +0200 Subject: [PATCH] Payment Helper kann project_id als Param verarbeiten --- SL/DB/Helper/Payment.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SL/DB/Helper/Payment.pm b/SL/DB/Helper/Payment.pm index ed959718d..42bf4c263 100644 --- a/SL/DB/Helper/Payment.pm +++ b/SL/DB/Helper/Payment.pm @@ -153,6 +153,7 @@ sub pay_invoice { transdate => $transdate_obj, source => $source, memo => $memo, + project_id => $params{project_id} ? $params{project_id} : undef, taxkey => 0, tax_id => SL::DB::Manager::Tax->find_by(taxkey => 0)->id); $new_acc_trans->save; @@ -792,6 +793,7 @@ Example: memo => 'foobar', source => 'barfoo', payment_type => 'without_skonto', # default if not specified + project_id => 25, ); or with skonto: -- 2.20.1