X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fcart_class.inc;h=6296e5ccc1188c17e4dd72c06c84a178ac67a3b7;hb=f11b39846d81bd043490ba9596224b859e47467c;hp=b2d7a51f6a433749eab927143afa7a75a6592284;hpb=020d309dc37e9400d27ef3cad381e6f1b04f67fd;p=fa-stable.git diff --git a/sales/includes/cart_class.inc b/sales/includes/cart_class.inc index b2d7a51f..6296e5cc 100644 --- a/sales/includes/cart_class.inc +++ b/sales/includes/cart_class.inc @@ -218,7 +218,8 @@ class cart read_sales_order($trans_no[0], $this, $type); } else { // other type of sales transaction read_sales_trans($type, $trans_no, $this); - $this->prepayments = get_payments_for($trans_no[0], $type); + $this->prepayments = get_payments_for($trans_no[0], $type, $this->customer_id); + $this->update_payments(); if ($this->order_no) { // free hand credit notes have no order_no $sodata = get_sales_order_header($this->order_no, ST_SALESORDER); $this->cust_ref = $sodata["customer_ref"];