|
@@ -15,7 +15,7 @@
|
|
|
* Copyright (C) 2013 Cedric Gross <c.gross@kreiz-it.fr>
|
|
|
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
|
|
|
* Copyright (C) 2016-2022 Ferran Marcet <fmarcet@2byte.es>
|
|
|
- * Copyright (C) 2018 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
|
|
+ * Copyright (C) 2018-2022 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
|
|
* Copyright (C) 2018 Nicolas ZABOURI <info@inovea-conseil.com>
|
|
|
* Copyright (C) 2022 Sylvain Legrand <contact@infras.fr>
|
|
|
*
|
|
@@ -137,7 +137,8 @@ class Facture extends CommonInvoice
|
|
|
/**
|
|
|
* @var string customer ref
|
|
|
*/
|
|
|
- public $ref_client;
|
|
|
+ public $ref_client; // deprecated; use ref_customer instead
|
|
|
+ public $ref_customer;
|
|
|
|
|
|
/**
|
|
|
* @var int Ref Int
|
|
@@ -328,8 +329,8 @@ class Facture extends CommonInvoice
|
|
|
'fk_currency' =>array('type'=>'varchar(3)', 'label'=>'CurrencyCode', 'enabled'=>1, 'visible'=>-1, 'position'=>185),
|
|
|
'fk_cond_reglement' =>array('type'=>'integer', 'label'=>'PaymentTerm', 'enabled'=>1, 'visible'=>-1, 'notnull'=>1, 'position'=>190),
|
|
|
'fk_mode_reglement' =>array('type'=>'integer', 'label'=>'PaymentMode', 'enabled'=>1, 'visible'=>-1, 'position'=>195),
|
|
|
- 'note_private' =>array('type'=>'text', 'label'=>'NotePublic', 'enabled'=>1, 'visible'=>0, 'position'=>205),
|
|
|
- 'note_public' =>array('type'=>'text', 'label'=>'NotePrivate', 'enabled'=>1, 'visible'=>0, 'position'=>210),
|
|
|
+ 'note_private' =>array('type'=>'text', 'label'=>'NotePrivate', 'enabled'=>1, 'visible'=>0, 'position'=>205),
|
|
|
+ 'note_public' =>array('type'=>'text', 'label'=>'NotePublic', 'enabled'=>1, 'visible'=>0, 'position'=>210),
|
|
|
'model_pdf' =>array('type'=>'varchar(255)', 'label'=>'Model pdf', 'enabled'=>1, 'visible'=>0, 'position'=>215),
|
|
|
'extraparams' =>array('type'=>'varchar(255)', 'label'=>'Extraparams', 'enabled'=>1, 'visible'=>-1, 'position'=>225),
|
|
|
'situation_cycle_ref' =>array('type'=>'smallint(6)', 'label'=>'Situation cycle ref', 'enabled'=>'$conf->global->INVOICE_USE_SITUATION', 'visible'=>-1, 'position'=>230),
|
|
@@ -1684,8 +1685,9 @@ class Facture extends CommonInvoice
|
|
|
$this->id = $obj->rowid;
|
|
|
$this->entity = $obj->entity;
|
|
|
|
|
|
- $this->ref = $obj->ref;
|
|
|
- $this->ref_client = $obj->ref_client;
|
|
|
+ $this->ref = $obj->ref;
|
|
|
+ $this->ref_client = $obj->ref_client;
|
|
|
+ $this->ref_customer = $obj->ref_client;
|
|
|
$this->ref_ext = $obj->ref_ext;
|
|
|
$this->type = $obj->type;
|
|
|
$this->date = $this->db->jdate($obj->df);
|