NEW: Feature request: A page to merge two thirdparties into one #2613

This commit is contained in:
Marcos García de La Fuente
2015-04-18 18:11:01 +02:00
parent a5ba7c664e
commit dc790ff586
50 changed files with 589 additions and 74 deletions

View File

@@ -3292,6 +3292,23 @@ class Commande extends CommonOrder
return $this->commonGenerateDocument($modelpath, $modele, $outputlangs, $hidedetails, $hidedesc, $hideref);
}
/**
* Function used to replace a thirdparty id with another one.
*
* @param DoliDB $db Database handler
* @param int $origin_id Old thirdparty id
* @param int $dest_id New thirdparty id
* @return bool
*/
public static function replaceThirdparty(DoliDB $db, $origin_id, $dest_id)
{
$tables = array(
'commande'
);
return CommonObject::commonReplaceThirdparty($db, $origin_id, $dest_id, $tables);
}
}