Skip to content

Commit

Permalink
Merge pull request #1125 from Easya-Solutions/2022.5.3_rc_backport_up…
Browse files Browse the repository at this point in the history
…date_buy_price

Backport to update buy price on changes Dolibarr#28710
  • Loading branch information
lvessiller-opendsi authored Oct 11, 2024
2 parents e219db0 + 67f3e5f commit e4ee21f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/fourn/class/fournisseur.product.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ public function update_buyprice($qty, $buyprice, $user, $price_base_type, $fourn
}
$sql = "UPDATE ".MAIN_DB_PREFIX."product_fournisseur_price";
$sql .= " SET fk_user = ".((int) $user->id)." ,";
$sql .= " datec = '".$this->db->idate($now)."' ,";
$sql .= " ref_fourn = '".$this->db->escape($ref_fourn)."',";
$sql .= " desc_fourn = '".$this->db->escape($desc_fourn)."',";
$sql .= " price = ".((float) $buyprice).",";
Expand Down

0 comments on commit e4ee21f

Please sign in to comment.