Debug v19

This commit is contained in:
Laurent Destailleur
2023-11-18 23:50:35 +01:00
parent 1e36013e34
commit 5c1a7e7541
3 changed files with 8 additions and 16 deletions

View File

@@ -4473,8 +4473,6 @@ class OrderLine extends CommonOrderLine
*/
public function insert($user = null, $notrigger = 0)
{
global $langs, $conf;
$error = 0;
$pa_ht_isemptystring = (empty($this->pa_ht) && $this->pa_ht == ''); // If true, we can use a default value. If this->pa_ht = '0', we must use '0'.
@@ -4549,8 +4547,8 @@ class OrderLine extends CommonOrderLine
$sql .= ' fk_product, product_type, remise_percent, subprice, price, fk_remise_except,';
$sql .= ' special_code, rang, fk_product_fournisseur_price, buy_price_ht,';
$sql .= ' info_bits, total_ht, total_tva, total_localtax1, total_localtax2, total_ttc, date_start, date_end,';
$sql .= ' fk_unit';
$sql .= ', fk_multicurrency, multicurrency_code, multicurrency_subprice, multicurrency_total_ht, multicurrency_total_tva, multicurrency_total_ttc';
$sql .= ' fk_unit,';
$sql .= ' fk_multicurrency, multicurrency_code, multicurrency_subprice, multicurrency_total_ht, multicurrency_total_tva, multicurrency_total_ttc';
$sql .= ')';
$sql .= " VALUES (".$this->fk_commande.",";
$sql .= " ".($this->fk_parent_line > 0 ? "'".$this->db->escape($this->fk_parent_line)."'" : "null").",";
@@ -4640,8 +4638,6 @@ class OrderLine extends CommonOrderLine
*/
public function update(User $user, $notrigger = 0)
{
global $conf, $langs;
$error = 0;
$pa_ht_isemptystring = (empty($this->pa_ht) && $this->pa_ht == ''); // If true, we can use a default value. If this->pa_ht = '0', we must use '0'.