2
0
forked from Wavyzz/dolibarr

Works on possibility to change customer when cloning (enable in propal)

New: can send extra input in ajax dialog
This commit is contained in:
Regis Houssin
2011-04-25 10:10:34 +00:00
parent fe11e7ec88
commit da0b70c145
3 changed files with 39 additions and 17 deletions

View File

@@ -739,13 +739,13 @@ class Commande extends CommonObject
// Change socid if needed
if (! empty($socid) && $socid != $object->socid)
{
$socstatic = new Societe($this->db);
$objsoc = new Societe($this->db);
if ($socstatic->fetch($socid)>0)
if ($objsoc->fetch($socid)>0)
{
$object->socid = $socid;
$object->cond_reglement_id = $soc->cond_reglement_id;
$object->mode_reglement_id = $soc->mode_reglement_id;
$object->socid = $objsoc->id;
$object->cond_reglement_id = $objsoc->cond_reglement_id;
$object->mode_reglement_id = $objsoc->mode_reglement_id;
$object->fk_project = '';
$object->fk_delivery_address = '';
}