File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
app/code/Magento/Sales/Model Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ public function execute(
133
133
\Magento \Sales \Api \Data \CreditmemoCommentCreationInterface $ comment = null ,
134
134
\Magento \Sales \Api \Data \CreditmemoCreationArgumentsInterface $ arguments = null
135
135
) {
136
+ // phpstan:ignore "File has calls static method. (phpStaticMethodCalls)"
136
137
return $ this ->orderMutex ->execute (
137
138
(int ) $ orderId ,
138
139
\Closure::fromCallable ([$ this , 'createRefund ' ]),
Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ public function execute(
149
149
array $ packages = [],
150
150
\Magento \Sales \Api \Data \ShipmentCreationArgumentsInterface $ arguments = null
151
151
) {
152
+ // phpstan:ignore "File has calls static method. (phpStaticMethodCalls)"
152
153
return $ this ->orderMutex ->execute (
153
154
(int )$ orderId ,
154
155
\Closure::fromCallable ([$ this , 'createShipment ' ]),
@@ -221,18 +222,6 @@ private function createShipment(
221
222
}
222
223
try {
223
224
$ this ->orderRegistrar ->register ($ order , $ shipment );
224
- /*foreach ($shipment->getItems() as $item) {
225
- if ($item->getQty() > 0) {
226
- $orderItem = $item->getOrderItem();
227
- }
228
- $orderItem = $item->getOrderItem();
229
- $orderItem->setQtyShipped( $item->getQty() );
230
- $orderItem->setQtyShipped( $orderItem->getQtyShipped() + $item->getQty() );
231
- $orderItem->save();
232
- }
233
- $order = $shipment->getOrder()->load( $shipment->getOrder()->getId() );
234
- $order->save();*/
235
-
236
225
$ shipment = $ this ->shipmentRepository ->save ($ shipment );
237
226
if ($ order ->getState () === Order::STATE_NEW ) {
238
227
$ order ->setState (
You can’t perform that action at this time.
0 commit comments