X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_invoice.php;h=e4ab5158322f95ef6fffea1a7f20fdf724a76317;hb=f11b39846d81bd043490ba9596224b859e47467c;hp=6a8e82bf041a1674f6f4afb2772613e769892e0a;hpb=020d309dc37e9400d27ef3cad381e6f1b04f67fd;p=fa-stable.git diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index 6a8e82bf..e4ab5158 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -160,16 +160,15 @@ if ( (isset($_GET['DeliveryNumber']) && ($_GET['DeliveryNumber'] > 0) ) } else { $order_no = $_GET['InvoicePrepayments']; - $payments = get_payments_for($_GET['InvoicePrepayments'], ST_SALESORDER); } processing_start(); - $_SESSION['Items'] = new Cart(ST_SALESORDER, $order_no, ST_SALESINVOICE); + $_SESSION['Items'] = new cart(ST_SALESORDER, $order_no, ST_SALESINVOICE); $_SESSION['Items']->order_no = $order_no; $_SESSION['Items']->src_docs = array($order_no); $_SESSION['Items']->trans_no = 0; $_SESSION['Items']->trans_type = ST_SALESINVOICE; - $_SESSION['Items']->prepayments = $payments; + $_SESSION['Items']->update_payments(); copy_from_cart();