diff --git a/htdocs/product/price.php b/htdocs/product/price.php
index 1b55d6ade64..0560e4e6fd4 100644
--- a/htdocs/product/price.php
+++ b/htdocs/product/price.php
@@ -1617,7 +1617,7 @@ if ((empty($conf->global->PRODUIT_CUSTOMER_PRICES) || $action == 'showlog_defaul
elseif ($i > 0) $candelete = 1;
print '
';
- if ($candelete || $db->jdate($objp->dp >= dol_now())) { // Test on date is to be able to delete a corrupted record
+ if ($candelete || ($db->jdate($objp->dp) >= dol_now())) { // Test on date is to be able to delete a corrupted record with a a date in future
print 'id.'&lineid='.$objp->rowid.'">';
print img_delete();
print '';
|