$foundOrdersCount =
(int) Shopware()->
Db()->
fetchOne('SELECT FOUND_ROWS()'
);
foreach ($orders as $orderKey =>
$orderValue) { $orders[$orderKey]['invoice_amount'
] =
$this->moduleManager->
Articles() ->
sFormatPrice($orderValue['invoice_amount'
]);
$orders[$orderKey]['invoice_amount_net'
] =
$this->moduleManager->
Articles() ->
sFormatPrice($orderValue['invoice_amount_net'
]);
$orders[$orderKey]['invoice_shipping'
] =
$this->moduleManager->
Articles() ->
sFormatPrice($orderValue['invoice_shipping'
]);
$orders =
$this->
processOpenOrderDetails($orderValue,
$orders,
$orderKey);
$orders[$orderKey]['dispatch'
] =
$this->
sGetPremiumDispatch($orderValue['dispatchID'
]);
} $orders =
$this->eventManager->
filter( 'Shopware_Modules_Admin_GetOpenOrderData_FilterResult',
$orders,
[ 'subject' =>
$this,
'id' =>
$this->session->
offsetGet('sUserId'
),
'subshopID' =>
$this->contextService->
getShopContext()->
getShop()->
getId(),
] );