projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
972f67f
)
Bug 232 - Zahlungsausgang Fehler, falsches Aufsummieren von Teilzahlungen bei
author
Stephan Köhler
<s.koehler@linet-services.de>
Wed, 9 Aug 2006 13:44:41 +0000
(13:44 +0000)
committer
Stephan Köhler
<s.koehler@linet-services.de>
Wed, 9 Aug 2006 13:44:41 +0000
(13:44 +0000)
Rechnungen
SL/CP.pm
patch
|
blob
|
history
diff --git
a/SL/CP.pm
b/SL/CP.pm
index
341510c
..
b411b06
100644
(file)
--- a/
SL/CP.pm
+++ b/
SL/CP.pm
@@
-370,10
+370,17
@@
sub process_payment {
$pth->finish;
$amount += $form->{"paid_$i"};
+
+ # BUG 324
+ if ($form->{arap} eq 'ap') {
+ $paid = "paid = paid + $amount";
+ } else {
+ $paid = "paid = $amount";
+ }
# update AR/AP transaction
$query = qq|UPDATE $form->{arap} set
-
paid = $amount
,
+
$paid
,
datepaid = '$form->{datepaid}'
WHERE id = $form->{"id_$i"}|;
$dbh->do($query) || $form->dberror($query);