mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 13:14:30 -04:00
Minor fixes
This commit is contained in:
parent
e2626051dc
commit
79aa5bad92
@ -55,7 +55,7 @@ class TaskController extends BaseController
|
|||||||
->addColumn('client_name', function ($model) { return $model->client_public_id ? link_to('clients/'.$model->client_public_id, Utils::getClientDisplayName($model)) : ''; });
|
->addColumn('client_name', function ($model) { return $model->client_public_id ? link_to('clients/'.$model->client_public_id, Utils::getClientDisplayName($model)) : ''; });
|
||||||
}
|
}
|
||||||
|
|
||||||
return $table->addColumn('created_at', function($model) { return Task::calcStartTime($model); })
|
return $table->addColumn('created_at', function($model) { return link_to("tasks/{$model->public_id}/edit", Task::calcStartTime($model)); })
|
||||||
->addColumn('time_log', function($model) { return gmdate('H:i:s', Task::calcDuration($model)); })
|
->addColumn('time_log', function($model) { return gmdate('H:i:s', Task::calcDuration($model)); })
|
||||||
->addColumn('description', function($model) { return $model->description; })
|
->addColumn('description', function($model) { return $model->description; })
|
||||||
->addColumn('invoice_number', function($model) { return self::getStatusLabel($model); })
|
->addColumn('invoice_number', function($model) { return self::getStatusLabel($model); })
|
||||||
|
@ -337,7 +337,7 @@ if (!defined('CONTACT_EMAIL')) {
|
|||||||
define('DEFAULT_LANGUAGE', 1); // English
|
define('DEFAULT_LANGUAGE', 1); // English
|
||||||
define('DEFAULT_DATE_FORMAT', 'M j, Y');
|
define('DEFAULT_DATE_FORMAT', 'M j, Y');
|
||||||
define('DEFAULT_DATE_PICKER_FORMAT', 'M d, yyyy');
|
define('DEFAULT_DATE_PICKER_FORMAT', 'M d, yyyy');
|
||||||
define('DEFAULT_DATETIME_FORMAT', 'F j, Y, g:i a');
|
define('DEFAULT_DATETIME_FORMAT', 'F j, Y g:i a');
|
||||||
define('DEFAULT_DATETIME_MOMENT_FORMAT', 'MMM D, YYYY h:mm:ss a');
|
define('DEFAULT_DATETIME_MOMENT_FORMAT', 'MMM D, YYYY h:mm:ss a');
|
||||||
define('DEFAULT_QUERY_CACHE', 120); // minutes
|
define('DEFAULT_QUERY_CACHE', 120); // minutes
|
||||||
define('DEFAULT_LOCALE', 'en');
|
define('DEFAULT_LOCALE', 'en');
|
||||||
|
8
public/css/built.css
vendored
8
public/css/built.css
vendored
@ -2405,10 +2405,14 @@ margin-bottom: 0;
|
|||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
textarea.form-control {
|
textarea.form-control {
|
||||||
/*height: auto !important;*/
|
/*height: auto !important;*/
|
||||||
min-height: 40px;
|
min-height: 40px;
|
||||||
}
|
}
|
||||||
/*tables*/
|
/*tables*/
|
||||||
|
table.data-table td {
|
||||||
|
height: 38px !important;
|
||||||
|
}
|
||||||
|
|
||||||
table.dataTable { border-radius: 3px; border-collapse: collapse;
|
table.dataTable { border-radius: 3px; border-collapse: collapse;
|
||||||
/*border-spacing: 0;*/}
|
/*border-spacing: 0;*/}
|
||||||
table.dataTable thead > tr > th, table.invoice-table thead > tr > th {
|
table.dataTable thead > tr > th, table.invoice-table thead > tr > th {
|
||||||
|
8
public/css/style.css
vendored
8
public/css/style.css
vendored
@ -55,10 +55,14 @@ margin-bottom: 0;
|
|||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
textarea.form-control {
|
textarea.form-control {
|
||||||
/*height: auto !important;*/
|
/*height: auto !important;*/
|
||||||
min-height: 40px;
|
min-height: 40px;
|
||||||
}
|
}
|
||||||
/*tables*/
|
/*tables*/
|
||||||
|
table.data-table td {
|
||||||
|
height: 38px !important;
|
||||||
|
}
|
||||||
|
|
||||||
table.dataTable { border-radius: 3px; border-collapse: collapse;
|
table.dataTable { border-radius: 3px; border-collapse: collapse;
|
||||||
/*border-spacing: 0;*/}
|
/*border-spacing: 0;*/}
|
||||||
table.dataTable thead > tr > th, table.invoice-table thead > tr > th {
|
table.dataTable thead > tr > th, table.invoice-table thead > tr > th {
|
||||||
|
@ -31616,6 +31616,7 @@ NINJA.decodeJavascript = function(invoice, javascript)
|
|||||||
'invoiceDetailsHeight': NINJA.invoiceDetails(invoice).length * 22,
|
'invoiceDetailsHeight': NINJA.invoiceDetails(invoice).length * 22,
|
||||||
'invoiceLineItems': NINJA.invoiceLines(invoice),
|
'invoiceLineItems': NINJA.invoiceLines(invoice),
|
||||||
'invoiceLineItemColumns': NINJA.invoiceColumns(invoice),
|
'invoiceLineItemColumns': NINJA.invoiceColumns(invoice),
|
||||||
|
'quantityWidth': NINJA.quantityWidth(invoice),
|
||||||
'clientDetails': NINJA.clientDetails(invoice),
|
'clientDetails': NINJA.clientDetails(invoice),
|
||||||
'notesAndTerms': NINJA.notesAndTerms(invoice),
|
'notesAndTerms': NINJA.notesAndTerms(invoice),
|
||||||
'subtotals': NINJA.subtotals(invoice),
|
'subtotals': NINJA.subtotals(invoice),
|
||||||
@ -31632,9 +31633,15 @@ NINJA.decodeJavascript = function(invoice, javascript)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (var key in json) {
|
for (var key in json) {
|
||||||
var regExp = new RegExp('"\\$'+key+'"', 'g');
|
// remove trailing commas for these fields
|
||||||
var val = JSON.stringify(json[key]);
|
if (['quantityWidth'].indexOf(key) >= 0) {
|
||||||
val = doubleDollarSign(val);
|
var regExp = new RegExp('"\\$'+key+'",', 'g');
|
||||||
|
val = json[key];
|
||||||
|
} else {
|
||||||
|
var regExp = new RegExp('"\\$'+key+'"', 'g');
|
||||||
|
var val = JSON.stringify(json[key]);
|
||||||
|
val = doubleDollarSign(val);
|
||||||
|
}
|
||||||
javascript = javascript.replace(regExp, val);
|
javascript = javascript.replace(regExp, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31709,12 +31716,17 @@ NINJA.notesAndTerms = function(invoice)
|
|||||||
NINJA.invoiceColumns = function(invoice)
|
NINJA.invoiceColumns = function(invoice)
|
||||||
{
|
{
|
||||||
if (invoice.account.hide_quantity == '1') {
|
if (invoice.account.hide_quantity == '1') {
|
||||||
return ["15%", "*", "10%", "15%"];
|
return ["15%", "*", "15%", "15%"];
|
||||||
} else {
|
} else {
|
||||||
return ["15%", "*", "10%", "auto", "15%"];
|
return ["15%", "*", "14%", "14%", "14%"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NINJA.quantityWidth = function(invoice)
|
||||||
|
{
|
||||||
|
return invoice.account.hide_quantity == '1' ? '' : '"12%", ';
|
||||||
|
}
|
||||||
|
|
||||||
NINJA.invoiceLines = function(invoice) {
|
NINJA.invoiceLines = function(invoice) {
|
||||||
var total = 0;
|
var total = 0;
|
||||||
var shownItem = false;
|
var shownItem = false;
|
||||||
|
@ -91,6 +91,7 @@ NINJA.decodeJavascript = function(invoice, javascript)
|
|||||||
'invoiceDetailsHeight': NINJA.invoiceDetails(invoice).length * 22,
|
'invoiceDetailsHeight': NINJA.invoiceDetails(invoice).length * 22,
|
||||||
'invoiceLineItems': NINJA.invoiceLines(invoice),
|
'invoiceLineItems': NINJA.invoiceLines(invoice),
|
||||||
'invoiceLineItemColumns': NINJA.invoiceColumns(invoice),
|
'invoiceLineItemColumns': NINJA.invoiceColumns(invoice),
|
||||||
|
'quantityWidth': NINJA.quantityWidth(invoice),
|
||||||
'clientDetails': NINJA.clientDetails(invoice),
|
'clientDetails': NINJA.clientDetails(invoice),
|
||||||
'notesAndTerms': NINJA.notesAndTerms(invoice),
|
'notesAndTerms': NINJA.notesAndTerms(invoice),
|
||||||
'subtotals': NINJA.subtotals(invoice),
|
'subtotals': NINJA.subtotals(invoice),
|
||||||
@ -107,9 +108,15 @@ NINJA.decodeJavascript = function(invoice, javascript)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (var key in json) {
|
for (var key in json) {
|
||||||
var regExp = new RegExp('"\\$'+key+'"', 'g');
|
// remove trailing commas for these fields
|
||||||
var val = JSON.stringify(json[key]);
|
if (['quantityWidth'].indexOf(key) >= 0) {
|
||||||
val = doubleDollarSign(val);
|
var regExp = new RegExp('"\\$'+key+'",', 'g');
|
||||||
|
val = json[key];
|
||||||
|
} else {
|
||||||
|
var regExp = new RegExp('"\\$'+key+'"', 'g');
|
||||||
|
var val = JSON.stringify(json[key]);
|
||||||
|
val = doubleDollarSign(val);
|
||||||
|
}
|
||||||
javascript = javascript.replace(regExp, val);
|
javascript = javascript.replace(regExp, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -184,12 +191,17 @@ NINJA.notesAndTerms = function(invoice)
|
|||||||
NINJA.invoiceColumns = function(invoice)
|
NINJA.invoiceColumns = function(invoice)
|
||||||
{
|
{
|
||||||
if (invoice.account.hide_quantity == '1') {
|
if (invoice.account.hide_quantity == '1') {
|
||||||
return ["15%", "*", "10%", "15%"];
|
return ["15%", "*", "15%", "15%"];
|
||||||
} else {
|
} else {
|
||||||
return ["15%", "*", "10%", "auto", "15%"];
|
return ["15%", "*", "14%", "14%", "14%"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NINJA.quantityWidth = function(invoice)
|
||||||
|
{
|
||||||
|
return invoice.account.hide_quantity == '1' ? '' : '"12%", ';
|
||||||
|
}
|
||||||
|
|
||||||
NINJA.invoiceLines = function(invoice) {
|
NINJA.invoiceLines = function(invoice) {
|
||||||
var total = 0;
|
var total = 0;
|
||||||
var shownItem = false;
|
var shownItem = false;
|
||||||
|
@ -715,7 +715,7 @@ return array(
|
|||||||
'update_address' => 'Adresse Aktualisieren',
|
'update_address' => 'Adresse Aktualisieren',
|
||||||
'update_address_help' => 'Kundenadresse mit den gemachten Angaben aktualisieren',
|
'update_address_help' => 'Kundenadresse mit den gemachten Angaben aktualisieren',
|
||||||
'times' => 'Zeiten',
|
'times' => 'Zeiten',
|
||||||
'set_now' => 'Auf <em>Jetzt</em> setzen',
|
'set_now' => 'Auf Jetzt setzen',
|
||||||
'dark_mode' => 'Dunkler Modus',
|
'dark_mode' => 'Dunkler Modus',
|
||||||
'dark_mode_help' => 'Weißer Text auf schwarzem Hintergrund anzeigen',
|
'dark_mode_help' => 'Weißer Text auf schwarzem Hintergrund anzeigen',
|
||||||
'add_to_invoice' => 'Zur Rechnung :invoice hinzufügen',
|
'add_to_invoice' => 'Zur Rechnung :invoice hinzufügen',
|
||||||
|
@ -41,7 +41,7 @@ return array(
|
|||||||
'tax' => 'Tax',
|
'tax' => 'Tax',
|
||||||
'item' => 'Item',
|
'item' => 'Item',
|
||||||
'description' => 'Description',
|
'description' => 'Description',
|
||||||
'unit_cost' => 'Cost',
|
'unit_cost' => 'Unit Cost',
|
||||||
'quantity' => 'Quantity',
|
'quantity' => 'Quantity',
|
||||||
'line_total' => 'Line Total',
|
'line_total' => 'Line Total',
|
||||||
'subtotal' => 'Subtotal',
|
'subtotal' => 'Subtotal',
|
||||||
@ -715,7 +715,7 @@ return array(
|
|||||||
'update_address' => 'Update Address',
|
'update_address' => 'Update Address',
|
||||||
'update_address_help' => 'Update client\'s address with provided details',
|
'update_address_help' => 'Update client\'s address with provided details',
|
||||||
'times' => 'Times',
|
'times' => 'Times',
|
||||||
'set_now' => 'Set to <em>now</em>',
|
'set_now' => 'Set to now',
|
||||||
'dark_mode' => 'Dark Mode',
|
'dark_mode' => 'Dark Mode',
|
||||||
'dark_mode_help' => 'Show white text on black background',
|
'dark_mode_help' => 'Show white text on black background',
|
||||||
'add_to_invoice' => 'Add to invoice :invoice',
|
'add_to_invoice' => 'Add to invoice :invoice',
|
||||||
|
@ -41,7 +41,13 @@
|
|||||||
<label for="simple-time" class="control-label col-lg-4 col-sm-4">
|
<label for="simple-time" class="control-label col-lg-4 col-sm-4">
|
||||||
</label>
|
</label>
|
||||||
<div class="col-lg-8 col-sm-8" style="padding-top: 10px">
|
<div class="col-lg-8 col-sm-8" style="padding-top: 10px">
|
||||||
<p>{{ $task->getStartTime() }} {{ $timezone }}<p/>
|
<p>{{ $task->getStartTime() }} -
|
||||||
|
@if (Auth::user()->account->timezone_id)
|
||||||
|
{{ $timezone }}
|
||||||
|
@else
|
||||||
|
{!! link_to('/company/details?focus=timezone_id', $timezone, ['target' => '_blank']) !!}
|
||||||
|
@endif
|
||||||
|
<p/>
|
||||||
|
|
||||||
@if ($task->hasPreviousDuration())
|
@if ($task->hasPreviousDuration())
|
||||||
{{ trans('texts.duration') . ': ' . gmdate('H:i:s', $task->getDuration()) }}<br/>
|
{{ trans('texts.duration') . ': ' . gmdate('H:i:s', $task->getDuration()) }}<br/>
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
"style": "invoiceLineItemsTable",
|
"style": "invoiceLineItemsTable",
|
||||||
"table": {
|
"table": {
|
||||||
"headerRows": 1,
|
"headerRows": 1,
|
||||||
"widths": "$invoiceLineItemColumns",
|
"widths": ["15%", "*", "12%", "$quantityWidth", "22%"],
|
||||||
"body": "$invoiceLineItems"
|
"body": "$invoiceLineItems"
|
||||||
},
|
},
|
||||||
"layout": {
|
"layout": {
|
||||||
@ -163,6 +163,16 @@
|
|||||||
"fontSize": 12,
|
"fontSize": 12,
|
||||||
"bold": true
|
"bold": true
|
||||||
},
|
},
|
||||||
|
"costTableHeader": {
|
||||||
|
"alignment": "right"
|
||||||
|
},
|
||||||
|
"qtyTableHeader": {
|
||||||
|
"alignment": "right"
|
||||||
|
},
|
||||||
|
"lineTotalTableHeader": {
|
||||||
|
"alignment": "right",
|
||||||
|
"margin": [0, 0, 40, 0]
|
||||||
|
},
|
||||||
"productKey": {
|
"productKey": {
|
||||||
"color": "$primaryColor:#36a498",
|
"color": "$primaryColor:#36a498",
|
||||||
"margin": [40,0,0,0],
|
"margin": [40,0,0,0],
|
||||||
@ -191,7 +201,7 @@
|
|||||||
},
|
},
|
||||||
"lineTotal": {
|
"lineTotal": {
|
||||||
"alignment": "right",
|
"alignment": "right",
|
||||||
"margin": [0,0,40,0]
|
"margin": [0, 0, 40, 0]
|
||||||
},
|
},
|
||||||
"subtotals": {
|
"subtotals": {
|
||||||
"alignment": "right",
|
"alignment": "right",
|
||||||
|
@ -150,6 +150,15 @@
|
|||||||
"bold": true,
|
"bold": true,
|
||||||
"fontSize": "$fontSizeLarger"
|
"fontSize": "$fontSizeLarger"
|
||||||
},
|
},
|
||||||
|
"costTableHeader": {
|
||||||
|
"alignment": "right"
|
||||||
|
},
|
||||||
|
"qtyTableHeader": {
|
||||||
|
"alignment": "right"
|
||||||
|
},
|
||||||
|
"lineTotalTableHeader": {
|
||||||
|
"alignment": "right"
|
||||||
|
},
|
||||||
"invoiceLineItemsTable": {
|
"invoiceLineItemsTable": {
|
||||||
"margin": [0, 16, 0, 16]
|
"margin": [0, 16, 0, 16]
|
||||||
},
|
},
|
||||||
|
@ -177,6 +177,15 @@
|
|||||||
"color": "#FFFFFF",
|
"color": "#FFFFFF",
|
||||||
"fontSize": "$fontSizeLargest"
|
"fontSize": "$fontSizeLargest"
|
||||||
},
|
},
|
||||||
|
"costTableHeader": {
|
||||||
|
"alignment": "right"
|
||||||
|
},
|
||||||
|
"qtyTableHeader": {
|
||||||
|
"alignment": "right"
|
||||||
|
},
|
||||||
|
"lineTotalTableHeader": {
|
||||||
|
"alignment": "right"
|
||||||
|
},
|
||||||
"balanceDueLabel": {
|
"balanceDueLabel": {
|
||||||
"fontSize": "$fontSizeLargest",
|
"fontSize": "$fontSizeLargest",
|
||||||
"color":"#FFFFFF",
|
"color":"#FFFFFF",
|
||||||
|
@ -110,6 +110,15 @@
|
|||||||
"tableHeader": {
|
"tableHeader": {
|
||||||
"bold": true
|
"bold": true
|
||||||
},
|
},
|
||||||
|
"costTableHeader": {
|
||||||
|
"alignment": "right"
|
||||||
|
},
|
||||||
|
"qtyTableHeader": {
|
||||||
|
"alignment": "right"
|
||||||
|
},
|
||||||
|
"lineTotalTableHeader": {
|
||||||
|
"alignment": "right"
|
||||||
|
},
|
||||||
"invoiceLineItemsTable": {
|
"invoiceLineItemsTable": {
|
||||||
"margin": [0, 16, 0, 16]
|
"margin": [0, 16, 0, 16]
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user