diff --git a/htdocs/accountancy/class/accountancyexport.class.php b/htdocs/accountancy/class/accountancyexport.class.php
index 40427d68034..83c16e43a72 100644
--- a/htdocs/accountancy/class/accountancyexport.class.php
+++ b/htdocs/accountancy/class/accountancyexport.class.php
@@ -54,6 +54,7 @@ class AccountancyExport
public static $EXPORT_TYPE_COGILOG = 8;
public static $EXPORT_TYPE_AGIRIS = 9;
public static $EXPORT_TYPE_CONFIGURABLE = 10;
+ public static $EXPORT_TYPE_FEC = 11;
/**
@@ -78,8 +79,8 @@ class AccountancyExport
*
* @param DoliDb $db Database handler
*/
- public function __construct(DoliDB &$db)
- {
+ public function __construct(DoliDB &$db)
+ {
global $conf;
$this->db = &$db;
@@ -92,8 +93,8 @@ class AccountancyExport
*
* @return array of type
*/
- public static function getType()
- {
+ public static function getType()
+ {
global $langs;
return array (
@@ -107,6 +108,7 @@ class AccountancyExport
self::$EXPORT_TYPE_COGILOG => $langs->trans('Modelcsv_cogilog'),
self::$EXPORT_TYPE_AGIRIS => $langs->trans('Modelcsv_agiris'),
self::$EXPORT_TYPE_CONFIGURABLE => $langs->trans('Modelcsv_configurable'),
+ self::$EXPORT_TYPE_FEC => $langs->trans('Modelcsv_FEC'),
);
}
@@ -115,8 +117,8 @@ class AccountancyExport
*
* @return array of type
*/
- public static function getTypeConfig()
- {
+ public static function getTypeConfig()
+ {
global $conf, $langs;
return array (
@@ -161,6 +163,10 @@ class AccountancyExport
'ACCOUNTING_EXPORT_ENDLINE' => empty($conf->global->ACCOUNTING_EXPORT_ENDLINE)?1:$conf->global->ACCOUNTING_EXPORT_ENDLINE,
'ACCOUNTING_EXPORT_DATE' => empty($conf->global->ACCOUNTING_EXPORT_DATE)?'%d%m%Y':$conf->global->ACCOUNTING_EXPORT_DATE,
),
+ self::$EXPORT_TYPE_FEC => array(
+ 'label' => $langs->trans('Modelcsv_FEC'),
+ 'ACCOUNTING_EXPORT_FORMAT' => 'txt',
+ ),
),
'cr'=> array (
'1' => $langs->trans("Unix"),
@@ -178,8 +184,8 @@ class AccountancyExport
*
* @return void
*/
- public static function downloadFile()
- {
+ public static function downloadFile()
+ {
global $conf;
$filename = 'general_ledger';
include DOL_DOCUMENT_ROOT . '/accountancy/tpl/export_journal.tpl.php';
@@ -189,10 +195,10 @@ class AccountancyExport
* Function who chose which export to use with the default config
*
* @param unknown $TData data
- * @return void
+ * @return void
*/
- public function export(&$TData)
- {
+ public function export(&$TData)
+ {
global $conf, $langs;
self::downloadFile();
@@ -228,6 +234,9 @@ class AccountancyExport
case self::$EXPORT_TYPE_CONFIGURABLE :
$this->exportConfigurable($TData);
break;
+ case self::$EXPORT_TYPE_FEC :
+ $this->exportFEC($TData);
+ break;
default:
$this->errors[] = $langs->trans('accountancy_error_modelnotfound');
break;
@@ -241,8 +250,8 @@ class AccountancyExport
*
* @return void
*/
- public function exportNormal($objectLines)
- {
+ public function exportNormal($objectLines)
+ {
global $conf;
foreach ( $objectLines as $line ) {
@@ -266,8 +275,8 @@ class AccountancyExport
*
* @return void
*/
- public function exportCegid($objectLines)
- {
+ public function exportCegid($objectLines)
+ {
foreach ( $objectLines as $line ) {
$date = dol_print_date($line->doc_date, '%d%m%Y');
$separator = ";";
@@ -292,8 +301,8 @@ class AccountancyExport
*
* @return void
*/
- public function exportCogilog($objectLines)
- {
+ public function exportCogilog($objectLines)
+ {
foreach ( $objectLines as $line ) {
$date = dol_print_date($line->doc_date, '%d%m%Y');
$separator = ";";
@@ -326,8 +335,8 @@ class AccountancyExport
*
* @return void
*/
- public function exportCoala($objectLines)
- {
+ public function exportCoala($objectLines)
+ {
// Coala export
$separator = ";";
$end_line = "\n";
@@ -354,8 +363,8 @@ class AccountancyExport
*
* @return void
*/
- public function exportBob50($objectLines)
- {
+ public function exportBob50($objectLines)
+ {
// Bob50
$separator = ";";
@@ -393,8 +402,8 @@ class AccountancyExport
*
* @return void
*/
- public function exportCiel(&$TData)
- {
+ public function exportCiel(&$TData)
+ {
global $conf;
$end_line ="\r\n";
@@ -434,13 +443,13 @@ class AccountancyExport
*
* @return void
*/
- public function exportQuadratus(&$TData)
- {
+ public function exportQuadratus(&$TData)
+ {
global $conf;
$end_line ="\r\n";
- //We should use dol_now function not time however this is wrong date to transfert in accounting
+ //We should use dol_now function not time however this is wrong date to transfert in accounting
//$date_ecriture = dol_print_date(dol_now(), $conf->global->ACCOUNTING_EXPORT_DATE); // format must be ddmmyy
//$date_ecriture = dol_print_date(time(), $conf->global->ACCOUNTING_EXPORT_DATE); // format must be ddmmyy
foreach ( $TData as $data ) {
@@ -454,8 +463,8 @@ class AccountancyExport
$Tab['code_journal'] = str_pad(self::trunc($data->code_journal, 2), 2);
$Tab['folio'] = '000';
- //We use invoice date $data->doc_date not $date_ecriture which is the transfert date
- //maybe we should set an option for customer who prefer to keep in accounting software the tranfert date instead of invoice date ?
+ //We use invoice date $data->doc_date not $date_ecriture which is the transfert date
+ //maybe we should set an option for customer who prefer to keep in accounting software the tranfert date instead of invoice date ?
//$Tab['date_ecriture'] = $date_ecriture;
$Tab['date_ecriture'] = dol_print_date($data->doc_date, '%d%m%y');
$Tab['filler'] = ' ';
@@ -463,25 +472,25 @@ class AccountancyExport
$Tab['sens'] = $data->sens; // C or D
$Tab['signe_montant'] = '+';
- //elarifr le montant doit etre en centimes sans point decimal !
+ //elarifr le montant doit etre en centimes sans point decimal !
$Tab['montant'] = str_pad(abs($data->montant*100), 12, '0', STR_PAD_LEFT); // TODO manage negative amount
- // $Tab['montant'] = str_pad(abs($data->montant), 12, '0', STR_PAD_LEFT); // TODO manage negative amount
+ // $Tab['montant'] = str_pad(abs($data->montant), 12, '0', STR_PAD_LEFT); // TODO manage negative amount
$Tab['contrepartie'] = str_repeat(' ', 8);
- // elarifr: date format must be fixed format : 6 char ddmmyy = %d%m%yand not defined by user / dolibarr setting
+ // elarifr: date format must be fixed format : 6 char ddmmyy = %d%m%yand not defined by user / dolibarr setting
if (! empty($data->date_echeance))
//$Tab['date_echeance'] = dol_print_date($data->date_echeance, $conf->global->ACCOUNTING_EXPORT_DATE);
- $Tab['date_echeance'] = dol_print_date($data->date_echeance, '%d%m%y' ); // elarifr: format must be ddmmyy
+ $Tab['date_echeance'] = dol_print_date($data->date_echeance, '%d%m%y' ); // elarifr: format must be ddmmyy
else
$Tab['date_echeance'] = '000000';
- //elarifr please keep quadra named field lettrage(2) + codestat(3) instead of fake lettrage(5)
+ //elarifr please keep quadra named field lettrage(2) + codestat(3) instead of fake lettrage(5)
//$Tab['lettrage'] = str_repeat(' ', 5);
$Tab['lettrage'] = str_repeat(' ', 2);
$Tab['codestat'] = str_repeat(' ', 3);
$Tab['num_piece'] = str_pad(self::trunc($data->piece_num, 5), 5);
- //elarifr keep correct quadra named field instead of anon filler
+ //elarifr keep correct quadra named field instead of anon filler
//$Tab['filler2'] = str_repeat(' ', 20);
$Tab['affaire'] = str_repeat(' ', 10);
$Tab['quantity1'] = str_repeat(' ', 10);
@@ -490,16 +499,16 @@ class AccountancyExport
$Tab['code_journal2'] = str_pad(self::trunc($data->code_journal, 3), 3);
$Tab['filler3'] = str_repeat(' ', 3);
- //elarifr keep correct quadra named field instead of anon filler libelle_ecriture2 is 30 char not 32 !!!!
- //as we use utf8, we must remove accent to have only one ascii char instead of utf8 2 chars for specials that report wrong line size that will exceed import format spec
- //todo we should filter more than only accent to avoid wrong line size
- //TODO: remove invoice number doc_ref in libelle,
- //TODO: we should offer an option for customer to build the libelle using invoice number / name / date in accounting software
+ //elarifr keep correct quadra named field instead of anon filler libelle_ecriture2 is 30 char not 32 !!!!
+ //as we use utf8, we must remove accent to have only one ascii char instead of utf8 2 chars for specials that report wrong line size that will exceed import format spec
+ //todo we should filter more than only accent to avoid wrong line size
+ //TODO: remove invoice number doc_ref in libelle,
+ //TODO: we should offer an option for customer to build the libelle using invoice number / name / date in accounting software
//$Tab['libelle_ecriture2'] = str_pad(self::trunc(dol_string_unaccent($data->doc_ref) . ' ' . dol_string_unaccent($data->label_operation), 30), 30);
$Tab['libelle_ecriture2'] = str_pad(self::trunc(dol_string_unaccent($data->label_operation), 30), 30);
$Tab['codetva'] = str_repeat(' ', 2);
- //elarifr we need to keep the 10 lastest number of invoice doc_ref not the beginning part that is the unusefull almost same part
+ //elarifr we need to keep the 10 lastest number of invoice doc_ref not the beginning part that is the unusefull almost same part
//$Tab['num_piece3'] = str_pad(self::trunc($data->piece_num, 10), 10);
$Tab['num_piece3'] = substr(self::trunc($data->doc_ref, 20), -10);
$Tab['filler4'] = str_repeat(' ', 73);
@@ -518,8 +527,8 @@ class AccountancyExport
*
* @return void
*/
- public function exportEbp($objectLines)
- {
+ public function exportEbp($objectLines)
+ {
$separator = ',';
$end_line = "\n";
@@ -551,8 +560,8 @@ class AccountancyExport
*
* @return void
*/
- public function exportAgiris($objectLines)
- {
+ public function exportAgiris($objectLines)
+ {
$separator = ';';
$end_line = "\n";
@@ -589,8 +598,8 @@ class AccountancyExport
*
* @return void
*/
- public function exportConfigurable($objectLines)
- {
+ public function exportConfigurable($objectLines)
+ {
global $conf;
foreach ($objectLines as $line) {
@@ -613,15 +622,89 @@ class AccountancyExport
}
}
+ /**
+ * Export format : FEC
+ *
+ * @param array $objectLines data
+ *
+ * @return void
+ */
+ public function exportFEC($objectLines)
+ {
+ $separator = ';';
+ $end_line = "\n";
+
+ foreach ( $objectLines as $line ) {
+ $date_creation = dol_print_date($line->date_creation, '%d%m%Y');
+ $date_doc = dol_print_date($line->doc_date, '%d%m%Y');
+ $date_valid = dol_print_date($line->date_validated, '%d%m%Y');
+
+ // FEC:JournalCode
+ print $line->code_journal;
+
+ // FEC:JournalLib
+ print $line->journal_label;
+
+ // FEC:EcritureNum
+ print $line->piece_num . $separator;
+
+ // FEC:EcritureDate
+ print $date_creation . $separator;
+
+ // FEC:CompteNum
+ print $line->numero_compte . $separator
+
+ // FEC:CompteLib
+ print $line->label_compte . $separator;
+
+ // FEC:CompAuxNum
+ print $line->subledger_account . $separator;
+
+ // FEC:CompAuxLib
+ print $line->subledger_label . $separator;
+
+ // FEC:PieceRef
+ print $line->doc_ref . $separator;
+
+ // FEC:PieceDate
+ print $date_doc . $separator;
+
+ // FEC:EcritureLib
+ print $line->label_operation . $separator;
+
+ // FEC:Debit
+ print price($line->debit) . $separator;
+
+ // FEC:Credit
+ print price($line->credit) . $separator;
+
+ // FEC:EcritureLet
+ print $line->lettering_code . $separator;
+
+ // FEC:DateLet
+ print $line->date_lettering . $separator;
+
+ // FEC:ValidDate
+ print $date_valid . $separator;
+
+ // FEC:Montantdevise
+ print $line->multicurrency_amount . $separator;
+
+ // FEC:Idevise
+ print $line->multicurrency_code;
+
+ print $end_line;
+ }
+ }
/**
*
* @param unknown $str data
* @param integer $size data
- * @return string
+ * @return string
*/
- public static function trunc($str, $size)
- {
+ public static function trunc($str, $size)
+ {
return dol_trunc($str, $size, 'right', 'UTF-8', 1);
}
}
diff --git a/htdocs/accountancy/class/accountancysystem.class.php b/htdocs/accountancy/class/accountancysystem.class.php
index 444079f5239..b70fa7238bb 100644
--- a/htdocs/accountancy/class/accountancysystem.class.php
+++ b/htdocs/accountancy/class/accountancysystem.class.php
@@ -38,8 +38,16 @@ class AccountancySystem
*/
public $error='';
+ /**
+ * @var int ID
+ */
public $rowid;
+
+ /**
+ * @var int ID
+ */
public $fk_pcg_version;
+
public $pcg_type;
public $pcg_subtype;
diff --git a/htdocs/accountancy/class/accountingaccount.class.php b/htdocs/accountancy/class/accountingaccount.class.php
index 4929e118a3b..9030e65b049 100644
--- a/htdocs/accountancy/class/accountingaccount.class.php
+++ b/htdocs/accountancy/class/accountingaccount.class.php
@@ -80,12 +80,21 @@ class AccountingAccount extends CommonObject
public $rowid;
public $datec; // Creation date
+
+ /**
+ * @var int ID
+ */
public $fk_pcg_version;
+
public $pcg_type;
public $pcg_subtype;
public $account_number;
public $account_parent;
public $account_category;
+
+ /**
+ * @var int Status
+ */
public $status;
/**
diff --git a/htdocs/accountancy/class/accountingjournal.class.php b/htdocs/accountancy/class/accountingjournal.class.php
index 058bdb3dddb..9bd21a4a5c4 100644
--- a/htdocs/accountancy/class/accountingjournal.class.php
+++ b/htdocs/accountancy/class/accountingjournal.class.php
@@ -41,7 +41,11 @@ class AccountingJournal extends CommonObject
*/
public $fk_element = '';
- public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+ /**
+ * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+ * @var int
+ */
+ public $ismultientitymanaged = 0;
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
diff --git a/htdocs/accountancy/class/bookkeeping.class.php b/htdocs/accountancy/class/bookkeeping.class.php
index 5d9572da684..5e9350b0366 100644
--- a/htdocs/accountancy/class/bookkeeping.class.php
+++ b/htdocs/accountancy/class/bookkeeping.class.php
@@ -70,8 +70,17 @@ class BookKeeping extends CommonObject
public $date_lim_reglement;
public $doc_type;
public $doc_ref;
+
+ /**
+ * @var int ID
+ */
public $fk_doc;
+
+ /**
+ * @var int ID
+ */
public $fk_docdet;
+
public $thirdparty_code;
public $subledger_account;
public $subledger_label;
@@ -82,7 +91,12 @@ class BookKeeping extends CommonObject
public $credit;
public $montant;
public $sens;
+
+ /**
+ * @var int ID
+ */
public $fk_user_author;
+
public $import_key;
public $code_journal;
public $journal_label;
@@ -718,6 +732,10 @@ class BookKeeping extends CommonObject
$sql .= " t.credit,";
$sql .= " t.montant,";
$sql .= " t.sens,";
+ $sql .= " t.multicurrency_amount,";
+ $sql .= " t.multicurrency_code,";
+ $sql .= " t.lettering_code,";
+ $sql .= " t.date_lettering,";
$sql .= " t.fk_user_author,";
$sql .= " t.import_key,";
$sql .= " t.code_journal,";
@@ -786,6 +804,10 @@ class BookKeeping extends CommonObject
$line->credit = $obj->credit;
$line->montant = $obj->montant;
$line->sens = $obj->sens;
+ $line->multicurrency_amount = $obj->multicurrency_amount;
+ $line->multicurrency_code = $obj->multicurrency_code;
+ $line->lettering_code = $obj->lettering_code;
+ $line->date_lettering = $obj->date_lettering;
$line->fk_user_author = $obj->fk_user_author;
$line->import_key = $obj->import_key;
$line->code_journal = $obj->code_journal;
@@ -1871,8 +1893,17 @@ class BookKeepingLine
public $doc_date = '';
public $doc_type;
public $doc_ref;
+
+ /**
+ * @var int ID
+ */
public $fk_doc;
+
+ /**
+ * @var int ID
+ */
public $fk_docdet;
+
public $thirdparty_code;
public $subledger_account;
public $subledger_label;
@@ -1883,7 +1914,12 @@ class BookKeepingLine
public $credit;
public $montant;
public $sens;
+
+ /**
+ * @var int ID
+ */
public $fk_user_author;
+
public $import_key;
public $code_journal;
public $journal_label;
diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php
index 09c5decfc43..dd2dd835a58 100644
--- a/htdocs/adherents/class/adherent.class.php
+++ b/htdocs/adherents/class/adherent.class.php
@@ -51,7 +51,11 @@ class Adherent extends CommonObject
*/
public $table_element='adherent';
- public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+ /**
+ * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+ * @var int
+ */
+ public $ismultientitymanaged = 1;
public $mesgs;
@@ -65,8 +69,17 @@ class Adherent extends CommonObject
public $pass_indatabase_crypted;
public $societe;
+
+ /**
+ * @var Societe $company {@type Societe}
+ */
public $company;
+
+ /**
+ * @var string Address
+ */
public $address;
+
public $zip;
public $town;
diff --git a/htdocs/adherents/class/adherent_type.class.php b/htdocs/adherents/class/adherent_type.class.php
index dffd1446af0..20a85c7bf3e 100644
--- a/htdocs/adherents/class/adherent_type.class.php
+++ b/htdocs/adherents/class/adherent_type.class.php
@@ -47,7 +47,11 @@ class AdherentType extends CommonObject
*/
public $picto = 'group';
- public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+ /**
+ * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+ * @var int
+ */
+ public $ismultientitymanaged = 1;
/**
* @var string
diff --git a/htdocs/adherents/class/subscription.class.php b/htdocs/adherents/class/subscription.class.php
index 1c64560cf79..562b34af2b1 100644
--- a/htdocs/adherents/class/subscription.class.php
+++ b/htdocs/adherents/class/subscription.class.php
@@ -51,8 +51,17 @@ class Subscription extends CommonObject
public $datem; // Date modification
public $dateh; // Subscription start date (date subscription)
public $datef; // Subscription end date
+
+ /**
+ * @var int ID
+ */
public $fk_adherent;
+
public $amount;
+
+ /**
+ * @var int ID
+ */
public $fk_bank;
diff --git a/htdocs/admin/prelevement.php b/htdocs/admin/prelevement.php
index c40eca7380e..cdfcd451f2c 100644
--- a/htdocs/admin/prelevement.php
+++ b/htdocs/admin/prelevement.php
@@ -465,7 +465,6 @@ if (! empty($conf->global->MAIN_MODULE_NOTIFICATION))
{
$num = $db->num_rows($resql);
$i = 0;
- $var = false;
while ($i < $num)
{
$obj = $db->fetch_object($resql);
@@ -511,7 +510,6 @@ if (! empty($conf->global->MAIN_MODULE_NOTIFICATION))
{
$num = $db->num_rows($resql);
$i = 0;
- $var = false;
while ($i < $num)
{
$obj = $db->fetch_object($resql);
diff --git a/htdocs/asset/class/asset.class.php b/htdocs/asset/class/asset.class.php
index 8aee71b4926..8eeacdc1964 100644
--- a/htdocs/asset/class/asset.class.php
+++ b/htdocs/asset/class/asset.class.php
@@ -106,6 +106,9 @@ class Asset extends CommonObject
*/
public $ref;
+ /**
+ * @var int Entity
+ */
public $entity;
/**
@@ -129,9 +132,22 @@ class Asset extends CommonObject
public $note_private;
public $date_creation;
public $tms;
+
+ /**
+ * @var int ID
+ */
public $fk_user_creat;
+
+ /**
+ * @var int ID
+ */
public $fk_user_modif;
+
public $import_key;
+
+ /**
+ * @var int Status
+ */
public $status;
// If this object has a subtable with lines
diff --git a/htdocs/asset/class/asset_type.class.php b/htdocs/asset/class/asset_type.class.php
index f1c6f9d771b..8eb915f95eb 100644
--- a/htdocs/asset/class/asset_type.class.php
+++ b/htdocs/asset/class/asset_type.class.php
@@ -44,7 +44,11 @@ class AssetType extends CommonObject
*/
public $picto = 'group';
- public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+ /**
+ * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+ * @var int
+ */
+ public $ismultientitymanaged = 1;
/**
* @var string Asset type label
diff --git a/htdocs/bookmarks/class/bookmark.class.php b/htdocs/bookmarks/class/bookmark.class.php
index b7846cd0864..5422e7d7190 100644
--- a/htdocs/bookmarks/class/bookmark.class.php
+++ b/htdocs/bookmarks/class/bookmark.class.php
@@ -29,21 +29,25 @@
class Bookmark extends CommonObject
{
/**
- * @var string ID to identify managed object
- */
- public $element='bookmark';
+ * @var string ID to identify managed object
+ */
+ public $element='bookmark';
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='bookmark';
- public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+ /**
+ * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+ * @var int
+ */
+ public $ismultientitymanaged = 1;
/**
- * @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
- */
- public $picto = 'bookmark';
+ * @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
+ */
+ public $picto = 'bookmark';
/**
* @var DoliDB Database handler.
@@ -56,15 +60,20 @@ class Bookmark extends CommonObject
public $id;
/**
- * @var int User ID
- */
- public $fk_user;
+ * @var int User ID
+ */
+ public $fk_user;
public $datec;
+
public $url;
+
public $target; // 0=replace, 1=new window
+
public $title;
+
public $position;
+
public $favicon;
diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php
index 8f09710854f..15cb254ed7d 100644
--- a/htdocs/categories/class/categorie.class.php
+++ b/htdocs/categories/class/categorie.class.php
@@ -161,6 +161,9 @@ class Categorie extends CommonObject
*/
public $table_element='categorie';
+ /**
+ * @var int ID
+ */
public $fk_parent;
/**
diff --git a/htdocs/comm/action/class/actioncommreminder.class.php b/htdocs/comm/action/class/actioncommreminder.class.php
index 6c9632d83e5..6631d0e375d 100644
--- a/htdocs/comm/action/class/actioncommreminder.class.php
+++ b/htdocs/comm/action/class/actioncommreminder.class.php
@@ -81,7 +81,12 @@ class ActionCommReminder extends CommonObject
'offsetunit' => array('type'=>'varchar(1)', 'label'=>'OffsetUnit', 'visible'=>1, 'enabled'=>1, 'position'=>57, 'notnull'=>1, 'comment'=>"m, h, d, w",),
'status' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>1000, 'notnull'=>1, 'default'=>0, 'index'=>0, 'arrayofkeyval'=>array('0'=>'ToDo', '1'=>'Done')),
);
+
+ /**
+ * @var int ID
+ */
public $rowid;
+
public $dateremind;
public $typeremind;
@@ -92,7 +97,12 @@ class ActionCommReminder extends CommonObject
public $offsetvalue;
public $offsetunit;
+
+ /**
+ * @var int Status
+ */
public $status;
+
// END MODULEBUILDER PROPERTIES
diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php
index b6e02861c9b..4ffa4298d20 100644
--- a/htdocs/comm/action/index.php
+++ b/htdocs/comm/action/index.php
@@ -1596,13 +1596,13 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa
$cachecontacts[$event->contact->id]=$contact;
}
else $contact=$cachecontacts[$event->contact->id];
- if ($linerelatedto) $linerelatedto.=' / ';
+ if ($linerelatedto) $linerelatedto.=' ';
if (! empty($contact->id)) $linerelatedto.=$contact->getNomUrl(1,'',0);
}
if (! empty($event->fk_element) && $event->fk_element > 0 && ! empty($event->elementtype) && ! empty($conf->global->AGENDA_SHOW_LINKED_OBJECT))
{
include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
- if ($linerelatedto) $linerelatedto.=' / ';
+ if ($linerelatedto) $linerelatedto.='
';
$linerelatedto.=dolGetElementUrl($event->fk_element,$event->elementtype,1);
}
if ($linerelatedto) print '
'.$linerelatedto;
diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php
index efc968f3e06..16a19d1b41f 100644
--- a/htdocs/comm/propal/class/propal.class.php
+++ b/htdocs/comm/propal/class/propal.class.php
@@ -168,7 +168,12 @@ class Propal extends CommonObject
public $remise = 0;
public $remise_percent = 0;
public $remise_absolue = 0;
+
+ /**
+ * @var int ID
+ */
public $fk_address;
+
public $address_type;
public $address;
public $availability_id;
@@ -191,7 +196,11 @@ class Propal extends CommonObject
public $specimen;
// Multicurrency
+ /**
+ * @var int ID
+ */
public $fk_multicurrency;
+
public $multicurrency_code;
public $multicurrency_tx;
public $multicurrency_total_ht;
diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php
index 39b0f0db2ee..c588830d83d 100644
--- a/htdocs/commande/class/commande.class.php
+++ b/htdocs/commande/class/commande.class.php
@@ -111,6 +111,9 @@ class Commande extends CommonOrder
public $brouillon;
public $cond_reglement_code;
+ /**
+ * @var int ID
+ */
public $fk_account;
/**
@@ -160,7 +163,12 @@ class Commande extends CommonOrder
public $date_commande;
public $date_livraison; // Date expected of shipment (date starting shipment, not the reception that occurs some days after)
+
+ /**
+ * @var int ID
+ */
public $fk_remise_except;
+
public $remise_percent;
public $remise_absolue;
public $info_bits;
@@ -180,7 +188,11 @@ class Commande extends CommonOrder
public $lines = array();
// Multicurrency
+ /**
+ * @var int ID
+ */
public $fk_multicurrency;
+
public $multicurrency_code;
public $multicurrency_tx;
public $multicurrency_total_ht;
diff --git a/htdocs/compta/deplacement/class/deplacement.class.php b/htdocs/compta/deplacement/class/deplacement.class.php
index 403988052bd..cf08960d99e 100644
--- a/htdocs/compta/deplacement/class/deplacement.class.php
+++ b/htdocs/compta/deplacement/class/deplacement.class.php
@@ -51,7 +51,11 @@ class Deplacement extends CommonObject
*/
public $fk_element = '';
- public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+ /**
+ * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
+ * @var int
+ */
+ public $ismultientitymanaged = 0;
public $datec; // Creation date
public $dated;
diff --git a/htdocs/compta/facture/class/facture-rec.class.php b/htdocs/compta/facture/class/facture-rec.class.php
index 1c97b82d926..ad33432484f 100644
--- a/htdocs/compta/facture/class/facture-rec.class.php
+++ b/htdocs/compta/facture/class/facture-rec.class.php
@@ -64,7 +64,11 @@ class FactureRec extends CommonInvoice
*/
public $picto='bill';
+ /**
+ * @var int Entity
+ */
public $entity;
+
public $number;
public $date;
public $amount;
diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php
index ea43c270b5f..eec0c640b67 100644
--- a/htdocs/compta/index.php
+++ b/htdocs/compta/index.php
@@ -162,7 +162,6 @@ if (! empty($conf->facture->enabled) && $user->rights->facture->lire)
if ( $resql )
{
- $var = false;
$num = $db->num_rows($resql);
print '
| ".dol_print_date($db->jdate($obj->da),"day")." | "; + print '|
| '.dol_print_date($db->jdate($obj->da),"day").' | '; print ''.$obj->libelle.' '.$obj->label.' | ' . $langs->trans("Date") . ' | '; print "\n"; - $var = false; - while ( $i < $num ) { $objp = $db->fetch_object($resql); @@ -869,7 +866,6 @@ if ($id > 0 || ! empty($ref)) { print "\n"; $i ++; - $var = ! $var; } $db->free($resql); diff --git a/htdocs/holiday/class/holiday.class.php b/htdocs/holiday/class/holiday.class.php index 5107ffb09ab..fe90f85b6a4 100644 --- a/htdocs/holiday/class/holiday.class.php +++ b/htdocs/holiday/class/holiday.class.php @@ -42,8 +42,17 @@ class Holiday extends CommonObject */ public $table_element='holiday'; - public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe + /** + * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe + * @var int + */ + public $ismultientitymanaged = 0; + + /** + * @var int Field with ID of parent key if this field has a parent + */ public $fk_element = 'fk_holiday'; + public $picto = 'holiday'; /** diff --git a/htdocs/hrm/class/establishment.class.php b/htdocs/hrm/class/establishment.class.php index 457fca3ac21..4153972d27c 100644 --- a/htdocs/hrm/class/establishment.class.php +++ b/htdocs/hrm/class/establishment.class.php @@ -49,7 +49,12 @@ class Establishment extends CommonObject */ public $fk_element = 'fk_establishment'; - public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe + /** + * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe + * @var int + */ + public $ismultientitymanaged = 1; + public $picto='building'; /** @@ -68,10 +73,19 @@ class Establishment extends CommonObject public $rowid; public $name; + + /** + * @var string Address + */ public $address; + public $zip; public $town; - public $status; // 0=open, 1=closed + + /** + * @var int Status 0=open, 1=closed + */ + public $status; /** * @var int Entity diff --git a/htdocs/install/mysql/tables/llx_accounting_bookkeeping.sql b/htdocs/install/mysql/tables/llx_accounting_bookkeeping.sql index 4169b858536..af6cd66826d 100644 --- a/htdocs/install/mysql/tables/llx_accounting_bookkeeping.sql +++ b/htdocs/install/mysql/tables/llx_accounting_bookkeeping.sql @@ -22,8 +22,8 @@ CREATE TABLE llx_accounting_bookkeeping rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY, entity integer DEFAULT 1 NOT NULL, -- | multi company id doc_date date NOT NULL, -- FEC:PieceDate - doc_type varchar(30) NOT NULL, -- FEC:PieceRef | facture_client/reglement_client/facture_fournisseur/reglement_fournisseur - doc_ref varchar(300) NOT NULL, -- | facture_client/reglement_client/... reference number + doc_type varchar(30) NOT NULL, -- | facture_client/reglement_client/facture_fournisseur/reglement_fournisseur + doc_ref varchar(300) NOT NULL, -- FEC:PieceRef | facture_client/reglement_client/... reference number fk_doc integer NOT NULL, -- | facture_client/reglement_client/... rowid fk_docdet integer NOT NULL, -- | facture_client/reglement_client/... line rowid thirdparty_code varchar(32), -- Third party code (customer or supplier) when record is saved (may help debug) diff --git a/htdocs/langs/ar_SA/languages.lang b/htdocs/langs/ar_SA/languages.lang index 7b27cc35010..4519ef6078d 100644 --- a/htdocs/langs/ar_SA/languages.lang +++ b/htdocs/langs/ar_SA/languages.lang @@ -1,6 +1,6 @@ # Dolibarr language file - Source file is en_US - languages Language_ar_AR=العربية -Language_ar_EG=Arabic (Egypt) +Language_ar_EG=العربيه مصر Language_ar_SA=العربية Language_bn_BD=بنغالي Language_bg_BG=البلغارية @@ -86,3 +86,4 @@ Language_uz_UZ=الأوزبكي Language_vi_VN=الفيتنامية Language_zh_CN=الصينية Language_zh_TW=الصينية (التقليدية) +Language_bh_MY=الماليزية diff --git a/htdocs/langs/en_US/accountancy.lang b/htdocs/langs/en_US/accountancy.lang index 57e9b5aa894..83608fb4be8 100644 --- a/htdocs/langs/en_US/accountancy.lang +++ b/htdocs/langs/en_US/accountancy.lang @@ -267,6 +267,7 @@ Modelcsv_ebp=Export towards EBP Modelcsv_cogilog=Export towards Cogilog Modelcsv_agiris=Export towards Agiris Modelcsv_configurable=Export Configurable +Modelcsv_FEC=Export FEC (Art. L47 A) (Test) ChartofaccountsId=Chart of accounts Id ## Tools - Init accounting account on product / service diff --git a/htdocs/langs/en_US/languages.lang b/htdocs/langs/en_US/languages.lang index a062883d667..99c9b6486e0 100644 --- a/htdocs/langs/en_US/languages.lang +++ b/htdocs/langs/en_US/languages.lang @@ -86,3 +86,4 @@ Language_uz_UZ=Uzbek Language_vi_VN=Vietnamese Language_zh_CN=Chinese Language_zh_TW=Chinese (Traditional) +Language_bh_MY=Malay diff --git a/htdocs/mailmanspip/class/mailmanspip.class.php b/htdocs/mailmanspip/class/mailmanspip.class.php index 139183e0375..de075eb2dc5 100644 --- a/htdocs/mailmanspip/class/mailmanspip.class.php +++ b/htdocs/mailmanspip/class/mailmanspip.class.php @@ -48,10 +48,10 @@ class MailmanSpip */ public $error=''; - var $mladded_ok; - var $mladded_ko; - var $mlremoved_ok; - var $mlremoved_ko; + public $mladded_ok; + public $mladded_ko; + public $mlremoved_ok; + public $mlremoved_ko; /** diff --git a/htdocs/modulebuilder/template/class/myobject.class.php b/htdocs/modulebuilder/template/class/myobject.class.php index 0439f78f3a5..b04dd735e49 100644 --- a/htdocs/modulebuilder/template/class/myobject.class.php +++ b/htdocs/modulebuilder/template/class/myobject.class.php @@ -122,7 +122,12 @@ class MyObject extends CommonObject public $label; public $amount; + + /** + * @var int Status + */ public $status; + public $date_creation; public $tms; public $fk_user_creat; diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 12ddfb9e6d7..050d756ad82 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -59,7 +59,12 @@ class Product extends CommonObject public $fk_element='fk_product'; protected $childtables=array('supplier_proposaldet', 'propaldet','commandedet','facturedet','contratdet','facture_fourn_det','commande_fournisseurdet'); // To test if we can delete object - public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe + + /** + * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe + * @var int + */ + public $ismultientitymanaged = 1; /** * {@inheritdoc} diff --git a/htdocs/product/class/productcustomerprice.class.php b/htdocs/product/class/productcustomerprice.class.php index 7f9e5a0b383..5aaa2c079ea 100644 --- a/htdocs/product/class/productcustomerprice.class.php +++ b/htdocs/product/class/productcustomerprice.class.php @@ -38,7 +38,11 @@ class Productcustomerprice extends CommonObject */ public $table_element = 'product_customer_price'; + /** + * @var int Entity + */ public $entity; + public $datec = ''; public $tms = ''; public $fk_product; @@ -976,7 +980,11 @@ class PriceByCustomerLine */ public $id; + /** + * @var int Entity + */ public $entity; + public $datec = ''; public $tms = ''; public $fk_product; diff --git a/htdocs/product/inventory/class/inventory.class.php b/htdocs/product/inventory/class/inventory.class.php index 5b0bbb99a65..e1be589ac88 100644 --- a/htdocs/product/inventory/class/inventory.class.php +++ b/htdocs/product/inventory/class/inventory.class.php @@ -117,7 +117,12 @@ class Inventory extends CommonObject public $fk_warehouse; public $date_inventory; public $title; + + /** + * @var int Status + */ public $status; + public $date_creation; public $date_validation; public $tms; diff --git a/htdocs/product/stock/class/entrepot.class.php b/htdocs/product/stock/class/entrepot.class.php index 59e3f2fb057..575aa2a705d 100644 --- a/htdocs/product/stock/class/entrepot.class.php +++ b/htdocs/product/stock/class/entrepot.class.php @@ -69,7 +69,12 @@ class Entrepot extends CommonObject public $statut; public $lieu; + + /** + * @var string Address + */ public $address; + //! Code Postal public $zip; public $town; diff --git a/htdocs/product/stock/class/productlot.class.php b/htdocs/product/stock/class/productlot.class.php index 7eb3593de35..d7b77cd83ee 100644 --- a/htdocs/product/stock/class/productlot.class.php +++ b/htdocs/product/stock/class/productlot.class.php @@ -47,6 +47,10 @@ class Productlot extends CommonObject public $picto='barcode'; + /** + * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe + * @var int + */ public $ismultientitymanaged = 1; /** diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index 9af52721787..a8b34e9c57d 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -53,7 +53,12 @@ class Project extends CommonObject */ public $fk_element = 'fk_projet'; - public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe + /** + * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe + * @var int + */ + public $ismultientitymanaged = 1; + public $picto = 'projectpub'; /** diff --git a/htdocs/resource/class/html.formresource.class.php b/htdocs/resource/class/html.formresource.class.php index f541a7728cb..c118643aa7d 100644 --- a/htdocs/resource/class/html.formresource.class.php +++ b/htdocs/resource/class/html.formresource.class.php @@ -38,8 +38,9 @@ class FormResource */ public $db; - var $substit=array(); - var $param=array(); + public $substit=array(); + + public $param=array(); /** * @var string Error code (or message) diff --git a/htdocs/societe/class/address.class.php b/htdocs/societe/class/address.class.php index 37a350b81ff..63b23d42f9e 100644 --- a/htdocs/societe/class/address.class.php +++ b/htdocs/societe/class/address.class.php @@ -47,7 +47,12 @@ class Address public $socid; public $name; + + /** + * @var string Address + */ public $address; + public $zip; public $town; public $country_id; @@ -522,7 +527,12 @@ class AddressLine public $label; public $name; + + /** + * @var string Address + */ public $address; + public $zip; public $town; public $country_id; diff --git a/htdocs/societe/class/companypaymentmode.class.php b/htdocs/societe/class/companypaymentmode.class.php index f5ef70c2407..83303a3a41d 100644 --- a/htdocs/societe/class/companypaymentmode.class.php +++ b/htdocs/societe/class/companypaymentmode.class.php @@ -127,7 +127,7 @@ class CompanyPaymentMode extends CommonObject /** * @var int Thirdparty ID */ - public $fk_soc; + public $fk_soc; /** * @var string company payment mode label @@ -161,7 +161,12 @@ class CompanyPaymentMode extends CommonObject public $preapproval_key; public $total_amount_of_all_payments; public $stripe_card_ref; + + /** + * @var int Status + */ public $status; + public $starting_date; public $ending_date; public $datec; diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 69f53547d32..dbc51c93816 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -66,6 +66,7 @@ class Societe extends CommonObject * @var int */ public $ismultientitymanaged = 1; + /** * 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user * @var integer @@ -119,7 +120,12 @@ class Societe extends CommonObject public $name_alias; public $particulier; + + /** + * @var string Address + */ public $address; + public $zip; public $town; diff --git a/htdocs/societe/class/societeaccount.class.php b/htdocs/societe/class/societeaccount.class.php index 422dd4ddb8e..bcb09675c3d 100644 --- a/htdocs/societe/class/societeaccount.class.php +++ b/htdocs/societe/class/societeaccount.class.php @@ -99,6 +99,10 @@ class SocieteAccount extends CommonObject 'import_key' => array('type'=>'varchar(14)', 'label'=>'ImportId', 'visible'=>-2, 'enabled'=>1, 'position'=>1000, 'notnull'=>-1, 'index'=>1,), 'status' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>1000, 'notnull'=>1, 'index'=>1, 'default'=>1, 'arrayofkeyval'=>array('1'=>'Active','0'=>'Disabled')), ); + + /** + * @var int ID + */ public $rowid; /** @@ -126,7 +130,12 @@ class SocieteAccount extends CommonObject public $fk_user_creat; public $fk_user_modif; public $import_key; + + /** + * @var int Status + */ public $status; + // END MODULEBUILDER PROPERTIES diff --git a/htdocs/stripe/class/stripe.class.php b/htdocs/stripe/class/stripe.class.php index 901997cef3b..3c07c9ae5f6 100644 --- a/htdocs/stripe/class/stripe.class.php +++ b/htdocs/stripe/class/stripe.class.php @@ -36,7 +36,7 @@ class Stripe extends CommonObject /** * @var int Thirdparty ID */ - public $fk_soc; + public $fk_soc; public $fk_key; diff --git a/htdocs/supplier_proposal/class/supplier_proposal.class.php b/htdocs/supplier_proposal/class/supplier_proposal.class.php index ecd940fea96..688f6aa1276 100644 --- a/htdocs/supplier_proposal/class/supplier_proposal.class.php +++ b/htdocs/supplier_proposal/class/supplier_proposal.class.php @@ -60,6 +60,9 @@ class SupplierProposal extends CommonObject */ public $table_element_line='supplier_proposaldet'; + /** + * @var int Field with ID of parent key if this field has a parent + */ public $fk_element='fk_supplier_proposal'; public $picto='propal'; diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 9020cd3a4bc..f3fa431daa0 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -50,8 +50,16 @@ class User extends CommonObject */ public $table_element='user'; + /** + * @var int Field with ID of parent key if this field has a parent + */ public $fk_element='fk_user'; - public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe + + /** + * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe + * @var int + */ + public $ismultientitymanaged = 1; public $id=0; public $statut; @@ -64,7 +72,12 @@ class User extends CommonObject public $skype; public $job; // job position public $signature; + + /** + * @var string Address + */ public $address; + public $zip; public $town; public $state_id; // The state/department diff --git a/htdocs/user/class/usergroup.class.php b/htdocs/user/class/usergroup.class.php index e3ada6efcac..6f3e333f6f5 100644 --- a/htdocs/user/class/usergroup.class.php +++ b/htdocs/user/class/usergroup.class.php @@ -45,7 +45,11 @@ class UserGroup extends CommonObject */ public $table_element='usergroup'; - public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe + /** + * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe + * @var int + */ + public $ismultientitymanaged = 1; public $picto='group'; diff --git a/htdocs/variants/card.php b/htdocs/variants/card.php index be73db1fff0..8cb4e13b33e 100644 --- a/htdocs/variants/card.php +++ b/htdocs/variants/card.php @@ -133,7 +133,6 @@ if ($confirm == 'yes') { $langs->load('products'); $title = $langs->trans('ProductAttributeName', dol_htmlentities($object->label)); -$var = false; llxHeader('', $title); diff --git a/htdocs/variants/combinations.php b/htdocs/variants/combinations.php index 0d1ea7af03b..f5c0d813995 100644 --- a/htdocs/variants/combinations.php +++ b/htdocs/variants/combinations.php @@ -27,7 +27,6 @@ require_once DOL_DOCUMENT_ROOT.'/variants/class/ProductCombination2ValuePair.cla $langs->loadLangs(array("products", "other")); -$var = false; $id = GETPOST('id', 'int'); $valueid = GETPOST('valueid', 'int'); $ref = GETPOST('ref'); diff --git a/htdocs/website/class/websitepage.class.php b/htdocs/website/class/websitepage.class.php index 97aba5e6ac2..4277a03167d 100644 --- a/htdocs/website/class/websitepage.class.php +++ b/htdocs/website/class/websitepage.class.php @@ -64,7 +64,12 @@ class WebsitePage extends CommonObject public $htmlheader; public $content; public $grabbed_from; + + /** + * @var int Status + */ public $status; + public $date_creation; public $date_modification;