Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2e26ccd5

Von Bernd Blessmann vor mehr als 12 Jahren hinzugefügt

  • ID 2e26ccd536925a2f4d7a4e3975a778d9e452f30a
  • Vorgänger 3ed938a7
  • Nachfolger 7c7d58eb

Fix zu Bug 1775: Wechselkurs in Einkaufrechnung kann nicht eingegeben werden

Auch Zahlenformatierung repariert, wenn man das Datum von einem mit vorhandenem
Wechselkurs in eines ohne wechselt (Ver- und Einkauf).

Unterschiede anzeigen:

bin/mozilla/ir.pl
463 463

  
464 464
  $main::auth->assert('vendor_invoice_edit');
465 465

  
466
#  map { $form->{$_} = $form->parse_amount(\%myconfig, $form->{$_}) } qw(exchangerate creditlimit creditremaining);
467

  
468 466
  &check_name('vendor');
469 467

  
468
  if (!$form->{forex}) {        # read exchangerate from input field (not hidden)
469
    $form->{exchangerate} = $form->parse_amount(\%myconfig, $form->{exchangerate});
470
  }
470 471
  $form->{forex}        = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{invdate}, 'sell');
471 472
  $form->{exchangerate} = $form->{forex} if $form->{forex};
472 473

  
bin/mozilla/is.pl
485 485

  
486 486
  my ($recursive_call) = @_;
487 487

  
488
  $form->{exchangerate} = $form->parse_amount(\%myconfig, $form->{exchangerate}) unless $recursive_call;
489

  
490 488
  $form->{print_and_post} = 0         if $form->{second_run};
491 489
  my $taxincluded         = $form->{taxincluded} ? "checked" : '';
492 490
  $form->{update} = 1;
......
495 493

  
496 494
  $form->{taxincluded} ||= $taxincluded;
497 495

  
496
  if (!$form->{forex}) {        # read exchangerate from input field (not hidden)
497
    $form->{exchangerate} = $form->parse_amount(\%myconfig, $form->{exchangerate}) unless $recursive_call;
498
  }
498 499
  $form->{forex}        = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{invdate}, 'buy');
499 500
  $form->{exchangerate} = $form->{forex} if $form->{forex};
500 501

  
bin/mozilla/oe.pl
536 536

  
537 537
  set_headings($form->{"id"} ? "edit" : "add");
538 538

  
539
  map { $form->{$_} = $form->parse_amount(\%myconfig, $form->{$_}) } qw(exchangerate) unless $recursive_call;
540 539
  $form->{update} = 1;
541 540

  
542 541
  &check_name($form->{vc});
543 542

  
543
  if (!$form->{forex}) {        # read exchangerate from input field (not hidden)
544
    map { $form->{$_} = $form->parse_amount(\%myconfig, $form->{$_}) } qw(exchangerate) unless $recursive_call;
545
  }
544 546
  my $buysell           = 'buy';
545 547
  $buysell              = 'sell' if ($form->{vc} eq 'vendor');
546 548
  $form->{forex}        = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{transdate}, $buysell);
doc/changelog
87 87
  - Bugfix 1752: Rechnung -> Druckvorschau ignoriert Änderung des Steuersatz beim Beleg
88 88
  - Bugfix 1708: Fehlender Übertrag der Lieferadresse von Angebot -> Auftragsbestätigung
89 89
  - Bugfix 1648: bebuchte Konten sollten nicht in Überschriften umgewandelt werden können
90
  - Bugfix 1775: Wechselkurs in Einkaufrechnung kann nicht eingegeben werden
90 91

  
91 92

  
92 93
2011-06-15 - Release 2.6.3

Auch abrufbar als: Unified diff