FlattenToForm: auch currency (nicht nur curr) in die Form bringen.
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 29 Apr 2013 07:58:45 +0000 (09:58 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 29 Apr 2013 08:16:49 +0000 (10:16 +0200)
Betrifft #2247.

SL/DB/Helper/FlattenToForm.pm

index ff279cd..d5805b0 100644 (file)
@@ -18,6 +18,7 @@ sub flatten_to_form {
                                     employee_id salesman_id closed department_id language_id payment_id delivery_customer_id delivery_vendor_id shipto_id proforma
                                     globalproject_id delivered transaction_description container_type accepted_by_customer invoice terms storno storno_id dunning_config_id
                                     orddate quodate reqdate gldate duedate deliverydate datepaid transdate));
+  $form->{currency} = $form->{curr}; # curr is called currency in almost all forms
 
   if (_has($self, 'transdate')) {
     my $transdate_idx = ref($self) eq 'SL::DB::Order'   ? ($self->quotation ? 'quodate' : 'orddate')