X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=purchasing%2Fincludes%2Fdb%2Fsupp_payment_db.inc;h=32b35041b90bbf799802d0372b1fedaf1443f925;hb=9af96a2e461b905dbb20f2b87ffb5c28f9b3461c;hp=d4dc4706ea3f02d9000648176f08867c8db7888c;hpb=80dd97a37f674cc3691fa04af4c29607067566b2;p=fa-stable.git diff --git a/purchasing/includes/db/supp_payment_db.inc b/purchasing/includes/db/supp_payment_db.inc index d4dc4706..32b35041 100644 --- 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 - $trans_type = 22; + $trans_type = ST_SUPPAYMENT; /* 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