Update facture.class.php

This commit is contained in:
Laurent Destailleur 2020-05-07 23:04:52 +02:00 committed by GitHub
parent 7514a625fd
commit f23451e1c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1180,7 +1180,7 @@ class Facture extends CommonInvoice
}
// Bloc to update dates of service (month by month only if previously filled at 1d near start or end of month)
// If it's a service with start and end dates
if ($line->product_type == 1 && !empty($line->date_start) && !empty($line->date_end) ) {
if (!empty($line->date_start) && !empty($line->date_end) ) {
// Get the dates
$start = dol_getdate($line->date_start);
$end = dol_getdate($line->date_end);