mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
New: Add custom code and origin country
This commit is contained in:
@@ -1073,7 +1073,7 @@ function dol_trunc($string,$size=40,$trunc='right',$stringencoding='UTF-8')
|
||||
function img_object($alt, $object, $cssclass='')
|
||||
{
|
||||
global $conf,$langs;
|
||||
|
||||
|
||||
$cssclass = (!empty($cssclass)?'class="'.$cssclass.'"':'');
|
||||
|
||||
if (preg_match('/^([^@]+)@([^@]+)$/i',$object,$regs))
|
||||
@@ -3373,13 +3373,13 @@ function dol_osencode($str)
|
||||
|
||||
|
||||
/**
|
||||
* \brief Return an id from a Code. Store Code-Id in a cache.
|
||||
* \param db Database handler
|
||||
* \param key Code to get Id
|
||||
* \param tablename Table name without prefix
|
||||
* \param fieldkey Field for code
|
||||
* \param fieldid Field for id
|
||||
* \return int Id of code
|
||||
* Return an id from a Code. Store Code-Id in a cache.
|
||||
* @param db Database handler
|
||||
* @param key Code to get Id
|
||||
* @param tablename Table name without prefix
|
||||
* @param fieldkey Field for code
|
||||
* @param fieldid Field for id
|
||||
* @return int Id of code
|
||||
*/
|
||||
function dol_getIdFromCode($db,$key,$tablename,$fieldkey='code',$fieldid='id')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user