Fix init of specimen
This commit is contained in:
parent
d2cf4c55ee
commit
2d07a08e55
@ -3346,7 +3346,7 @@ class Propal extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public function initAsSpecimen()
|
public function initAsSpecimen()
|
||||||
{
|
{
|
||||||
global $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
// Load array of products prodids
|
// Load array of products prodids
|
||||||
$num_prods = 0;
|
$num_prods = 0;
|
||||||
@ -3385,6 +3385,10 @@ class Propal extends CommonObject
|
|||||||
$this->demand_reason_code = 'SRC_00';
|
$this->demand_reason_code = 'SRC_00';
|
||||||
$this->note_public = 'This is a comment (public)';
|
$this->note_public = 'This is a comment (public)';
|
||||||
$this->note_private = 'This is a comment (private)';
|
$this->note_private = 'This is a comment (private)';
|
||||||
|
|
||||||
|
$this->multicurrency_tx = 1;
|
||||||
|
$this->multicurrency_code = $conf->currency;
|
||||||
|
|
||||||
// Lines
|
// Lines
|
||||||
$nbp = 5;
|
$nbp = 5;
|
||||||
$xnbp = 0;
|
$xnbp = 0;
|
||||||
@ -3428,6 +3432,7 @@ class Propal extends CommonObject
|
|||||||
|
|
||||||
$xnbp++;
|
$xnbp++;
|
||||||
}
|
}
|
||||||
|
// var_dump($this->lines);exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||||
|
|||||||
@ -3718,7 +3718,7 @@ class Commande extends CommonOrder
|
|||||||
*/
|
*/
|
||||||
public function initAsSpecimen()
|
public function initAsSpecimen()
|
||||||
{
|
{
|
||||||
global $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::initAsSpecimen");
|
dol_syslog(get_class($this)."::initAsSpecimen");
|
||||||
|
|
||||||
@ -3752,8 +3752,13 @@ class Commande extends CommonOrder
|
|||||||
$this->mode_reglement_code = 'CHQ';
|
$this->mode_reglement_code = 'CHQ';
|
||||||
$this->availability_code = 'DSP';
|
$this->availability_code = 'DSP';
|
||||||
$this->demand_reason_code = 'SRC_00';
|
$this->demand_reason_code = 'SRC_00';
|
||||||
|
|
||||||
$this->note_public = 'This is a comment (public)';
|
$this->note_public = 'This is a comment (public)';
|
||||||
$this->note_private = 'This is a comment (private)';
|
$this->note_private = 'This is a comment (private)';
|
||||||
|
|
||||||
|
$this->multicurrency_tx = 1;
|
||||||
|
$this->multicurrency_code = $conf->currency;
|
||||||
|
|
||||||
// Lines
|
// Lines
|
||||||
$nbp = 5;
|
$nbp = 5;
|
||||||
$xnbp = 0;
|
$xnbp = 0;
|
||||||
|
|||||||
@ -4046,7 +4046,7 @@ class Facture extends CommonInvoice
|
|||||||
*/
|
*/
|
||||||
public function initAsSpecimen($option = '')
|
public function initAsSpecimen($option = '')
|
||||||
{
|
{
|
||||||
global $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
$now = dol_now();
|
$now = dol_now();
|
||||||
$arraynow = dol_getdate($now);
|
$arraynow = dol_getdate($now);
|
||||||
@ -4088,9 +4088,14 @@ class Facture extends CommonInvoice
|
|||||||
$this->date_lim_reglement = $this->calculate_date_lim_reglement();
|
$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_id = 0; // Not forced to show payment mode CHQ + VIR
|
||||||
$this->mode_reglement_code = ''; // 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_public = 'This is a comment (public)';
|
||||||
$this->note_private = 'This is a comment (private)';
|
$this->note_private = 'This is a comment (private)';
|
||||||
$this->note = '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->fk_incoterms = 0;
|
||||||
$this->location_incoterms = '';
|
$this->location_incoterms = '';
|
||||||
|
|
||||||
|
|||||||
@ -2691,8 +2691,13 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
$this->date_lim_reglement = $this->date + 3600 * 24 * 30;
|
$this->date_lim_reglement = $this->date + 3600 * 24 * 30;
|
||||||
$this->cond_reglement_code = 'RECEP';
|
$this->cond_reglement_code = 'RECEP';
|
||||||
$this->mode_reglement_code = 'CHQ';
|
$this->mode_reglement_code = 'CHQ';
|
||||||
|
|
||||||
$this->note_public = 'This is a comment (public)';
|
$this->note_public = 'This is a comment (public)';
|
||||||
$this->note_private = 'This is a comment (private)';
|
$this->note_private = 'This is a comment (private)';
|
||||||
|
|
||||||
|
$this->multicurrency_tx = 1;
|
||||||
|
$this->multicurrency_code = $conf->currency;
|
||||||
|
|
||||||
$this->statut = 0;
|
$this->statut = 0;
|
||||||
|
|
||||||
// Lines
|
// Lines
|
||||||
|
|||||||
@ -2437,9 +2437,13 @@ class FactureFournisseur extends CommonInvoice
|
|||||||
$this->date_lim_reglement = $this->date + 3600 * 24 * 30;
|
$this->date_lim_reglement = $this->date + 3600 * 24 * 30;
|
||||||
$this->cond_reglement_code = 'RECEP';
|
$this->cond_reglement_code = 'RECEP';
|
||||||
$this->mode_reglement_code = 'CHQ';
|
$this->mode_reglement_code = 'CHQ';
|
||||||
|
|
||||||
$this->note_public = 'This is a comment (public)';
|
$this->note_public = 'This is a comment (public)';
|
||||||
$this->note_private = 'This is a comment (private)';
|
$this->note_private = 'This is a comment (private)';
|
||||||
|
|
||||||
|
$this->multicurrency_tx = 1;
|
||||||
|
$this->multicurrency_code = $conf->currency;
|
||||||
|
|
||||||
if (empty($option) || $option != 'nolines')
|
if (empty($option) || $option != 'nolines')
|
||||||
{
|
{
|
||||||
// Lines
|
// Lines
|
||||||
|
|||||||
@ -519,7 +519,7 @@ Module25Desc=Sales order management
|
|||||||
Module30Name=Invoices
|
Module30Name=Invoices
|
||||||
Module30Desc=Management of invoices and credit notes for customers. Management of invoices and credit notes for suppliers
|
Module30Desc=Management of invoices and credit notes for customers. Management of invoices and credit notes for suppliers
|
||||||
Module40Name=Vendors
|
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
|
Module42Name=Debug Logs
|
||||||
Module42Desc=Logging facilities (file, syslog, ...). Such logs are for technical/debug purposes.
|
Module42Desc=Logging facilities (file, syslog, ...). Such logs are for technical/debug purposes.
|
||||||
Module49Name=Editors
|
Module49Name=Editors
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user