Bug Fixes
This commit is contained in:
commit
9428557e70
3 changed files with 3 additions and 10 deletions
|
|
@ -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…
Add table
Reference in a new issue