mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-26 19:31:31 +01:00
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -119,9 +119,15 @@ class MouvementStock extends CommonObject
|
||||
|
||||
// Set properties of movement
|
||||
$this->product_id = $fk_product;
|
||||
$this->entrepot_id = $entrepot_id;
|
||||
$this->entrepot_id = $entrepot_id; // deprecated
|
||||
$this->warehouse_id = $entrepot_id;
|
||||
$this->qty = $qty;
|
||||
$this->type = $type;
|
||||
$this->price = $price;
|
||||
$this->label = $label;
|
||||
$this->inventorycode = $inventorycode;
|
||||
$this->datem = $now;
|
||||
$this->batch = $batch;
|
||||
|
||||
$mvid = 0;
|
||||
|
||||
|
||||
@@ -711,7 +711,7 @@ if (empty($reshook))
|
||||
// Logo/Photo save
|
||||
$dir = $conf->societe->multidir_output[$object->entity]."/".$object->id."/logos";
|
||||
$file_OK = is_uploaded_file($_FILES['photo']['tmp_name']);
|
||||
if (GETPOST('deletephoto') && $object->photo)
|
||||
if (GETPOST('deletephoto') && $object->logo)
|
||||
{
|
||||
$fileimg=$dir.'/'.$object->logo;
|
||||
$dirthumbs=$dir.'/thumbs';
|
||||
|
||||
Reference in New Issue
Block a user