Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d63219af

Von Thomas Heck vor mehr als 11 Jahren hinzugefügt

  • ID d63219afc3d4864857c80cd06e3cb5ed3a5ba8bd
  • Vorgänger 689b97d0
  • Nachfolger 4b6c74e5

Auf CustomerVendor auf currency_id umgestellt

Unterschiede anzeigen:

SL/Controller/CustomerVendor.pm
19 19
use SL::DB::Contact;
20 20
use SL::DB::FollowUp;
21 21
use SL::DB::History;
22
use SL::DB::Currency;
22 23

  
23 24
# safety
24 25
__PACKAGE__->run_before(
......
727 728
    )
728 729
  ];
729 730

  
730
  $query =
731
    'SELECT curr
732
     FROM defaults';
733
  my $curr = selectall_hashref_query($::form, $dbh, $query)->[0]->{curr};
734
  my @currencies = grep(
735
    { $_; }
736
    map(
737
      { s/\s//g; $_; }
738
      split(m/:/, $curr)
739
    )
740
  );
741
  $self->{all_currencies} = \@currencies;
731
  $self->{all_currencies} = SL::DB::Manager::Currency->get_all();
742 732

  
743 733
  $self->{all_languages} = SL::DB::Manager::Language->get_all();
744 734

  
templates/webpages/customer_vendor/form.html
293 293
            <th align="right">[% 'Currency' | $T8 %]</th>
294 294

  
295 295
            <td>
296
              [% L.select_tag('cv.curr', SELF.all_currencies, default = SELF.cv.curr, with_empty = 1) %]
296
              [% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id, with_empty = 1) %]
297 297
            </td>
298 298
          [% END %]
299 299
        </tr>

Auch abrufbar als: Unified diff