From: Moritz Bunkus Date: Mon, 24 Nov 2008 13:18:24 +0000 (+0000) Subject: Beim Buchen von Zahlungseingängen zu Debitorenrechnungen das Feld "bezahlt" bei der... X-Git-Tag: release-2.6.0beta2~232 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=55ef0ec59cae4f044c79a1e675899dc1d6c90d5b;p=kivitendo-erp.git Beim Buchen von Zahlungseingängen zu Debitorenrechnungen das Feld "bezahlt" bei der Rechnung aktualisieren. --- diff --git a/SL/AR.pm b/SL/AR.pm index 0a8987979..c7965f8d5 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -195,6 +195,10 @@ sub post_transaction { VALUES (?, (SELECT id FROM chart WHERE accno = ?), ?, ?, (SELECT taxkey_id FROM chart WHERE accno = ?))|; @values = (conv_i($form->{id}), $form->{AR_amounts}{receivables}, conv_i($form->{receivables}), conv_date($form->{transdate}), $form->{AR_amounts}{receivables}); do_query($form, $dbh, $query, @values); + + } else { + # Record paid amount. + do_query($form, $dbh, qq|UPDATE ar SET paid = ? WHERE id = ?|, $form->{paid}, conv_i($form->{id})); } # add paid transactions