From 3defabe6d3011c83298d4415672ed5d32ccab95c Mon Sep 17 00:00:00 2001 From: Andreas Rudin Date: Sat, 21 Jul 2018 10:56:53 +0200 Subject: [PATCH] Added greeting to "my @vc_fields" in flatten_to_form to be able to use the greeting variable in periodic invoices_ --- SL/DB/Helper/FlattenToForm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/Helper/FlattenToForm.pm b/SL/DB/Helper/FlattenToForm.pm index ddc5f0696..920bdf2e8 100644 --- a/SL/DB/Helper/FlattenToForm.pm +++ b/SL/DB/Helper/FlattenToForm.pm @@ -36,7 +36,7 @@ sub flatten_to_form { $form->{vc} = $vc if ref($self) =~ m{^SL::DB::(?:.*Invoice|.*Order)}; my @vc_fields = (qw(account_number bank bank_code bic business city contact country creditlimit - department_1 department_2 discount email fax gln homepage iban language name + department_1 department_2 discount email fax gln greeting homepage iban language name phone street taxnumber ustid zipcode), "${vc}number", ($vc eq 'customer')? 'c_vendor_id': 'v_customer_id'); -- 2.20.1