projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added missing due date on direct invoice entry.
[fa-stable.git]
/
purchasing
/
includes
/
db
/
supp_payment_db.inc
diff --git
a/purchasing/includes/db/supp_payment_db.inc
b/purchasing/includes/db/supp_payment_db.inc
index d4dc4706ea3f02d9000648176f08867c8db7888c..32b35041b90bbf799802d0372b1fedaf1443f925 100644
(file)
--- a/
purchasing/includes/db/supp_payment_db.inc
+++ b/
purchasing/includes/db/supp_payment_db.inc
@@
-35,10
+35,10
@@
function add_supp_payment($supplier_id, $date_, $bank_account,
// it's a supplier payment
// it's a supplier payment
- $trans_type =
22
;
+ $trans_type =
ST_SUPPAYMENT
;
/* Create a supp_trans entry for the supplier payment */
/* Create a supp_trans entry for the supplier payment */
- $payment_id =
add_supp_trans($trans_type
, $supplier_id, $date_, $date_,
+ $payment_id =
write_supp_trans($trans_type, 0
, $supplier_id, $date_, $date_,
$ref, "", -$supp_amount, 0, -$supp_discount, "", $rate);
// Now debit creditors account with payment + discount
$ref, "", -$supp_amount, 0, -$supp_discount, "", $rate);
// Now debit creditors account with payment + discount