|
@@ -873,19 +873,6 @@ if (empty($reshook))
|
|
|
$object->addline($langs->trans('invoiceAvoirLineWithPaymentRestAmount'),$remain_to_pay,1,0,0,0,0,0,'','','TTC');
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- // Add predefined lines
|
|
|
- /*
|
|
|
- TODO delete
|
|
|
- for($i = 1; $i <= $NBLINES; $i ++) {
|
|
|
- if ($_POST['idprod' . $i]) {
|
|
|
- $product = new Product($db);
|
|
|
- $product->fetch($_POST['idprod' . $i]);
|
|
|
- $startday = dol_mktime(12, 0, 0, $_POST['date_start' . $i . 'month'], $_POST['date_start' . $i . 'day'], $_POST['date_start' . $i . 'year']);
|
|
|
- $endday = dol_mktime(12, 0, 0, $_POST['date_end' . $i . 'month'], $_POST['date_end' . $i . 'day'], $_POST['date_end' . $i . 'year']);
|
|
|
- $result = $object->addline($product->description, $product->price, $_POST['qty' . $i], $product->tva_tx, $product->localtax1_tx, $product->localtax2_tx, $_POST['idprod' . $i], $_POST['remise_percent' . $i], $startday, $endday, 0, 0, '', $product->price_base_type, $product->price_ttc, $product->type);
|
|
|
- }
|
|
|
- }*/
|
|
|
}
|
|
|
}
|
|
|
|