diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 1e1aa47..26df7d0 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -262,8 +262,8 @@ final class BackendController extends Controller foreach ($results as $result) { if (!isset($reserved[(int) $result['billing_bill_element_item']])) { - $reserved[$t->item] = 0; - $ordered[$t->item] = 0; + $reserved[(int) $result['billing_bill_element_item']] = 0; + $ordered[(int) $result['billing_bill_element_item']] = 0; } if ($result['billing_type_name'] === 'sales_order_confirmation') { diff --git a/Theme/Backend/item-view.tpl.php b/Theme/Backend/item-view.tpl.php index 42f395a..b94934f 100644 --- a/Theme/Backend/item-view.tpl.php +++ b/Theme/Backend/item-view.tpl.php @@ -258,6 +258,8 @@ echo $this->data['nav']->render(); with('client') + ->with('client/account') ->with('type') ->with('type/l11n') ->where('type/transferType', BillTransferType::SALES)