From: Bernd Bleßmann Date: Mon, 10 Jun 2013 12:48:11 +0000 (+0200) Subject: flatten_to_form: auch c_vendor_id bzw. v_customer_id berücksichtigen. X-Git-Tag: release-3.1.0beta1~344^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6cdf91d333da67f1ad46b101eecf6ab953cecf73;p=kivitendo-erp.git flatten_to_form: auch c_vendor_id bzw. v_customer_id berücksichtigen. --- diff --git a/SL/DB/Helper/FlattenToForm.pm b/SL/DB/Helper/FlattenToForm.pm index 198aae5b7..d593d6935 100644 --- a/SL/DB/Helper/FlattenToForm.pm +++ b/SL/DB/Helper/FlattenToForm.pm @@ -31,7 +31,8 @@ sub flatten_to_form { my @vc_fields = (qw(account_number bank bank_code bic business city contact country creditlimit discount email fax homepage iban language name payment_terms phone street taxnumber zipcode), - "${vc}number"); + "${vc}number", + ($vc eq 'customer')? 'c_vendor_id': 'v_customer_id'); my @vc_prefixed_fields = qw(email fax notes number phone); _copy($self, $form, '', '', 1, qw(amount netamount marge_total marge_percent container_remaining_weight container_remaining_volume paid));