Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5ba855af

Von Jan Büren vor fast 2 Jahren hinzugefügt

  • ID 5ba855afb8c0809c75b229a38d87d939e06d0fa8
  • Vorgänger 616cfe28
  • Nachfolger d96ae6f5

save_exchangerate entfernt (wurde benötigt für backorder_exchangerate)

Unterschiede anzeigen:

SL/Form.pm
1484 1484
  $main::lxdebug->leave_sub();
1485 1485
}
1486 1486

  
1487
sub save_exchangerate {
1488
  $main::lxdebug->enter_sub();
1489

  
1490
  my ($self, $myconfig, $currency, $transdate, $rate, $fld) = @_;
1491

  
1492
  SL::DB->client->with_transaction(sub {
1493
    my $dbh = SL::DB->client->dbh;
1494

  
1495
    my ($buy, $sell);
1496

  
1497
    $buy  = $rate if $fld eq 'buy';
1498
    $sell = $rate if $fld eq 'sell';
1499

  
1500

  
1501
    $self->update_exchangerate($dbh, $currency, $transdate, $buy, $sell);
1502
    1;
1503
  }) or do { die SL::DB->client->error };
1504

  
1505
  $main::lxdebug->leave_sub();
1506
}
1507

  
1508 1487
sub check_exchangerate {
1509 1488
  $main::lxdebug->enter_sub();
1510 1489

  
bin/mozilla/oe.pl
1795 1795
  $main::lxdebug->leave_sub();
1796 1796
}
1797 1797

  
1798
sub save_exchangerate {
1799
  $main::lxdebug->enter_sub();
1800

  
1801
  my $form     = $main::form;
1802
  my %myconfig = %main::myconfig;
1803
  my $locale   = $main::locale;
1804

  
1805
  $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
1806
  $form->{exchangerate} =
1807
    $form->parse_amount(\%myconfig, $form->{exchangerate});
1808
  $form->save_exchangerate(\%myconfig, $form->{currency},
1809
                           $form->{exchangeratedate},
1810
                           $form->{exchangerate}, $form->{buysell});
1811

  
1812
  &invoice;
1813

  
1814
  $main::lxdebug->leave_sub();
1815
}
1816

  
1817 1798
sub save_as_new {
1818 1799
  $main::lxdebug->enter_sub();
1819 1800

  

Auch abrufbar als: Unified diff