Fix init of specimen

This commit is contained in:
Laurent Destailleur
2020-01-21 00:16:11 +01:00
parent d2cf4c55ee
commit 2d07a08e55
6 changed files with 29 additions and 5 deletions

View File

@@ -3718,7 +3718,7 @@ class Commande extends CommonOrder
*/
public function initAsSpecimen()
{
global $langs;
global $conf, $langs;
dol_syslog(get_class($this)."::initAsSpecimen");
@@ -3752,8 +3752,13 @@ class Commande extends CommonOrder
$this->mode_reglement_code = 'CHQ';
$this->availability_code = 'DSP';
$this->demand_reason_code = 'SRC_00';
$this->note_public = 'This is a comment (public)';
$this->note_private = 'This is a comment (private)';
$this->multicurrency_tx = 1;
$this->multicurrency_code = $conf->currency;
// Lines
$nbp = 5;
$xnbp = 0;