Skip to content

Commit

Permalink
Backport date in buy price update doesn't update on change Dolibarr#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
uvaldenaire-opendsi committed Oct 7, 2024
1 parent 84e2edf commit 378fb09
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 @@ -386,6 +386,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 378fb09

Please sign in to comment.