mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes
This commit is contained in:
parent
d5adfb6625
commit
dbbb4eb722
@ -69,6 +69,7 @@ Add public/ to your web server root
|
|||||||
|
|
||||||
### Deleveloper Notes
|
### Deleveloper Notes
|
||||||
|
|
||||||
|
* The application requires PHP >= 5.4.0
|
||||||
* If you make any changes to the JavaScript files you need to run grunt to create the built files. See Gruntfile.js for more details.
|
* If you make any changes to the JavaScript files you need to run grunt to create the built files. See Gruntfile.js for more details.
|
||||||
* The lookup tables are cached in memory (ie, Currencies, Timezones, Languages, etc). If you add a record to the database you need to clear the cache by uncommenting Cache::flush() in app/routes.php.
|
* The lookup tables are cached in memory (ie, Currencies, Timezones, Languages, etc). If you add a record to the database you need to clear the cache by uncommenting Cache::flush() in app/routes.php.
|
||||||
* If you run into any composer errors try running composer dump-autoload.
|
* If you run into any composer errors try running composer dump-autoload.
|
||||||
|
@ -458,5 +458,6 @@ return array(
|
|||||||
'buy' => 'Buy',
|
'buy' => 'Buy',
|
||||||
'bought_designs' => 'Successfully added additional invoice designs',
|
'bought_designs' => 'Successfully added additional invoice designs',
|
||||||
|
|
||||||
|
'sent' => 'sent',
|
||||||
|
|
||||||
);
|
);
|
@ -37,7 +37,7 @@
|
|||||||
{{ $invoicesSent }}
|
{{ $invoicesSent }}
|
||||||
</div>
|
</div>
|
||||||
<div class="in-thin">
|
<div class="in-thin">
|
||||||
{{ Utils::pluralize('invoice', $invoicesSent) }} sent
|
{{ Utils::pluralize('invoice', $invoicesSent) }} {{ trans('texts.sent') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -283,10 +283,14 @@
|
|||||||
if (!invoice || invoice.invoice_status_id == 5) {
|
if (!invoice || invoice.invoice_status_id == 5) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
var jsDate = convertToJsDate(invoice.created_at) || new Date().getTime();
|
||||||
return parseInt((new Date().getTime() - convertToJsDate(invoice.created_at)) / (1000*60*60*24));
|
return parseInt((new Date().getTime() - convertToJsDate(invoice.created_at)) / (1000*60*60*24));
|
||||||
}
|
}
|
||||||
|
|
||||||
function convertToJsDate(isoDate) {
|
function convertToJsDate(isoDate) {
|
||||||
|
if (!isoDate) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
var t = isoDate.split(/[- :]/);
|
var t = isoDate.split(/[- :]/);
|
||||||
return new Date(t[0], t[1]-1, t[2], t[3], t[4], t[5]);
|
return new Date(t[0], t[1]-1, t[2], t[3], t[4], t[5]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user