Expense module

This commit is contained in:
steenrabol 2016-01-11 20:20:42 +01:00
parent 3e9e28f06f
commit f90c759078
2 changed files with 4 additions and 3 deletions

View File

@ -13,6 +13,7 @@ class DashboardController extends BaseController
{ {
public function index() public function index()
{ {
// total_income, billed_clients, invoice_sent and active_clients // total_income, billed_clients, invoice_sent and active_clients
$select = DB::raw('COUNT(DISTINCT CASE WHEN invoices.id IS NOT NULL THEN clients.id ELSE null END) billed_clients, $select = DB::raw('COUNT(DISTINCT CASE WHEN invoices.id IS NOT NULL THEN clients.id ELSE null END) billed_clients,
SUM(CASE WHEN invoices.invoice_status_id >= '.INVOICE_STATUS_SENT.' THEN 1 ELSE 0 END) invoices_sent, SUM(CASE WHEN invoices.invoice_status_id >= '.INVOICE_STATUS_SENT.' THEN 1 ELSE 0 END) invoices_sent,

View File

@ -896,7 +896,7 @@ return array(
'activity_31' => ':user created :vendor', 'activity_31' => ':user created :vendor',
'activity_32' => ':user created :vendor', 'activity_32' => ':user created :vendor',
'activity_33' => ':user created :vendor', 'activity_33' => ':user created :vendor',
'activity_34' => ':user created :expense', 'activity_34' => ':user created expense :expense',
'activity_35' => ':user created :vendor', 'activity_35' => ':user created :vendor',
'activity_36' => ':user created :vendor', 'activity_36' => ':user created :vendor',
'activity_37' => ':user created :vendor', 'activity_37' => ':user created :vendor',