flatten_to_form: auch c_vendor_id bzw. v_customer_id berücksichtigen.
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 10 Jun 2013 12:48:11 +0000 (14:48 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 10 Jun 2013 12:48:11 +0000 (14:48 +0200)
SL/DB/Helper/FlattenToForm.pm

index 198aae5..d593d69 100644 (file)
@@ -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));