mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Bug fixes
This commit is contained in:
parent
bf24e8c40f
commit
854f6777ab
@ -26,15 +26,20 @@ class InvoiceApiController extends Controller
|
|||||||
return Response::make($response, 200, $headers);
|
return Response::make($response, 200, $headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
public function store()
|
public function store()
|
||||||
{
|
{
|
||||||
$data = Input::all();
|
if (!Utils::isPro()) {
|
||||||
$invoice = $this->invoiceRepo->save(false, $data, false);
|
return Redirect::to('/');
|
||||||
|
}
|
||||||
|
|
||||||
$response = json_encode($invoice, JSON_PRETTY_PRINT);
|
$data = Input::all();
|
||||||
$headers = Utils::getApiHeaders();
|
$invoice = $this->invoiceRepo->save(false, $data, false);
|
||||||
return Response::make($response, 200, $headers);
|
|
||||||
}
|
$response = json_encode($invoice, JSON_PRETTY_PRINT);
|
||||||
*/
|
$headers = Utils::getApiHeaders();
|
||||||
|
|
||||||
|
return Response::make($response, 200, $headers);
|
||||||
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -220,7 +220,7 @@ class InvoiceRepository
|
|||||||
$invoice->is_quote = true;
|
$invoice->is_quote = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$invoice->client_id = $data['client_id'];
|
$invoice->client_id = $data['client_id'];
|
||||||
$invoice->discount = round(Utils::parseFloat($data['discount']), 2);
|
$invoice->discount = round(Utils::parseFloat($data['discount']), 2);
|
||||||
$invoice->is_amount_discount = $data['is_amount_discount'] ? true : false;
|
$invoice->is_amount_discount = $data['is_amount_discount'] ? true : false;
|
||||||
|
@ -58,13 +58,11 @@ $monolog->pushHandler(new Monolog\Handler\SyslogHandler('intranet', 'user', Logg
|
|||||||
|
|
||||||
App::error(function(Exception $exception, $code)
|
App::error(function(Exception $exception, $code)
|
||||||
{
|
{
|
||||||
if (Utils::isNinjaProd())
|
Utils::logError($code . ' ' . Utils::getErrorString($exception));
|
||||||
{
|
|
||||||
Utils::logError($code . ' ' . Utils::getErrorString($exception));
|
if (Utils::isNinjaProd()) {
|
||||||
return Response::view('error', ['hideHeader' => true, 'error' => "A {$code} error occurred."], $code);
|
return Response::view('error', ['hideHeader' => true, 'error' => "A {$code} error occurred."], $code);
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<h1>{{ trans('texts.confirmation_header') }}</h1>
|
<h1>{{ trans('texts.confirmation_header') }}</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{{ $invitationMessage . trans('texts.confirmation_message') }}
|
{{ $invitationMessage . trans('texts.confirmation_message') }}<br/>
|
||||||
<a href='{{{ URL::to("user/confirm/{$user->confirmation_code}") }}}'>
|
<a href='{{{ URL::to("user/confirm/{$user->confirmation_code}") }}}'>
|
||||||
{{{ URL::to("user/confirm/{$user->confirmation_code}") }}}
|
{{{ URL::to("user/confirm/{$user->confirmation_code}") }}}
|
||||||
</a>
|
</a>
|
||||||
|
@ -2,6 +2,28 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #f8f8f8;
|
||||||
|
color: #1b1a1a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-body {
|
||||||
|
padding-bottom: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-body">
|
||||||
|
|
||||||
|
|
||||||
<section data-type="background">
|
<section data-type="background">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -148,4 +170,8 @@
|
|||||||
<p> </p>
|
<p> </p>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
@stop
|
@stop
|
Loading…
x
Reference in New Issue
Block a user