Debug v16
This commit is contained in:
parent
99f21246c7
commit
603c7f0c39
@ -564,7 +564,7 @@ class FactureFournisseurRec extends CommonInvoice
|
||||
$sql .= ', f.vat_src_code, f.localtax1, f.localtax2';
|
||||
$sql .= ', f.total_tva, f.total_ht, f.total_ttc';
|
||||
$sql .= ', f.fk_user_author, f.fk_user_modif';
|
||||
$sql .= ', f.fk_projet, f.fk_account';
|
||||
$sql .= ', f.fk_projet as fk_project, f.fk_account';
|
||||
$sql .= ', f.fk_mode_reglement, p.code as mode_reglement_code, p.libelle as mode_reglement_libelle';
|
||||
$sql .= ', f.fk_cond_reglement, c.code as cond_reglement_code, c.libelle as cond_reglement_libelle, c.libelle_facture as cond_reglement_libelle_doc';
|
||||
$sql .= ', f.date_lim_reglement';
|
||||
@ -610,7 +610,7 @@ class FactureFournisseurRec extends CommonInvoice
|
||||
$this->total_ttc = $obj->total_ttc;
|
||||
$this->user_author = $obj->fk_user_author;
|
||||
$this->user_modif = $obj->fk_user_modif;
|
||||
$this->fk_project = $obj->fk_projet;
|
||||
$this->fk_project = $obj->fk_project;
|
||||
$this->fk_account = $obj->fk_account;
|
||||
$this->mode_reglement_id = $obj->fk_mode_reglement;
|
||||
$this->mode_reglement_code = $obj->mode_reglement_code;
|
||||
|
||||
@ -443,7 +443,8 @@ class FactureFournisseur extends CommonInvoice
|
||||
$this->entity = $_facrec->entity; // Invoice created in same entity than template
|
||||
|
||||
// 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_projet = GETPOST('projectid', 'int') > 0 ? ((int) GETPOST('projectid', 'int')) : $_facrec->fk_projet;
|
||||
$this->fk_project = GETPOST('projectid', 'int') > 0 ? ((int) GETPOST('projectid', 'int')) : $_facrec->fk_projet;
|
||||
$this->fk_projet = $this->fk_project;
|
||||
$this->note_public = GETPOST('note_public', 'restricthtml') ? GETPOST('note_public', 'restricthtml') : $_facrec->note_public;
|
||||
$this->note_private = GETPOST('note_private', 'restricthtml') ? GETPOST('note_private', 'restricthtml') : $_facrec->note_private;
|
||||
$this->model_pdf = GETPOST('model', 'alpha') ? GETPOST('model', 'alpha') : $_facrec->model_pdf;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user