Revision ed915d11
Von Jan Büren vor mehr als 2 Jahren hinzugefügt
| bin/mozilla/ap.pl | ||
|---|---|---|
|  | ||
|   $form->error($locale->text('Zero amount posting!')) if $zero_amount_posting;
 | ||
|  | ||
|   $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
 | ||
|     if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency}));
 | ||
|   if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency})) {
 | ||
|     $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
 | ||
|     $form->error($locale->text('Cannot post invoice with negative exchange rate'))
 | ||
|       unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
 | ||
|   }
 | ||
|  | ||
|   delete($form->{AP});
 | ||
|  | ||
|   for my $i (1 .. $form->{paidaccounts}) {
 | ||
| bin/mozilla/ar.pl | ||
|---|---|---|
|   $form->error($locale->text('Zero amount posting!'))
 | ||
|     unless grep $_*1, map $form->parse_amount(\%myconfig, $form->{"amount_$_"}), 1..$form->{rowcount};
 | ||
|  | ||
|   $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
 | ||
|     if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency}));
 | ||
|   if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency})) {
 | ||
|     $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
 | ||
|     $form->error($locale->text('Cannot post invoice with negative exchange rate'))
 | ||
|       unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
 | ||
|   }
 | ||
|  | ||
|   delete($form->{AR});
 | ||
|  | ||
| bin/mozilla/ir.pl | ||
|---|---|---|
|   $form->error($locale->text('Cannot post invoice for a closed period!'))
 | ||
|     if ($invdate <= $closedto);
 | ||
|  | ||
|   $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
 | ||
|     if ($form->{currency} ne $form->{defaultcurrency});
 | ||
|  | ||
|   if ($form->{currency} ne $form->{defaultcurrency}) {
 | ||
|     $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
 | ||
|     $form->error($locale->text('Cannot post invoice with negative exchange rate'))
 | ||
|       unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
 | ||
|   }
 | ||
|   my $i;
 | ||
|   for $i (1 .. $form->{paidaccounts}) {
 | ||
|     if ($form->parse_amount(\%myconfig, $form->{"paid_$i"})) {
 | ||
| bin/mozilla/is.pl | ||
|---|---|---|
|   $form->error($locale->text('Cannot post invoice for a closed period!'))
 | ||
|     if ($invdate <= $closedto);
 | ||
|  | ||
|   $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
 | ||
|     if ($form->{currency} ne $form->{defaultcurrency});
 | ||
|   if ($form->{currency} ne $form->{defaultcurrency}) {
 | ||
|     $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
 | ||
|     $form->error($locale->text('Cannot post invoice with negative exchange rate'))
 | ||
|       unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
 | ||
|   }
 | ||
|  | ||
|   # advance payment allows only one tax
 | ||
|   if ($form->{type} eq 'invoice_for_advance_payment') {
 | ||
|     my @current_taxaccounts = (split(/ /, $form->{taxaccounts}));
 | ||
| locale/de/all | ||
|---|---|---|
|   'Cannot post invoice for a closed period!' => 'Das Rechnungsdatum fällt in einen abgeschlossen Zeitraum!',
 | ||
|   'Cannot post invoice for advance payment with more than one tax' => 'Anzahlungsrechnung mit mehr als einem Steuersatz kann nicht gebucht werden',
 | ||
|   'Cannot post invoice for advance payment with taxincluded' => 'Eine Anzahlungsrechnung mit Steuer im Preis inbegriffen kann nicht gebucht werden',
 | ||
|   'Cannot post invoice with negative exchange rate' => 'Kann keinen Beleg mit einem negativen Wechselkurs verbuchen.',
 | ||
|   'Cannot post invoice!'        => 'Rechnung kann nicht gebucht werden!',
 | ||
|   'Cannot post payment for a closed period!' => 'Es können keine Zahlungen für abgeschlossene Bücher gebucht werden!',
 | ||
|   'Cannot post payment!'        => 'Zahlung kann nicht gebucht werden!',
 | ||
Auch abrufbar als: Unified diff
Buchungsmasken: Wert des Wechselkurs auf valide Inhalte vor Buchung prüfen