- $ci = new Cart(10, $_GET['InvoiceNumber'], true);
-
- $ci->trans_type = 11;
- $ci->src_docs = $ci->trans_no;
- $ci->src_date = $ci->document_date;
- $ci->trans_no = 0;
- $ci->document_date = Today();
- $ci->reference = references::get_next(11);
-
- for ($line_no=0; $line_no<count($ci->line_items); $line_no++) {
- $ci->line_items[$line_no]->qty_dispatched = '0';
- }
-
- $_SESSION['Items'] = $ci;