private function _saveActivityLog($log) { doUserActivity::saveActivity('stock', $log); }
private function updateLoggedInfo() { doUserActivity::saveActivity('updateloggedTime', 0); }
private function saveActivity($totalamount, $customer_id) { $customer = Customer::find($customer_id); $customername = $customer != null ? $customer->pluck('name') : null; doUserActivity::saveActivity('sale', $totalamount, $customername, $this->receiptID); }