mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01: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
|
||||
|
||||
* 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.
|
||||
* 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.
|
||||
|
@ -457,6 +457,7 @@ return array(
|
||||
'more_designs_self_host_text' => '',
|
||||
'buy' => 'Buy',
|
||||
'bought_designs' => 'Successfully added additional invoice designs',
|
||||
|
||||
|
||||
'sent' => 'sent',
|
||||
|
||||
);
|
@ -37,7 +37,7 @@
|
||||
{{ $invoicesSent }}
|
||||
</div>
|
||||
<div class="in-thin">
|
||||
{{ Utils::pluralize('invoice', $invoicesSent) }} sent
|
||||
{{ Utils::pluralize('invoice', $invoicesSent) }} {{ trans('texts.sent') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -283,10 +283,14 @@
|
||||
if (!invoice || invoice.invoice_status_id == 5) {
|
||||
return -1;
|
||||
}
|
||||
var jsDate = convertToJsDate(invoice.created_at) || new Date().getTime();
|
||||
return parseInt((new Date().getTime() - convertToJsDate(invoice.created_at)) / (1000*60*60*24));
|
||||
}
|
||||
|
||||
function convertToJsDate(isoDate) {
|
||||
if (!isoDate) {
|
||||
return false;
|
||||
}
|
||||
var t = isoDate.split(/[- :]/);
|
||||
return new Date(t[0], t[1]-1, t[2], t[3], t[4], t[5]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user