2727use Shopsys \FrameworkBundle \Model \Order \Item \OrderItemPriceCalculation ;
2828use Shopsys \FrameworkBundle \Model \Order \OrderDataFactory ;
2929use Shopsys \FrameworkBundle \Model \Order \OrderFacade ;
30+ use Shopsys \FrameworkBundle \Model \Pricing \PricingSetting ;
3031use Symfony \Component \HttpFoundation \Request ;
3132use Symfony \Component \HttpFoundation \Response ;
3233use Symfony \Component \Routing \Annotation \Route ;
@@ -49,6 +50,7 @@ class OrderController extends AdminBaseController
4950 * @param \Shopsys\FrameworkBundle\Component\EntityLog\Model\Grid\EntityLogGridFactory $entityLogGridFactory
5051 * @param \Shopsys\FrameworkBundle\Component\Cache\InMemoryCache $inMemoryCache
5152 * @param \Shopsys\FrameworkBundle\Component\EntityLog\Model\EntityLogFacade $entityLogFacade
53+ * @param \Shopsys\FrameworkBundle\Model\Pricing\PricingSetting $pricingSetting
5254 */
5355 public function __construct (
5456 protected readonly OrderFacade $ orderFacade ,
@@ -64,6 +66,7 @@ public function __construct(
6466 protected readonly EntityLogGridFactory $ entityLogGridFactory ,
6567 protected readonly InMemoryCache $ inMemoryCache ,
6668 protected readonly EntityLogFacade $ entityLogFacade ,
69+ protected readonly PricingSetting $ pricingSetting ,
6770 ) {
6871 }
6972
@@ -148,6 +151,7 @@ public function addProductAction(Request $request, int $orderId): Response
148151 'order ' => $ order ,
149152 'orderItem ' => $ orderItem ,
150153 'orderItemTotalPricesById ' => $ orderItemTotalPricesById ,
154+ 'inputPriceType ' => $ this ->pricingSetting ->getInputPriceType (),
151155 ]);
152156 }
153157
0 commit comments