mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-31 15:42:03 -04:00
bug fixes
This commit is contained in:
parent
ed0e1d3521
commit
494286ba78
@ -187,8 +187,8 @@ return array(
|
|||||||
'URL' => 'Illuminate\Support\Facades\URL',
|
'URL' => 'Illuminate\Support\Facades\URL',
|
||||||
'Validator' => 'Illuminate\Support\Facades\Validator',
|
'Validator' => 'Illuminate\Support\Facades\Validator',
|
||||||
'View' => 'Illuminate\Support\Facades\View',
|
'View' => 'Illuminate\Support\Facades\View',
|
||||||
'SSH' => 'Illuminate\Support\Facades\SSH',
|
'SSH' => 'Illuminate\Support\Facades\SSH',
|
||||||
'Basset' => 'Basset\Facade',
|
'Basset' => 'Basset\Facade',
|
||||||
'Alert' => 'Bootstrapper\Alert',
|
'Alert' => 'Bootstrapper\Alert',
|
||||||
'Badge' => 'Bootstrapper\Badge',
|
'Badge' => 'Bootstrapper\Badge',
|
||||||
'Breadcrumb' => 'Bootstrapper\Breadcrumb',
|
'Breadcrumb' => 'Bootstrapper\Breadcrumb',
|
||||||
@ -212,7 +212,7 @@ return array(
|
|||||||
'Thumbnail' => 'Bootstrapper\Thumbnail',
|
'Thumbnail' => 'Bootstrapper\Thumbnail',
|
||||||
'Typeahead' => 'Bootstrapper\Typeahead',
|
'Typeahead' => 'Bootstrapper\Typeahead',
|
||||||
'Typography' => 'Bootstrapper\Typography',
|
'Typography' => 'Bootstrapper\Typography',
|
||||||
'Confide' => 'Zizaco\Confide\ConfideFacade',
|
'Confide' => 'Zizaco\Confide\ConfideFacade',
|
||||||
'Former' => 'Former\Facades\Former',
|
'Former' => 'Former\Facades\Former',
|
||||||
'Datatable' => 'Chumper\Datatable\Facades\Datatable',
|
'Datatable' => 'Chumper\Datatable\Facades\Datatable',
|
||||||
'Omnipay' => 'Omnipay\Omnipay',
|
'Omnipay' => 'Omnipay\Omnipay',
|
||||||
|
@ -108,6 +108,7 @@ class ClientController extends \BaseController {
|
|||||||
Utils::trackViewed($client->getDisplayName(), ENTITY_CLIENT);
|
Utils::trackViewed($client->getDisplayName(), ENTITY_CLIENT);
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
|
'showBreadcrumbs' => false,
|
||||||
'client' => $client,
|
'client' => $client,
|
||||||
'credit' => $client->getTotalCredit(),
|
'credit' => $client->getTotalCredit(),
|
||||||
'title' => '- ' . $client->getDisplayName(),
|
'title' => '- ' . $client->getDisplayName(),
|
||||||
|
@ -5,7 +5,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('SUM(clients.paid_to_date) total_income,
|
$select = DB::raw('SUM(DISTINCT clients.paid_to_date) total_income,
|
||||||
COUNT(DISTINCT CASE WHEN invoices.id IS NOT NULL THEN clients.id ELSE null END) billed_clients,
|
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,
|
||||||
COUNT(DISTINCT clients.id) active_clients');
|
COUNT(DISTINCT clients.id) active_clients');
|
||||||
|
@ -141,6 +141,7 @@ class InvoiceController extends \BaseController {
|
|||||||
$invoice->due_date = Utils::fromSqlDate($invoice->due_date);
|
$invoice->due_date = Utils::fromSqlDate($invoice->due_date);
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
|
'showBreadcrumbs' => false,
|
||||||
'invoice' => $invoice->hidePrivateFields(),
|
'invoice' => $invoice->hidePrivateFields(),
|
||||||
'invitation' => $invitation
|
'invitation' => $invitation
|
||||||
);
|
);
|
||||||
@ -166,6 +167,7 @@ class InvoiceController extends \BaseController {
|
|||||||
->select('contacts.public_id')->lists('public_id');
|
->select('contacts.public_id')->lists('public_id');
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
|
'showBreadcrumbs' => false,
|
||||||
'account' => $invoice->account,
|
'account' => $invoice->account,
|
||||||
'invoice' => $invoice,
|
'invoice' => $invoice,
|
||||||
'data' => false,
|
'data' => false,
|
||||||
|
@ -167,6 +167,7 @@ class PaymentController extends \BaseController
|
|||||||
$client = $invoice->client;
|
$client = $invoice->client;
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
|
'showBreadcrumbs' => false,
|
||||||
'invitationKey' => $invitationKey,
|
'invitationKey' => $invitationKey,
|
||||||
'invoice' => $invoice,
|
'invoice' => $invoice,
|
||||||
'client' => $client,
|
'client' => $client,
|
||||||
|
@ -159,6 +159,26 @@ HTML::macro('image_data', function($imagePath) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
HTML::macro('breadcrumbs', function() {
|
||||||
|
$str = '<ol class="breadcrumb">';
|
||||||
|
$crumbs = explode('/', $_SERVER['REQUEST_URI']);
|
||||||
|
for ($i=0; $i<count($crumbs); $i++) {
|
||||||
|
$crumb = trim($crumbs[$i]);
|
||||||
|
if (!$crumb) continue;
|
||||||
|
if ($crumb == 'account') return '';
|
||||||
|
$name = ucwords($crumb);
|
||||||
|
if ($i==count($crumbs)-1)
|
||||||
|
{
|
||||||
|
$str .= "<li class='active'>$name</li>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$str .= '<li>'.link_to($crumb, $name).'</li>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $str . '</ol>';
|
||||||
|
});
|
||||||
|
|
||||||
define('CONTACT_EMAIL', 'contact@invoiceninja.com');
|
define('CONTACT_EMAIL', 'contact@invoiceninja.com');
|
||||||
|
|
||||||
define('ENV_DEVELOPMENT', 'local');
|
define('ENV_DEVELOPMENT', 'local');
|
||||||
|
@ -16,12 +16,6 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
|
|
||||||
@if ($credit)
|
|
||||||
{{ Former::legend('Edit Credit') }}
|
|
||||||
@else
|
|
||||||
{{ Former::legend('New Credit') }}
|
|
||||||
@endif
|
|
||||||
|
|
||||||
{{ Former::select('client')->addOption('', '')->addGroupClass('client-select') }}
|
{{ Former::select('client')->addOption('', '')->addGroupClass('client-select') }}
|
||||||
{{ Former::text('amount') }}
|
{{ Former::text('amount') }}
|
||||||
{{ Former::text('credit_date')->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT)) }}
|
{{ Former::text('credit_date')->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT)) }}
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
<ul class="panel-body list-group">
|
<ul class="panel-body list-group">
|
||||||
@foreach ($activities as $activity)
|
@foreach ($activities as $activity)
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<span style="color:#888;font-style:italic">{{ Utils::timestampToDateTimeString(strtotime($activity->created_at)) }}:</span>
|
<span style="color:#888;font-style:italic">{{ Utils::timestampToDateString(strtotime($activity->created_at)) }}:</span>
|
||||||
{{ Utils::decodeActivity($activity->message) }}
|
{{ Utils::decodeActivity($activity->message) }}
|
||||||
</li>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@ -148,9 +148,14 @@
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
<p> </p>
|
|
||||||
|
<br/>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
|
@if (!isset($showBreadcrumbs) || $showBreadcrumbs)
|
||||||
|
{{ HTML::breadcrumbs() }}
|
||||||
|
@endif
|
||||||
|
|
||||||
@if (Session::has('message'))
|
@if (Session::has('message'))
|
||||||
<div class="alert alert-info">{{ Session::get('message') }}</div>
|
<div class="alert alert-info">{{ Session::get('message') }}</div>
|
||||||
@endif
|
@endif
|
||||||
|
@ -9,6 +9,12 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
|
@if ($invoice)
|
||||||
|
<ol class="breadcrumb">
|
||||||
|
<li>{{ link_to('invoices', 'Invoices') }}</li>
|
||||||
|
<li class='active'>{{ $invoice->invoice_number }}</li>
|
||||||
|
</ol>
|
||||||
|
@endif
|
||||||
|
|
||||||
{{ Former::open($url)->method($method)->addClass('main_form')->rules(array(
|
{{ Former::open($url)->method($method)->addClass('main_form')->rules(array(
|
||||||
'client' => 'required',
|
'client' => 'required',
|
||||||
|
@ -17,12 +17,6 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
|
|
||||||
@if ($payment)
|
|
||||||
{{ Former::legend('Edit Payment') }}
|
|
||||||
@else
|
|
||||||
{{ Former::legend('New Payment') }}
|
|
||||||
@endif
|
|
||||||
|
|
||||||
{{ Former::select('client')->addOption('', '')->addGroupClass('client-select') }}
|
{{ Former::select('client')->addOption('', '')->addGroupClass('client-select') }}
|
||||||
{{ Former::select('invoice')->addOption('', '')->addGroupClass('invoice-select') }}
|
{{ Former::select('invoice')->addOption('', '')->addGroupClass('invoice-select') }}
|
||||||
{{ Former::text('amount') }}
|
{{ Former::text('amount') }}
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
"webpatser/laravel-countries": "dev-master",
|
"webpatser/laravel-countries": "dev-master",
|
||||||
"anahkiasen/rocketeer": "dev-develop",
|
"anahkiasen/rocketeer": "dev-develop",
|
||||||
"codeception/codeception": "dev-master",
|
"codeception/codeception": "dev-master",
|
||||||
"davejamesmiller/laravel-breadcrumbs": "~2"
|
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
|
@ -11,8 +11,10 @@ label.control-label {
|
|||||||
font-weight: normal !important;
|
font-weight: normal !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.breadcrumb {
|
||||||
|
background-color: inherit;
|
||||||
|
font-size: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
div.panel {
|
div.panel {
|
||||||
padding-left: 0px !important;
|
padding-left: 0px !important;
|
||||||
@ -47,11 +49,8 @@ table td {
|
|||||||
max-width: 250px;
|
max-width: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* hide table sorting indicators */
|
||||||
table.dataTable tr.odd { background-color: white; }
|
table.table thead .sorting { background: url('') no-repeat center right; }
|
||||||
table.dataTable tr.even { background-color: #f9f9f9; }
|
|
||||||
*/
|
|
||||||
|
|
||||||
table.dataTable tr.odd td.sorting_1 { background-color: white; }
|
table.dataTable tr.odd td.sorting_1 { background-color: white; }
|
||||||
table.dataTable tr.odd td.sorting_2 { background-color: white; }
|
table.dataTable tr.odd td.sorting_2 { background-color: white; }
|
||||||
table.dataTable tr.odd td.sorting_3 { background-color: white; }
|
table.dataTable tr.odd td.sorting_3 { background-color: white; }
|
||||||
@ -61,10 +60,6 @@ table.dataTable tr.even td.sorting_3 { background-color: white; }
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* hide table sorting indicators */
|
|
||||||
table.table thead .sorting { background: url('') no-repeat center right; }
|
|
||||||
|
|
||||||
|
|
||||||
/* Hover nav */
|
/* Hover nav */
|
||||||
.sidebar-nav {
|
.sidebar-nav {
|
||||||
padding: 9px 0;
|
padding: 9px 0;
|
||||||
@ -123,9 +118,9 @@ table.table thead .sorting { background: url('') no-repeat center right; }
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*******************
|
/***********************************************
|
||||||
Dashboard
|
Dashboard
|
||||||
*******************/
|
************************************************/
|
||||||
|
|
||||||
.in-bold {
|
.in-bold {
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
@ -173,6 +168,11 @@ table.table thead .sorting { background: url('') no-repeat center right; }
|
|||||||
border-style: none !important;
|
border-style: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************
|
||||||
|
New/edit invoice page
|
||||||
|
************************************************/
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
table.invoice-table tbody tr:hover {
|
table.invoice-table tbody tr:hover {
|
||||||
background-color: #FFFFFF !important;
|
background-color: #FFFFFF !important;
|
||||||
@ -225,7 +225,9 @@ body {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***********************************************
|
||||||
|
Add mouse over drop down to header menu
|
||||||
|
************************************************/
|
||||||
|
|
||||||
.navbar-default {
|
.navbar-default {
|
||||||
background-color: #428bff;
|
background-color: #428bff;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user