Ajout fonction remove_fournisseur
This commit is contained in:
parent
b4c8aa4f4a
commit
b580b9ffd8
@ -486,6 +486,25 @@ class Product
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
Function remove_fournisseur($user, $id_fourn)
|
||||||
|
{
|
||||||
|
$sql = "DELETE FROM ".MAIN_DB_PREFIX."product_fournisseur ";
|
||||||
|
$sql .= " WHERE fk_product = $this->id AND fk_soc = $id_fourn;";
|
||||||
|
|
||||||
|
if ($this->db->query($sql) )
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print $this->db->error() . ' in ' . $sql;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
Function create_stock($id_entrepot, $nbpiece)
|
Function create_stock($id_entrepot, $nbpiece)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user