return;
} // Customer id passed?
$customerId =
(int) $this->
Request()->
getParam('customerID'
);
if ($customerId === 0
) { $this->
View()->
assign(['success' => false, 'message' => 'No customer id passed'
]);
return;
} $orders =
$this->
getChartData($customerId);
$this->
View()->
assign(['success' => true, 'data' =>
$orders]);
} /**
* Saves a single customer. If no customer id passed,
* the save function creates a new customer model and persist
* it by the shopware model manager.
* The sub models billing, shipping and debit will be filled
* by the passed parameter arrays billing, shipping and debit.
*/