@@ -69,7 +69,7 @@ class ProductFamilyController extends AdminController | |||
$formBuilder->add('propertyOrganicLabel', ChoiceType::class, array( | |||
'choices' => array( | |||
'field.ProductFamily.organicLabelOptions.bio' => 'by-quantity', | |||
'field.ProductFamily.organicLabelOptions.ab' => 'ab', | |||
'field.ProductFamily.organicLabelOptions.natureProgres' => 'nature-progres', | |||
'field.ProductFamily.organicLabelOptions.hVE' => 'hve' | |||
), |
@@ -362,10 +362,9 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr | |||
public function isPropertyNoveltyOnline(): ?bool | |||
{ | |||
if($this->getPropertyNoveltyExpirationDate()) { | |||
$now = new \DateTime() ; | |||
if($now <= $this->getNoveltyExpirationDate()) { | |||
if($now <= $this->getPropertyNoveltyExpirationDate()) { | |||
return true ; | |||
} | |||
} |
@@ -109,7 +109,7 @@ field: | |||
byProductFamily: Gérer le stock par produit (à l'unité) | |||
byProduct: Gérer le stock par déclainaison | |||
organicLabelOptions: | |||
bio: Agriculture biologique | |||
ab: Agriculture biologique | |||
hVE: Haute valeur environnementale | |||
natureProgres: Nature & progrès | |||
behaviorExpirationDate: Gèrer |