From 6cdf91d333da67f1ad46b101eecf6ab953cecf73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 10 Jun 2013 14:48:11 +0200 Subject: [PATCH] =?utf8?q?flatten=5Fto=5Fform:=20auch=20c=5Fvendor=5Fid=20?= =?utf8?q?bzw.=20v=5Fcustomer=5Fid=20ber=C3=BCcksichtigen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Helper/FlattenToForm.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.20.1