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
44f0e3f778
commit
eed345cff6
@ -15,6 +15,29 @@ class ClientTransformer extends EntityTransformer
|
||||
* @SWG\Property(property="id", type="integer", example=1, readOnly=true)
|
||||
* @SWG\Property(property="balance", type="float", example=10, readOnly=true)
|
||||
* @SWG\Property(property="paid_to_date", type="float", example=10, readOnly=true)
|
||||
* @SWG\Property(property="user_id", type="integer", example=1)
|
||||
* @SWG\Property(property="account_key", type="string", example="123456")
|
||||
* @SWG\Property(property="updated_at", type="date-time", example="2016-01-01 12:10:00")
|
||||
* @SWG\Property(property="deleted_at", type="date-time", example="2016-01-01 12:10:00")
|
||||
* @SWG\Property(property="address1", type="string", example="10 Main St.")
|
||||
* @SWG\Property(property="address2", type="string", example="1st Floor")
|
||||
* @SWG\Property(property="city", type="string", example="New York")
|
||||
* @SWG\Property(property="state", type="string", example="NY")
|
||||
* @SWG\Property(property="postal_code", type="string", example=10010)
|
||||
* @SWG\Property(property="country_id", type="integer", example=840)
|
||||
* @SWG\Property(property="work_phone", type="string", example="(212) 555-1212")
|
||||
* @SWG\Property(property="private_notes", type="string", example="Notes...")
|
||||
* @SWG\Property(property="last_login", type="date-time", example="2016-01-01 12:10:00")
|
||||
* @SWG\Property(property="website", type="string", example="http://www.example.com")
|
||||
* @SWG\Property(property="industry_id", type="integer", example=1)
|
||||
* @SWG\Property(property="size_id", type="integer", example=1)
|
||||
* @SWG\Property(property="is_deleted", type="boolean", example=false)
|
||||
* @SWG\Property(property="payment_terms", type="", example=30)
|
||||
* @SWG\Property(property="custom_value1", type="string", example="Value")
|
||||
* @SWG\Property(property="custom_value2", type="string", example="Value")
|
||||
* @SWG\Property(property="vat_number", type="string", example="123456")
|
||||
* @SWG\Property(property="id_number", type="string", example="123456")
|
||||
* @SWG\Property(property="language_id", type="integer", example=1)
|
||||
*/
|
||||
|
||||
protected $defaultIncludes = [
|
||||
@ -57,8 +80,6 @@ class ClientTransformer extends EntityTransformer
|
||||
'country_id' => (int) $client->country_id,
|
||||
'work_phone' => $client->work_phone,
|
||||
'private_notes' => $client->private_notes,
|
||||
'balance' => (float) $client->balance,
|
||||
'paid_to_date' => $client->paid_to_date,
|
||||
'last_login' => $client->last_login,
|
||||
'website' => $client->website,
|
||||
'industry_id' => (int) $client->industry_id,
|
||||
|
6
public/css/built.css
vendored
6
public/css/built.css
vendored
@ -2354,7 +2354,7 @@ body { background: #f8f8f8 !important;
|
||||
font-size: 15px;
|
||||
}
|
||||
html {
|
||||
overflow-y: scroll;
|
||||
/* overflow-y: scroll; */
|
||||
}
|
||||
.bold { font-weight: 700; }
|
||||
a {color:#0b4d78;}
|
||||
@ -3378,7 +3378,3 @@ ul.user-accounts a:hover div.remove {
|
||||
content: "";
|
||||
background-color: #e37329;
|
||||
}
|
||||
|
||||
.gitter-open-chat-button {
|
||||
background-color: #0b4d78 !important;
|
||||
}
|
6
public/css/style.css
vendored
6
public/css/style.css
vendored
@ -3,7 +3,7 @@ body { background: #f8f8f8 !important;
|
||||
font-size: 15px;
|
||||
}
|
||||
html {
|
||||
overflow-y: scroll;
|
||||
/* overflow-y: scroll; */
|
||||
}
|
||||
.bold { font-weight: 700; }
|
||||
a {color:#0b4d78;}
|
||||
@ -1027,7 +1027,3 @@ ul.user-accounts a:hover div.remove {
|
||||
content: "";
|
||||
background-color: #e37329;
|
||||
}
|
||||
|
||||
.gitter-open-chat-button {
|
||||
background-color: #0b4d78 !important;
|
||||
}
|
@ -497,7 +497,8 @@
|
||||
{!! Former::text('last_name')->data_bind("value: last_name, valueUpdate: 'afterkeydown',
|
||||
attr: {name: 'client[contacts][' + \$index() + '][last_name]'}") !!}
|
||||
{!! Former::text('email')->data_bind("value: email, valueUpdate: 'afterkeydown',
|
||||
attr: {name: 'client[contacts][' + \$index() + '][email]', id:'email'+\$index()}") !!}
|
||||
attr: {name: 'client[contacts][' + \$index() + '][email]', id:'email'+\$index()}")
|
||||
->addClass('client-email') !!}
|
||||
{!! Former::text('phone')->data_bind("value: phone, valueUpdate: 'afterkeydown',
|
||||
attr: {name: 'client[contacts][' + \$index() + '][phone]'}") !!}
|
||||
|
||||
|
@ -125,9 +125,9 @@ function ViewModel(data) {
|
||||
self.clientFormComplete = function() {
|
||||
trackEvent('/activity', '/save_client_form');
|
||||
|
||||
var email = $('#email0').val();
|
||||
var firstName = $('#first_name').val();
|
||||
var lastName = $('#last_name').val();
|
||||
var email = $("[name='client[contacts][0][email]']").val();
|
||||
var firstName = $("[name='client[contacts][0][first_name]']").val();
|
||||
var lastName = $("[name='client[contacts][0][last_name]']").val();
|
||||
var name = $('#name').val();
|
||||
|
||||
if (name) {
|
||||
@ -139,7 +139,7 @@ function ViewModel(data) {
|
||||
}
|
||||
|
||||
var isValid = true;
|
||||
$("input[name='email']").each(function(item, value) {
|
||||
$('input.client-email').each(function(item, value) {
|
||||
var email = $(value).val();
|
||||
if (!name && (!email || !isValidEmailAddress(email))) {
|
||||
isValid = false;
|
||||
|
@ -91,6 +91,8 @@ header("Access-Control-Allow-Headers: X-Requested-With");
|
||||
if (key && key.trim() != "") {
|
||||
var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("X-Ninja-Token", key, "header");
|
||||
window.swaggerUi.api.clientAuthorizations.add("api_key", apiKeyAuth);
|
||||
var ajaxRequest = new SwaggerClient.ApiKeyAuthorization("X-Requested-With", "XMLHttpRequest", "header");
|
||||
window.swaggerUi.api.clientAuthorizations.add("ajax", ajaxRequest);
|
||||
log("added key " + key);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user