Fix warning php8

This commit is contained in:
Laurent Destailleur 2020-11-08 12:34:45 +01:00
parent d04bbe09b7
commit e103503bb1
3 changed files with 5 additions and 3 deletions

View File

@ -1895,8 +1895,6 @@ class FactureLigneRec extends CommonInvoiceLine
*/
public $table_element = 'facturedet_rec';
public $date_start_fill;
public $date_end_fill;
/**

View File

@ -756,7 +756,7 @@ class Facture extends CommonInvoice
$newinvoiceline->origin_id = $this->lines[$i]->id;
// Auto set date of service ?
if ($this->lines[$i]->date_start_fill == 1 && $originaldatewhen) // $originaldatewhen is defined when generating from recurring invoice only
if ($this->lines[$i]->date_start_fill == 1 && $originaldatewhen) // $originaldatewhen is defined when generating from recurring invoice only
{
$newinvoiceline->date_start = $originaldatewhen;
}

View File

@ -941,6 +941,10 @@ abstract class CommonInvoiceLine extends CommonObjectLine
*/
public $info_bits = 0;
public $date_start_fill; // If set to 1, when invoice is created from a template invoice, it will also auto set the field date_start at creation
public $date_end_fill; // If set to 1, when invoice is created from a template invoice, it will also auto set the field date_end at creation
/**
* Constructor
*