Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9aa4d575

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

  • ID 9aa4d575a8fa7d8fb94967b765ff118aab61c330
  • Vorgänger 30b348e0
  • Nachfolger 2a9b1b12

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

Unterschiede anzeigen:

bin/mozilla/ap.pl
834 834

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

  
837
  $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
838
    if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency}));
837
  if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency})) {
838
    $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
839
    $form->error($locale->text('Cannot post invoice with negative exchange rate'))
840
      unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
841
  }
842

  
839 843
  delete($form->{AP});
840 844

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

  
783
  $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
784
    if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency}));
783
  if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency})) {
784
    $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
785
    $form->error($locale->text('Cannot post invoice with negative exchange rate'))
786
      unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
787
  }
785 788

  
786 789
  delete($form->{AR});
787 790

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

  
919
  $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
920
    if ($form->{currency} ne $form->{defaultcurrency});
921

  
919
  if ($form->{currency} ne $form->{defaultcurrency}) {
920
    $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
921
    $form->error($locale->text('Cannot post invoice with negative exchange rate'))
922
      unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
923
  }
922 924
  my $i;
923 925
  for $i (1 .. $form->{paidaccounts}) {
924 926
    if ($form->parse_amount(\%myconfig, $form->{"paid_$i"})) {
bin/mozilla/is.pl
1075 1075
  $form->error($locale->text('Cannot post invoice for a closed period!'))
1076 1076
    if ($invdate <= $closedto);
1077 1077

  
1078
  $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
1079
    if ($form->{currency} ne $form->{defaultcurrency});
1078
  if ($form->{currency} ne $form->{defaultcurrency}) {
1079
    $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
1080
    $form->error($locale->text('Cannot post invoice with negative exchange rate'))
1081
      unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
1082
  }
1083

  
1080 1084
  # advance payment allows only one tax
1081 1085
  if ($form->{type} eq 'invoice_for_advance_payment') {
1082 1086
    my @current_taxaccounts = (split(/ /, $form->{taxaccounts}));
locale/de/all
595 595
  'Cannot post invoice for a closed period!' => 'Das Rechnungsdatum fällt in einen abgeschlossen Zeitraum!',
596 596
  'Cannot post invoice for advance payment with more than one tax' => 'Anzahlungsrechnung mit mehr als einem Steuersatz kann nicht gebucht werden',
597 597
  'Cannot post invoice for advance payment with taxincluded' => 'Eine Anzahlungsrechnung mit Steuer im Preis inbegriffen kann nicht gebucht werden',
598
  'Cannot post invoice with negative exchange rate' => 'Kann keinen Beleg mit einem negativen Wechselkurs verbuchen.',
598 599
  'Cannot post invoice!'        => 'Rechnung kann nicht gebucht werden!',
599 600
  'Cannot post payment for a closed period!' => 'Es können keine Zahlungen für abgeschlossene Bücher gebucht werden!',
600 601
  'Cannot post payment!'        => 'Zahlung kann nicht gebucht werden!',

Auch abrufbar als: Unified diff