🐛 fix(FlowController): Utilise getPriceDay au lieu de getPrice1day et ajoute setPriceHtSup.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user