mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Bug Fixes
This commit is contained in:
commit
9428557e70
@ -136,12 +136,12 @@ class ClientApiController extends BaseAPIController
|
||||
{
|
||||
if ($request->action == ACTION_ARCHIVE) {
|
||||
|
||||
|
||||
$client = Client::scope($publicId)->withTrashed()->first();
|
||||
|
||||
if(!$client)
|
||||
return $this->errorResponse(['message'=>'Client not found.']);
|
||||
|
||||
|
||||
$this->clientRepo->archive($client);
|
||||
|
||||
$transformer = new ClientTransformer(Auth::user()->account, Input::get('serializer'));
|
||||
|
@ -510,7 +510,7 @@ if (!defined('CONTACT_EMAIL')) {
|
||||
define('NINJA_GATEWAY_CONFIG', 'NINJA_GATEWAY_CONFIG');
|
||||
define('NINJA_WEB_URL', 'https://www.invoiceninja.com');
|
||||
define('NINJA_APP_URL', 'https://app.invoiceninja.com');
|
||||
define('NINJA_VERSION', '2.5.0.1');
|
||||
define('NINJA_VERSION', '2.5.0.2');
|
||||
define('NINJA_DATE', '2000-01-01');
|
||||
|
||||
define('SOCIAL_LINK_FACEBOOK', 'https://www.facebook.com/invoiceninja');
|
||||
|
@ -787,14 +787,7 @@ function ItemModel(data) {
|
||||
|
||||
this.totals.total = ko.computed(function() {
|
||||
var total = self.totals.rawTotal();
|
||||
return total ? model.invoice().formatMoney(total) : '';
|
||||
/*
|
||||
if (window.hasOwnProperty('model') && model.invoice && model.invoice() && model.invoice().client()) {
|
||||
return total ? model.invoice().formatMoney(total) : '';
|
||||
} else {
|
||||
return total ? model.invoice().formatMoney(total, 1) : '';
|
||||
}
|
||||
*/
|
||||
return window.hasOwnProperty('model') && total ? model.invoice().formatMoney(total) : '';
|
||||
});
|
||||
|
||||
this.hideActions = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user