Revision 26456e6e
Von Moritz Bunkus vor fast 15 Jahren hinzugefügt
SL/CP.pm | ||
---|---|---|
my $buysell = $form->{vc} eq 'customer' ? "buy" : "sell";
|
||
my $arap = $form->{arap} eq "ar" ? "ar" : "ap";
|
||
|
||
my $curr_null = $form->{curreny} ? '' : ' OR a.curr IS NULL'; # fix: after sql-injection fix, curr is inserted as NULL, before that as ''
|
||
|
||
my $query =
|
||
qq|SELECT a.id, a.invnumber, a.transdate, a.amount, a.paid, a.curr | .
|
||
qq|FROM $arap a | .
|
||
qq|WHERE (a.${vc}_id = ?) AND (a.curr = ? $curr_null) AND NOT (a.amount = paid)| .
|
||
qq|WHERE (a.${vc}_id = ?) AND (COALESCE(a.curr, '') = ?) AND NOT (a.amount = a.paid)| .
|
||
qq|ORDER BY a.id|;
|
||
my $sth = prepare_execute_query($form, $dbh, $query,
|
||
conv_i($form->{"${vc}_id"}),
|
||
$form->{currency});
|
||
"$form->{currency}");
|
||
|
||
$form->{PR} = [];
|
||
while (my $ref = $sth->fetchrow_hashref("NAME_lc")) {
|
||
... | ... | |
}
|
||
|
||
$sth->finish;
|
||
|
||
$query = <<SQL;
|
||
SELECT COUNT(*)
|
||
FROM $arap
|
||
WHERE (${vc}_id = ?)
|
||
AND (COALESCE(curr, '') <> ?)
|
||
AND (amount <> paid)
|
||
SQL
|
||
($form->{openinvoices_other_currencies}) = selectfirst_array_query($form, $dbh, $query, conv_i($form->{"${vc}_id"}), "$form->{currency}");
|
||
|
||
$dbh->disconnect;
|
||
|
||
$main::lxdebug->leave_sub();
|
||
... | ... | |
# Hier werden negativen Zahlungseingänge abgefangen
|
||
# Besser: in Oberfläche schon prüfen
|
||
# Zahlungsein- und ausgänge sind immer positiv
|
||
$dbh->rollback;
|
||
$dbh->rollback;
|
||
$rc = 0;
|
||
}
|
||
if ($form->round_amount($paymentamount, 2) == 0) {
|
bin/mozilla/cp.pl | ||
---|---|---|
$jsscript
|
||
|;
|
||
|
||
if ($form->{openinvoices_other_currencies}) {
|
||
my $warning = $form->{vc} eq 'customer' ? $::locale->text('There are #1 more open invoices for this customer with other currencies.', $form->{openinvoices_other_currencies})
|
||
: $::locale->text('There are #1 more open invoices from this vendor with other currencies.', $form->{openinvoices_other_currencies});
|
||
|
||
print qq|
|
||
|
||
<input type="hidden" name="openinvoices_other_currencies" value="| . H($form->{openinvoices_other_currencies}) . qq|">
|
||
<tr>
|
||
<td><b>| . $::locale->text('Note') . qq|: $warning</b></td>
|
||
</tr>
|
||
|;
|
||
}
|
||
|
||
$lxdebug->leave_sub();
|
||
}
|
||
|
locale/de/all | ||
---|---|---|
'The wrong taxkeys for AP and AR transactions have been fixed.' => 'Die Probleme mit falschen Steuerschl?ssel bei Kreditoren- und Debitorenbuchungen wurden behoben.',
|
||
'The wrong taxkeys for inventory transactions for sales and purchase invoices have been fixed.' => 'Die falschen Steuerschl?ssel f?r Warenbestandsbuchungen bei Einkaufs- und Verkaufsrechnungen wurden behoben.',
|
||
'The wrong taxkeys have been fixed.' => 'Die Steuerschl?ssel wurden nach Ihrer Auswahl korrigiert.',
|
||
'There are #1 more open invoices for this customer with other currencies.' => 'Es gibt #1 weitere offene Rechnungen f?r diesen Kunden, die in anderen W?hrungen ausgestellt wurden.',
|
||
'There are #1 more open invoices from this vendor with other currencies.' => 'Es gibt #1 weitere offene Rechnungen von diesem Lieferanten, die in anderen W?hrungen ausgestellt wurden.',
|
||
'There are #1 unfinished follow-ups of which #2 are due.' => 'Es gibt #1 Wiedervorlage(n), von denen #2 f?llig ist/sind.',
|
||
'There are four tax zones.' => 'Es gibt vier Steuerzonen.',
|
||
'There are no items in stock.' => 'Dieser Artikel ist nicht eingelagert.',
|
locale/de/cp | ||
---|---|---|
'No or an unknown authenticantion module specified in "config/authentication.pl".' => 'Es wurde kein oder ein unbekanntes Authentifizierungsmodul in "config/authentication.pl" angegeben.',
|
||
'No part was found matching the search parameters.' => 'Es wurde kein Artikel gefunden, auf den die Suchparameter zutreffen.',
|
||
'No vendor has been selected yet.' => 'Es wurde noch kein Lieferant ausgew?hlt.',
|
||
'Note' => 'Hinweis',
|
||
'Number' => 'Nummer',
|
||
'Others' => 'Andere',
|
||
'PAYMENT POSTED' => 'Rechung gebucht',
|
||
... | ... | |
'The connection to the authentication database failed:' => 'Die Verbindung zur Authentifizierungsdatenbank schlug fehl:',
|
||
'The connection to the template database failed:' => 'Die Verbindung zur Vorlagendatenbank schlug fehl:',
|
||
'The creation of the authentication database failed:' => 'Das Anlegen der Authentifizierungsdatenbank schlug fehl:',
|
||
'There are #1 more open invoices for this customer with other currencies.' => 'Es gibt #1 weitere offene Rechnungen f?r diesen Kunden, die in anderen W?hrungen ausgestellt wurden.',
|
||
'There are #1 more open invoices from this vendor with other currencies.' => 'Es gibt #1 weitere offene Rechnungen von diesem Lieferanten, die in anderen W?hrungen ausgestellt wurden.',
|
||
'To (email)' => 'An',
|
||
'Transactions, AR transactions, AP transactions' => 'Dialogbuchen, Debitorenrechnungen, Kreditorenrechnungen',
|
||
'Trying to call a sub without a name' => 'Es wurde versucht, eine Unterfunktion ohne Namen aufzurufen.',
|
Auch abrufbar als: Unified diff
Bei Zahlungseingang/-ausgang Meldung anzeigen, wenn offene Rechnungen in anderen Währungen vorhanden sind
Fix für Bug 1050.