Editable sales terms in sales orders and invoices.
[fa-stable.git] / sales / customer_delivery.php
index 15f851fbf1e36f5c1743b2a34dffd0b6b90dd658..82ae32a008f34c221a1cc6a14cd69756374ad8f2 100644 (file)
@@ -375,7 +375,7 @@ echo "</td><td>";// outer table
 start_table("$table_style width=90%");
 
 if (!isset($_POST['due_date']) || !is_date($_POST['due_date'])) {
-       $_POST['due_date'] = get_invoice_duedate($_SESSION['Items']->customer_id, $_POST['DispatchDate']);
+       $_POST['due_date'] = get_invoice_duedate($_SESSION['Items']->payment, $_POST['DispatchDate']);
 }
 date_row(_("Invoice Dead-line"), 'due_date', '', null, 0, 0, 0, "class='tableheader2'");
 end_table();
@@ -432,8 +432,7 @@ foreach ($_SESSION['Items']->line_items as $line=>$ln_itm) {
                text_cells(null, 'Line'.$line.'Desc', $ln_itm->item_description, 30, 50);
        else
                label_cell($ln_itm->item_description);
-       
-       label_cell($ln_itm->units);
+
        $dec = get_qty_dec($ln_itm->stock_id);
        qty_cell($ln_itm->quantity, false, $dec);
        label_cell($ln_itm->units);