Dejarlo igual que develop
This commit is contained in:
parent
c48fc3a2cf
commit
e4984492b3
@ -77,7 +77,6 @@ class FactureRec extends CommonInvoice
|
||||
public $total;
|
||||
public $db_table;
|
||||
public $propalid;
|
||||
public $ref_client;
|
||||
|
||||
public $date_last_gen;
|
||||
public $date_when;
|
||||
@ -168,7 +167,6 @@ class FactureRec extends CommonInvoice
|
||||
$sql.= ", fk_account";
|
||||
$sql.= ", fk_cond_reglement";
|
||||
$sql.= ", fk_mode_reglement";
|
||||
$sql.= ", ref_client";
|
||||
$sql.= ", usenewprice";
|
||||
$sql.= ", frequency";
|
||||
$sql.= ", unit_frequency";
|
||||
@ -197,7 +195,6 @@ class FactureRec extends CommonInvoice
|
||||
$sql.= ", ".(! empty($facsrc->fk_account)?"'".$facsrc->fk_account."'":"null");
|
||||
$sql.= ", ".($facsrc->cond_reglement_id > 0 ? $this->db->escape($facsrc->cond_reglement_id) : "null");
|
||||
$sql.= ", ".($facsrc->mode_reglement_id > 0 ? $this->db->escape($facsrc->mode_reglement_id) : "null");
|
||||
$sql.= ",'".$this->db->escape($this->ref_client)."'";
|
||||
$sql.= ", ".$this->usenewprice;
|
||||
$sql.= ", ".$this->frequency;
|
||||
$sql.= ", '".$this->db->escape($this->unit_frequency)."'";
|
||||
@ -386,7 +383,7 @@ class FactureRec extends CommonInvoice
|
||||
$sql.= ', f.note_private, f.note_public, f.fk_user_author';
|
||||
$sql.= ', f.modelpdf';
|
||||
$sql.= ', f.fk_mode_reglement, f.fk_cond_reglement, f.fk_projet as fk_project';
|
||||
$sql.= ', f.fk_account, f.ref_client';
|
||||
$sql.= ', f.fk_account';
|
||||
$sql.= ', f.frequency, f.unit_frequency, f.date_when, f.date_last_gen, f.nb_gen_done, f.nb_gen_max, f.usenewprice, f.auto_validate';
|
||||
$sql.= ', f.generate_pdf';
|
||||
$sql.= ", f.fk_multicurrency, f.multicurrency_code, f.multicurrency_tx, f.multicurrency_total_ht, f.multicurrency_total_tva, f.multicurrency_total_ttc";
|
||||
@ -1147,7 +1144,6 @@ class FactureRec extends CommonInvoice
|
||||
$facture->brouillon = 1;
|
||||
$facture->date = (empty($facturerec->date_when)?$now:$facturerec->date_when); // We could also use dol_now here but we prefer date_when so invoice has real date when we would like even if we generate later.
|
||||
$facture->socid = $facturerec->socid;
|
||||
$facture->ref_client = $facturerec->ref_client;
|
||||
|
||||
$invoiceidgenerated = $facture->create($user);
|
||||
if ($invoiceidgenerated <= 0)
|
||||
|
||||
@ -372,7 +372,6 @@ class Facture extends CommonInvoice
|
||||
|
||||
$this->socid = $_facrec->socid; // Invoice created on same thirdparty than template
|
||||
$this->entity = $_facrec->entity; // Invoice created in same entity than template
|
||||
$this->ref_client = $_facrec->ref_client;
|
||||
|
||||
// Fields coming from GUI (priority on template). TODO Value of template should be used as default value on GUI so we can use here always value from GUI
|
||||
$this->fk_project = GETPOST('projectid', 'int') > 0 ? ((int) GETPOST('projectid', 'int')) : $_facrec->fk_project;
|
||||
|
||||
@ -29,7 +29,6 @@ create table llx_facture_rec
|
||||
tms timestamp, -- date creation/modification
|
||||
|
||||
suspended integer DEFAULT 0, -- 1=suspended
|
||||
ref_client varchar(255), -- reference for customer
|
||||
|
||||
amount double(24,8) DEFAULT 0 NOT NULL,
|
||||
remise real DEFAULT 0,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user