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:
afe394e
)
Kreditlimit von Lieferanten wurde nicht richtig berechnet, wenn neue Rechnungen angel...
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 25 Apr 2007 10:03:04 +0000
(10:03 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 25 Apr 2007 10:03:04 +0000
(10:03 +0000)
SL/IR.pm
patch
|
blob
|
history
diff --git
a/SL/IR.pm
b/SL/IR.pm
index
f51ce4a
..
ec64dc5
100644
(file)
--- a/
SL/IR.pm
+++ b/
SL/IR.pm
@@
-1008,7
+1008,8
@@
sub get_vendor {
$form->{creditremaining} = $form->{creditlimit};
$query = qq|SELECT SUM(a.amount - a.paid) FROM ap a WHERE a.vendor_id = ?|;
- ($form->{creditremaining}) -= selectfirst_array_query($form, $dbh, $query, $form->{vendor_id});
+ my ($unpaid_invoices) = selectfirst_array_query($form, $dbh, $query, $form->{vendor_id});
+ $form->{creditremaining} -= $unpaid_invoices;
$query = qq|SELECT o.amount,
(SELECT e.sell FROM exchangerate e