Skip to content

Commit 6f3084b

Browse files
committed
FIX: warnings when printing start/end date on line tpl
1 parent 8853bfd commit 6f3084b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

htdocs/fourn/class/fournisseur.facture-rec.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -754,8 +754,8 @@ public function fetch_lines()
754754
$line->total_localtax2 = $objp->total_localtax2;
755755
$line->total_ttc = $objp->total_ttc;
756756
$line->product_type = $objp->product_type;
757-
$line->date_start = $objp->date_start;
758-
$line->date_end = $objp->date_end;
757+
$line->date_start = $this->db->jdate($objp->date_start);
758+
$line->date_end = $this->db->jdate($objp->date_end);
759759
$line->info_bits = $objp->info_bits ;
760760
$line->special_code = $objp->special_code;
761761
$line->rang = $objp->rang;
@@ -2122,8 +2122,8 @@ public function fetch($rowid)
21222122
$this->total_localtax2 = $objp->total_localtax2;
21232123
$this->total_ttc = $objp->total_ttc;
21242124
$this->product_type = $objp->product_type;
2125-
$this->date_start = $objp->date_start;
2126-
$this->date_end = $objp->date_end;
2125+
$this->date_start = $this->db->jdate($objp->date_start);
2126+
$this->date_end = $this->db->jdate($objp->date_end);
21272127
$this->info_bits = $objp->info_bits;
21282128
$this->special_code = $objp->special_code;
21292129
$this->rang = $objp->rang;

htdocs/fourn/class/fournisseur.facture.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,8 +1072,8 @@ public function fetch_lines()
10721072
$line->id = $obj->rowid;
10731073
$line->rowid = $obj->rowid;
10741074
$line->description = $obj->description;
1075-
$line->date_start = $obj->date_start;
1076-
$line->date_end = $obj->date_end;
1075+
$line->date_start = $this->db->jdate($obj->date_start);
1076+
$line->date_end = $this->db->jdate($obj->date_end);
10771077

10781078
$line->product_ref = $obj->product_ref;
10791079
$line->ref = $obj->product_ref;
@@ -3657,8 +3657,8 @@ public function fetch($rowid)
36573657
$this->rowid = $obj->rowid;
36583658
$this->fk_facture_fourn = $obj->fk_facture_fourn;
36593659
$this->description = $obj->description;
3660-
$this->date_start = $obj->date_start;
3661-
$this->date_end = $obj->date_end;
3660+
$this->date_start = $this->db->jdate($obj->date_start);
3661+
$this->date_end = $this->db->jdate($obj->date_end);
36623662
$this->product_ref = $obj->product_ref;
36633663
$this->ref_supplier = $obj->ref_supplier;
36643664
$this->product_desc = $obj->product_desc;

0 commit comments

Comments
 (0)