🐛 fix(FlowController): Utilise getPriceDay au lieu de getPrice1day et ajoute setPriceHtSup.

This commit is contained in:
Serreau Jovann
2026-02-05 15:47:59 +01:00
parent 0f79d61d40
commit f1f74d4da8

View File

@@ -172,13 +172,8 @@ class FlowController extends AbstractController
$line->setPos($pos++);
$line->setProduct($product->getName());
$line->setDay($days);
$line->setPriceHt($product->getPrice1day());
if (method_exists($product, 'getPriceSup')) {
$line->setPriceHtSup($product->getPriceSup());
} else {
$line->setPriceHtSup(0);
}
$line->setPriceHt($product->getPriceDay());
$line->setPriceHtSup($product->getPriceSup());
$em->persist($line);
// Linked Options