Merge pull request #22818 from thomas-Ngr/14.0_fix_supplier_proposal_line_clone_subprice_zero
Fix supplier proposal clone : when a line subprice is empty, it should be saved as 0 in the Database, not null.
This commit is contained in:
commit
fc8a136a34
@ -3035,7 +3035,7 @@ class SupplierProposalLine extends CommonObjectLine
|
||||
$sql .= " ".price2num($this->localtax2_tx).",";
|
||||
$sql .= " '".$this->db->escape($this->localtax1_type)."',";
|
||||
$sql .= " '".$this->db->escape($this->localtax2_type)."',";
|
||||
$sql .= " ".(!empty($this->subprice) ?price2num($this->subprice) : "null").",";
|
||||
$sql .= " ".(!empty($this->subprice) ?price2num($this->subprice) : 0).",";
|
||||
$sql .= " ".price2num($this->remise_percent).",";
|
||||
$sql .= " ".(isset($this->info_bits) ? "'".$this->db->escape($this->info_bits)."'" : "null").",";
|
||||
$sql .= " ".price2num($this->total_ht).",";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user