diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 40004344bd6..4c685cbd122 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -3346,7 +3346,7 @@ class Propal extends CommonObject */ public function initAsSpecimen() { - global $langs; + global $conf, $langs; // Load array of products prodids $num_prods = 0; @@ -3385,6 +3385,10 @@ class Propal extends CommonObject $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; @@ -3428,6 +3432,7 @@ class Propal extends CommonObject $xnbp++; } +// var_dump($this->lines);exit; } // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 55eb9a60b96..337a6696b3c 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -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; diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index 58cc8099ff5..421e6b2e7d6 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -4046,7 +4046,7 @@ class Facture extends CommonInvoice */ public function initAsSpecimen($option = '') { - global $langs; + global $conf, $langs; $now = dol_now(); $arraynow = dol_getdate($now); @@ -4088,9 +4088,14 @@ class Facture extends CommonInvoice $this->date_lim_reglement = $this->calculate_date_lim_reglement(); $this->mode_reglement_id = 0; // Not forced to show payment mode CHQ + VIR $this->mode_reglement_code = ''; // Not forced to show payment mode CHQ + VIR + $this->note_public = 'This is a comment (public)'; $this->note_private = 'This is a comment (private)'; $this->note = 'This is a comment (private)'; + + $this->multicurrency_tx = 1; + $this->multicurrency_code = $conf->currency; + $this->fk_incoterms = 0; $this->location_incoterms = ''; diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index e03b050d693..3183b66dc2c 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -2691,8 +2691,13 @@ class CommandeFournisseur extends CommonOrder $this->date_lim_reglement = $this->date + 3600 * 24 * 30; $this->cond_reglement_code = 'RECEP'; $this->mode_reglement_code = 'CHQ'; + $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; + $this->statut = 0; // Lines diff --git a/htdocs/fourn/class/fournisseur.facture.class.php b/htdocs/fourn/class/fournisseur.facture.class.php index 587f9fbb226..f3d61c95b8b 100644 --- a/htdocs/fourn/class/fournisseur.facture.class.php +++ b/htdocs/fourn/class/fournisseur.facture.class.php @@ -2437,10 +2437,14 @@ class FactureFournisseur extends CommonInvoice $this->date_lim_reglement = $this->date + 3600 * 24 * 30; $this->cond_reglement_code = 'RECEP'; $this->mode_reglement_code = 'CHQ'; + $this->note_public = 'This is a comment (public)'; $this->note_private = 'This is a comment (private)'; - if (empty($option) || $option != 'nolines') + $this->multicurrency_tx = 1; + $this->multicurrency_code = $conf->currency; + + if (empty($option) || $option != 'nolines') { // Lines $nbp = 5; diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 9cd2d3b3f1e..8db158323a0 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -519,7 +519,7 @@ Module25Desc=Sales order management Module30Name=Invoices Module30Desc=Management of invoices and credit notes for customers. Management of invoices and credit notes for suppliers Module40Name=Vendors -Module40Desc=Vendors and purchase management (purchase orders and billing) +Module40Desc=Vendors and purchase management (purchase orders and billing of supplier invoices) Module42Name=Debug Logs Module42Desc=Logging facilities (file, syslog, ...). Such logs are for technical/debug purposes. Module49Name=Editors