Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision eaa30664

Von Jan Büren vor mehr als 1 Jahr hinzugefügt

  • ID eaa30664dc88dee46b3af504f1c770e20c7a3ac2
  • Vorgänger 9b04d6e3
  • Nachfolger 46ca445c

Buchungsmasken: Wert des Wechselkurs auf valide Inhalte vor Buchung prüfen

Unterschiede anzeigen:

bin/mozilla/ap.pl
862 862

  
863 863
  $form->error($locale->text('Zero amount posting!')) if $zero_amount_posting;
864 864

  
865
  $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
866
    if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency}));
865
  if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency})) {
866
    $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
867
    $form->error($locale->text('Cannot post invoice with negative exchange rate'))
868
      unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
869
  }
870

  
867 871
  delete($form->{AP});
868 872

  
869 873
  for my $i (1 .. $form->{paidaccounts}) {
bin/mozilla/ar.pl
798 798
  $form->error($locale->text('Zero amount posting!'))
799 799
    unless grep $_*1, map $form->parse_amount(\%myconfig, $form->{"amount_$_"}), 1..$form->{rowcount};
800 800

  
801
  $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
802
    if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency}));
801
  if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency})) {
802
    $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
803
    $form->error($locale->text('Cannot post invoice with negative exchange rate'))
804
      unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
805
  }
803 806

  
804 807
  delete($form->{AR});
805 808

  
bin/mozilla/ir.pl
964 964
  $form->error($locale->text('Cannot post invoice for a closed period!'))
965 965
    if ($invdate <= $closedto);
966 966

  
967
  $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
968
    if ($form->{currency} ne $form->{defaultcurrency});
969

  
967
  if ($form->{currency} ne $form->{defaultcurrency}) {
968
    $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
969
    $form->error($locale->text('Cannot post invoice with negative exchange rate'))
970
      unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
971
  }
970 972
  my $i;
971 973
  for $i (1 .. $form->{paidaccounts}) {
972 974
    if ($form->parse_amount(\%myconfig, $form->{"paid_$i"})) {
bin/mozilla/is.pl
1081 1081
  $form->error($locale->text('Cannot post invoice for a closed period!'))
1082 1082
    if ($invdate <= $closedto);
1083 1083

  
1084
  $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
1085
    if ($form->{currency} ne $form->{defaultcurrency});
1084
  if ($form->{currency} ne $form->{defaultcurrency}) {
1085
    $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
1086
    $form->error($locale->text('Cannot post invoice with negative exchange rate'))
1087
      unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
1088
  }
1089

  
1086 1090
  # advance payment allows only one tax
1087 1091
  if ($form->{type} eq 'invoice_for_advance_payment') {
1088 1092
    my @current_taxaccounts = (split(/ /, $form->{taxaccounts}));
locale/de/all
624 624
  'Cannot post invoice for a closed period!' => 'Das Rechnungsdatum fällt in einen abgeschlossen Zeitraum!',
625 625
  'Cannot post invoice for advance payment with more than one tax' => 'Anzahlungsrechnung mit mehr als einem Steuersatz kann nicht gebucht werden',
626 626
  'Cannot post invoice for advance payment with taxincluded' => 'Eine Anzahlungsrechnung mit Steuer im Preis inbegriffen kann nicht gebucht werden',
627
  'Cannot post invoice with negative exchange rate' => 'Kann keinen Beleg mit einem negativen Wechselkurs verbuchen.',
627 628
  'Cannot post invoice!'        => 'Rechnung kann nicht gebucht werden!',
628 629
  'Cannot post payment for a closed period!' => 'Es können keine Zahlungen für abgeschlossene Bücher gebucht werden!',
629 630
  'Cannot post payment!'        => 'Zahlung kann nicht gebucht werden!',

Auch abrufbar als: Unified diff