mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge remote-tracking branch 'upstream/develop' into develop
This commit is contained in:
commit
65391ee76f
@ -70,6 +70,7 @@ script:
|
|||||||
- php ./vendor/codeception/codeception/codecept run --debug acceptance ExpenseCest.php
|
- php ./vendor/codeception/codeception/codecept run --debug acceptance ExpenseCest.php
|
||||||
- php ./vendor/codeception/codeception/codecept run --debug acceptance CreditCest.php
|
- php ./vendor/codeception/codeception/codecept run --debug acceptance CreditCest.php
|
||||||
- php ./vendor/codeception/codeception/codecept run --debug acceptance InvoiceCest.php
|
- php ./vendor/codeception/codeception/codecept run --debug acceptance InvoiceCest.php
|
||||||
|
- php ./vendor/codeception/codeception/codecept run --debug acceptance QuoteCest.php
|
||||||
- php ./vendor/codeception/codeception/codecept run --debug acceptance InvoiceDesignCest.php
|
- php ./vendor/codeception/codeception/codecept run --debug acceptance InvoiceDesignCest.php
|
||||||
- php ./vendor/codeception/codeception/codecept run acceptance OnlinePaymentCest.php
|
- php ./vendor/codeception/codeception/codecept run acceptance OnlinePaymentCest.php
|
||||||
- php ./vendor/codeception/codeception/codecept run --debug acceptance PaymentCest.php
|
- php ./vendor/codeception/codeception/codecept run --debug acceptance PaymentCest.php
|
||||||
|
@ -74,24 +74,7 @@ class AccountApiController extends BaseAPIController
|
|||||||
$account = Auth::user()->account;
|
$account = Auth::user()->account;
|
||||||
$updatedAt = $request->updated_at ? date('Y-m-d H:i:s', $request->updated_at) : false;
|
$updatedAt = $request->updated_at ? date('Y-m-d H:i:s', $request->updated_at) : false;
|
||||||
|
|
||||||
$map = [
|
$account->loadAllData($updatedAt);
|
||||||
'users' => [],
|
|
||||||
'clients' => ['contacts'],
|
|
||||||
'invoices' => ['invoice_items', 'user', 'client', 'payments'],
|
|
||||||
'products' => [],
|
|
||||||
'tax_rates' => [],
|
|
||||||
'expenses' => ['client', 'invoice', 'vendor'],
|
|
||||||
'payments' => ['invoice'],
|
|
||||||
];
|
|
||||||
|
|
||||||
foreach ($map as $key => $values) {
|
|
||||||
$account->load([$key => function($query) use ($values, $updatedAt) {
|
|
||||||
$query->withTrashed()->with($values);
|
|
||||||
if ($updatedAt) {
|
|
||||||
$query->where('updated_at', '>=', $updatedAt);
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
}
|
|
||||||
|
|
||||||
$transformer = new AccountTransformer(null, $request->serializer);
|
$transformer = new AccountTransformer(null, $request->serializer);
|
||||||
$account = $this->createItem($account, $transformer, 'account');
|
$account = $this->createItem($account, $transformer, 'account');
|
||||||
|
@ -11,9 +11,9 @@ use Request;
|
|||||||
use Redirect;
|
use Redirect;
|
||||||
use Session;
|
use Session;
|
||||||
use URL;
|
use URL;
|
||||||
|
use Password;
|
||||||
use Utils;
|
use Utils;
|
||||||
use Validator;
|
use Validator;
|
||||||
use Illuminate\Auth\Passwords\TokenRepositoryInterface;
|
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Http\Requests;
|
use App\Http\Requests;
|
||||||
use App\Ninja\Repositories\AccountRepository;
|
use App\Ninja\Repositories\AccountRepository;
|
||||||
@ -240,7 +240,7 @@ class UserController extends BaseController
|
|||||||
*
|
*
|
||||||
* @param string $code
|
* @param string $code
|
||||||
*/
|
*/
|
||||||
public function confirm($code, TokenRepositoryInterface $tokenRepo)
|
public function confirm($code)
|
||||||
{
|
{
|
||||||
$user = User::where('confirmation_code', '=', $code)->get()->first();
|
$user = User::where('confirmation_code', '=', $code)->get()->first();
|
||||||
|
|
||||||
@ -253,7 +253,7 @@ class UserController extends BaseController
|
|||||||
|
|
||||||
if ($user->public_id) {
|
if ($user->public_id) {
|
||||||
//Auth::login($user);
|
//Auth::login($user);
|
||||||
$token = $tokenRepo->create($user);
|
$token = Password::getRepository()->create($user);
|
||||||
|
|
||||||
return Redirect::to("/password/reset/{$token}");
|
return Redirect::to("/password/reset/{$token}");
|
||||||
} else {
|
} else {
|
||||||
|
@ -24,7 +24,7 @@ class CreateExpenseRequest extends Request
|
|||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'amount' => 'positive',
|
'amount' => 'numeric',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ class UpdateExpenseRequest extends Request
|
|||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'amount' => 'positive',
|
'amount' => 'numeric',
|
||||||
'expense_date' => 'required',
|
'expense_date' => 'required',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -104,8 +104,8 @@ class Login
|
|||||||
"<ORG>".$this->bank->org."\n".
|
"<ORG>".$this->bank->org."\n".
|
||||||
"<FID>".$this->bank->fid."\n".
|
"<FID>".$this->bank->fid."\n".
|
||||||
"</FI>\n".
|
"</FI>\n".
|
||||||
"<APPID>QMOFX\n".
|
"<APPID>QWIN\n".
|
||||||
"<APPVER>1900\n".
|
"<APPVER>2500\n".
|
||||||
"</SONRQ>\n".
|
"</SONRQ>\n".
|
||||||
"</SIGNONMSGSRQV1>\n".
|
"</SIGNONMSGSRQV1>\n".
|
||||||
"<SIGNUPMSGSRQV1>\n".
|
"<SIGNUPMSGSRQV1>\n".
|
||||||
@ -171,8 +171,8 @@ class Account
|
|||||||
"<ORG>".$this->login->bank->org."\n".
|
"<ORG>".$this->login->bank->org."\n".
|
||||||
"<FID>".$this->login->bank->fid."\n".
|
"<FID>".$this->login->bank->fid."\n".
|
||||||
"</FI>\n".
|
"</FI>\n".
|
||||||
"<APPID>QMOFX\n".
|
"<APPID>QWIN\n".
|
||||||
"<APPVER>1900\n".
|
"<APPVER>2500\n".
|
||||||
"</SONRQ>\n".
|
"</SONRQ>\n".
|
||||||
"</SIGNONMSGSRQV1>\n";
|
"</SIGNONMSGSRQV1>\n";
|
||||||
if ($this->type == 'BANK') {
|
if ($this->type == 'BANK') {
|
||||||
|
@ -614,6 +614,28 @@ class Account extends Eloquent
|
|||||||
$this->save();
|
$this->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function loadAllData($updatedAt = null)
|
||||||
|
{
|
||||||
|
$map = [
|
||||||
|
'users' => [],
|
||||||
|
'clients' => ['contacts'],
|
||||||
|
'invoices' => ['invoice_items', 'user', 'client', 'payments'],
|
||||||
|
'products' => [],
|
||||||
|
'tax_rates' => [],
|
||||||
|
'expenses' => ['client', 'invoice', 'vendor'],
|
||||||
|
'payments' => ['invoice'],
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($map as $key => $values) {
|
||||||
|
$this->load([$key => function($query) use ($values, $updatedAt) {
|
||||||
|
$query->withTrashed()->with($values);
|
||||||
|
if ($updatedAt) {
|
||||||
|
$query->where('updated_at', '>=', $updatedAt);
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function loadLocalizationSettings($client = false)
|
public function loadLocalizationSettings($client = false)
|
||||||
{
|
{
|
||||||
$this->load('timezone', 'date_format', 'datetime_format', 'language');
|
$this->load('timezone', 'date_format', 'datetime_format', 'language');
|
||||||
@ -1050,7 +1072,13 @@ class Account extends Eloquent
|
|||||||
|
|
||||||
public function hasLargeFont()
|
public function hasLargeFont()
|
||||||
{
|
{
|
||||||
return stripos($this->getBodyFontName(), 'chinese') || stripos($this->getHeaderFontName(), 'chinese');
|
foreach (['chinese', 'japanese'] as $language) {
|
||||||
|
if (stripos($this->getBodyFontName(), $language) || stripos($this->getHeaderFontName(), $language)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getFontsUrl($protocol = ''){
|
public function getFontsUrl($protocol = ''){
|
||||||
|
@ -24,8 +24,13 @@ class AppServiceProvider extends ServiceProvider {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Form::macro('nav_link', function($url, $text, $url2 = '', $extra = '') {
|
Form::macro('nav_link', function($url, $text, $url2 = '', $extra = '') {
|
||||||
|
$capitalize = config('former.capitalize_translations');
|
||||||
$class = ( Request::is($url) || Request::is($url.'/*') || Request::is($url2.'/*') ) ? ' class="active"' : '';
|
$class = ( Request::is($url) || Request::is($url.'/*') || Request::is($url2.'/*') ) ? ' class="active"' : '';
|
||||||
|
if ($capitalize) {
|
||||||
$title = ucwords(trans("texts.$text")) . Utils::getProLabel($text);
|
$title = ucwords(trans("texts.$text")) . Utils::getProLabel($text);
|
||||||
|
} else {
|
||||||
|
$title = trans("texts.$text") . Utils::getProLabel($text);
|
||||||
|
}
|
||||||
return '<li'.$class.'><a href="'.URL::to($url).'" '.$extra.'>'.$title.'</a></li>';
|
return '<li'.$class.'><a href="'.URL::to($url).'" '.$extra.'>'.$title.'</a></li>';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
// Whether text that comes out of the translated
|
// Whether text that comes out of the translated
|
||||||
// should be capitalized (ex: email => Email) automatically
|
// should be capitalized (ex: email => Email) automatically
|
||||||
'capitalize_translations' => true,
|
'capitalize_translations' => false,
|
||||||
|
|
||||||
// An array of attributes to automatically translate
|
// An array of attributes to automatically translate
|
||||||
'translatable' => array(
|
'translatable' => array(
|
||||||
|
@ -108,17 +108,4 @@ return [
|
|||||||
|
|
||||||
'sendmail' => '/usr/sbin/sendmail -bs',
|
'sendmail' => '/usr/sbin/sendmail -bs',
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Mail "Pretend"
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| When this option is enabled, e-mail will not actually be sent over the
|
|
||||||
| web and will instead be written to your application's logs files so
|
|
||||||
| you may inspect the message. This is great for local development.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
'pretend' => env('MAIL_PRETEND'),
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@ -108,6 +108,10 @@ class CountriesSeeder extends Seeder {
|
|||||||
'swap_postal_code' => true,
|
'swap_postal_code' => true,
|
||||||
'swap_currency_symbol' => true,
|
'swap_currency_symbol' => true,
|
||||||
],
|
],
|
||||||
|
'JP' => [ // Japan
|
||||||
|
'swap_postal_code' => true,
|
||||||
|
'swap_currency_symbol' => true,
|
||||||
|
],
|
||||||
'LT' => [ // Lithuania
|
'LT' => [ // Lithuania
|
||||||
'swap_currency_symbol' => true,
|
'swap_currency_symbol' => true,
|
||||||
],
|
],
|
||||||
|
@ -53,6 +53,7 @@ class CurrenciesSeeder extends Seeder
|
|||||||
['name' => 'Romanian New Leu', 'code' => 'RON', 'symbol' => '', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'],
|
['name' => 'Romanian New Leu', 'code' => 'RON', 'symbol' => '', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'],
|
||||||
['name' => 'Croatian Kuna', 'code' => 'HKR', 'symbol' => 'kn', 'precision' => '2', 'thousand_separator' => '.', 'decimal_separator' => ','],
|
['name' => 'Croatian Kuna', 'code' => 'HKR', 'symbol' => 'kn', 'precision' => '2', 'thousand_separator' => '.', 'decimal_separator' => ','],
|
||||||
['name' => 'Saudi Riyal', 'code' => 'SAR', 'symbol' => '', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'],
|
['name' => 'Saudi Riyal', 'code' => 'SAR', 'symbol' => '', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'],
|
||||||
|
['name' => 'Japanese Yen', 'code' => 'JPY', 'symbol' => '¥', 'precision' => '0', 'thousand_separator' => ',', 'decimal_separator' => '.'],
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($currencies as $currency) {
|
foreach ($currencies as $currency) {
|
||||||
|
@ -220,6 +220,28 @@ class FontsSeeder extends Seeder
|
|||||||
'bolditalics' => 'UKai.ttf',
|
'bolditalics' => 'UKai.ttf',
|
||||||
'sort_order' => 1800,
|
'sort_order' => 1800,
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
'folder' => 'gensha_gothic_p',
|
||||||
|
'name' => 'GenshinGothic P - Japanese',
|
||||||
|
'css_stack' => '',
|
||||||
|
'google_font' => '',
|
||||||
|
'normal' => 'GenShinGothic-P-Regular.ttf',
|
||||||
|
'bold' => 'GenShinGothic-P-Regular.ttf',
|
||||||
|
'italics' => 'GenShinGothic-P-Regular.ttf',
|
||||||
|
'bolditalics' => 'GenShinGothic-P-Regular.ttf',
|
||||||
|
'sort_order' => 1800,
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'folder' => 'gensha_gothic',
|
||||||
|
'name' => 'GenshinGothic - Japanese',
|
||||||
|
'css_stack' => '',
|
||||||
|
'google_font' => '',
|
||||||
|
'normal' => 'GenShinGothic-Regular.ttf',
|
||||||
|
'bold' => 'GenShinGothic-Regular.ttf',
|
||||||
|
'italics' => 'GenShinGothic-Regular.ttf',
|
||||||
|
'bolditalics' => 'GenShinGothic-Regular.ttf',
|
||||||
|
'sort_order' => 1800,
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($fonts as $font) {
|
foreach ($fonts as $font) {
|
||||||
|
BIN
public/fonts/invoice-fonts/gensha_gothic/GenShinGothic-Regular.ttf
Executable file
BIN
public/fonts/invoice-fonts/gensha_gothic/GenShinGothic-Regular.ttf
Executable file
Binary file not shown.
91
public/fonts/invoice-fonts/gensha_gothic/SIL_Open_Font_License_1.1.txt
Executable file
91
public/fonts/invoice-fonts/gensha_gothic/SIL_Open_Font_License_1.1.txt
Executable file
@ -0,0 +1,91 @@
|
|||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
BIN
public/fonts/invoice-fonts/gensha_gothic_p/GenShinGothic-P-Regular.ttf
Executable file
BIN
public/fonts/invoice-fonts/gensha_gothic_p/GenShinGothic-P-Regular.ttf
Executable file
Binary file not shown.
91
public/fonts/invoice-fonts/gensha_gothic_p/SIL_Open_Font_License_1.1.txt
Executable file
91
public/fonts/invoice-fonts/gensha_gothic_p/SIL_Open_Font_License_1.1.txt
Executable file
@ -0,0 +1,91 @@
|
|||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
93
public/js/vfs_fonts/gensha_gothic.js
Normal file
93
public/js/vfs_fonts/gensha_gothic.js
Normal file
File diff suppressed because one or more lines are too long
93
public/js/vfs_fonts/gensha_gothic_p.js
Normal file
93
public/js/vfs_fonts/gensha_gothic_p.js
Normal file
File diff suppressed because one or more lines are too long
20
resources/lang/ja/pagination.php
Normal file
20
resources/lang/ja/pagination.php
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return array(
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Pagination Language Lines
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| The following language lines are used by the paginator library to build
|
||||||
|
| the simple pagination links. You are free to change them to anything
|
||||||
|
| you want to customize your views to better match your application.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'previous' => '« 前へ',
|
||||||
|
|
||||||
|
'next' => '次へ »',
|
||||||
|
|
||||||
|
);
|
22
resources/lang/ja/passwords.php
Normal file
22
resources/lang/ja/passwords.php
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Password Reminder Language Lines
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| The following language lines are the default lines which match reasons
|
||||||
|
| that are given by the password broker for a password update attempt
|
||||||
|
| has failed, such as for an invalid token or invalid new password.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
"password" => "パスワードは6文字以上必要です。またパスワードの確認と一致している必要があります。",
|
||||||
|
"user" => "そのEメールアドレスのユーザは存在しません。",
|
||||||
|
"token" => "このパスワード・リセット・トークンは正しくありません。",
|
||||||
|
"sent" => "パスワードリセットのためのリンクをメールしました!",
|
||||||
|
"reset" => "パスワードはリセットされました!",
|
||||||
|
|
||||||
|
];
|
24
resources/lang/ja/reminders.php
Normal file
24
resources/lang/ja/reminders.php
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return array(
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Password Reminder Language Lines
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| The following language lines are the default lines which match reasons
|
||||||
|
| that are given by the password broker for a password update attempt
|
||||||
|
| has failed, such as for an invalid token or invalid new password.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
"password" => "パスワードは6文字以上必要です。またパスワードの確認と一致している必要があります。",
|
||||||
|
|
||||||
|
"user" => "そのEメールアドレスのユーザは存在しません。",
|
||||||
|
|
||||||
|
"token" => "このパスワード・リセット・トークンは正しくありません。",
|
||||||
|
|
||||||
|
"sent" => "パスワードリマインダーが送信されました!",
|
||||||
|
|
||||||
|
);
|
1059
resources/lang/ja/texts.php
Normal file
1059
resources/lang/ja/texts.php
Normal file
File diff suppressed because it is too large
Load Diff
106
resources/lang/ja/validation.php
Normal file
106
resources/lang/ja/validation.php
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return array(
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Validation Language Lines
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| The following language lines contain the default error messages used by
|
||||||
|
| the validator class. Some of these rules have multiple versions such
|
||||||
|
| such as the size rules. Feel free to tweak each of these messages.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
"accepted" => ":attribute はmust be accepted.",
|
||||||
|
"active_url" => ":attribute は正しいURLではありません。",
|
||||||
|
"after" => ":attribute は:date以降の日付である必要があります。",
|
||||||
|
"alpha" => ":attribute は半角英字のみ可能です。",
|
||||||
|
"alpha_dash" => ":attribute は半角英数字およびハイフンのみ可能です。",
|
||||||
|
"alpha_num" => ":attribute は半角英数字のみ可能です。",
|
||||||
|
"array" => "The :attribute must be an array.",
|
||||||
|
"before" => ":attribute は:date以前の日付である必要があります。",
|
||||||
|
"between" => array(
|
||||||
|
"numeric" => ":attribute は :min - :max の範囲です。",
|
||||||
|
"file" => ":attribute は :min - :max KBの範囲です。",
|
||||||
|
"string" => ":attribute は :min - :max 文字の範囲です。",
|
||||||
|
"array" => ":attribute は :min - :max 個の範囲です。",
|
||||||
|
),
|
||||||
|
"confirmed" => "The :attribute confirmation does not match.",
|
||||||
|
"date" => "The :attribute is not a valid date.",
|
||||||
|
"date_format" => "The :attribute does not match the format :format.",
|
||||||
|
"different" => "The :attribute and :other must be different.",
|
||||||
|
"digits" => "The :attribute must be :digits digits.",
|
||||||
|
"digits_between" => "The :attribute must be between :min and :max digits.",
|
||||||
|
"email" => "The :attribute format is invalid.",
|
||||||
|
"exists" => "The selected :attribute is invalid.",
|
||||||
|
"image" => "The :attribute must be an image.",
|
||||||
|
"in" => "The selected :attribute is invalid.",
|
||||||
|
"integer" => "The :attribute must be an integer.",
|
||||||
|
"ip" => "The :attribute must be a valid IP address.",
|
||||||
|
"max" => array(
|
||||||
|
"numeric" => ":attribute は:max 以下の必要があります。",
|
||||||
|
"file" => ":attribute は:max KB以下の必要があります。",
|
||||||
|
"string" => ":attribute は:max 文字以下の必要があります。",
|
||||||
|
"array" => ":attribute は:max 個以下の必要があります。",
|
||||||
|
),
|
||||||
|
"mimes" => ":attribute は以下のファイル・タイプの必要があります。 :values.",
|
||||||
|
"min" => array(
|
||||||
|
"numeric" => ":attribute は:min 以上の必要があります。",
|
||||||
|
"file" => ":attribute は:min KB以上の必要があります。",
|
||||||
|
"string" => ":attribute は:min 文字以上の必要があります。",
|
||||||
|
"array" => ":attribute は:min 個以上の必要があります。",
|
||||||
|
),
|
||||||
|
"not_in" => "選択された :attribute は正しくありません。",
|
||||||
|
"numeric" => ":attribute は数値の必要があります。",
|
||||||
|
"regex" => ":attribute のフォーマットが正しくありません。",
|
||||||
|
"required" => ":attribute フィールドが必要です。",
|
||||||
|
"required_if" => ":other が :valueの場合、:attribute フィールドが必要です。",
|
||||||
|
"required_with" => "The :attribute field is required when :values is present.",
|
||||||
|
"required_without" => "The :attribute field is required when :values is not present.",
|
||||||
|
"same" => ":attribute と :other が一致していません。",
|
||||||
|
"size" => array(
|
||||||
|
"numeric" => "The :attribute must be :size.",
|
||||||
|
"file" => "The :attribute must be :size kilobytes.",
|
||||||
|
"string" => "The :attribute must be :size characters.",
|
||||||
|
"array" => "The :attribute must contain :size items.",
|
||||||
|
),
|
||||||
|
"unique" => ":attribute は既に使われています。",
|
||||||
|
"url" => ":attribute のフォーマットが正しくありません。",
|
||||||
|
|
||||||
|
"positive" => "The :attribute must be greater than zero.",
|
||||||
|
"has_credit" => "The client does not have enough credit.",
|
||||||
|
"notmasked" => "The values are masked",
|
||||||
|
"less_than" => "The :attribute must be less than :value",
|
||||||
|
"has_counter" => "The value must contain {\$counter}",
|
||||||
|
"valid_contacts" => "The contact must have either an email or name",
|
||||||
|
"valid_invoice_items" => "The invoice exceeds the maximum amount",
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Custom Validation Language Lines
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Here you may specify custom validation messages for attributes using the
|
||||||
|
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||||
|
| specify a specific custom language line for a given attribute rule.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'custom' => array(),
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Custom Validation Attributes
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| The following language lines are used to swap attribute place-holders
|
||||||
|
| with something more reader friendly such as E-Mail Address instead
|
||||||
|
| of "email". This simply helps us make messages a little cleaner.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'attributes' => array(),
|
||||||
|
|
||||||
|
);
|
@ -93,7 +93,8 @@
|
|||||||
<input type="checkbox" value="1" data-bind="checked: send_invoice, attr: {id: $index() + '_check', name: 'client[contacts][' + $index() + '][send_invoice]'}">
|
<input type="checkbox" value="1" data-bind="checked: send_invoice, attr: {id: $index() + '_check', name: 'client[contacts][' + $index() + '][send_invoice]'}">
|
||||||
<span data-bind="html: email.display"></span>
|
<span data-bind="html: email.display"></span>
|
||||||
</label>
|
</label>
|
||||||
<span data-bind="html: $data.view_as_recipient, visible: !$root.invoice().is_recurring()"></span>
|
<span data-bind="visible: !$root.invoice().is_recurring()">
|
||||||
|
<span data-bind="html: $data.view_as_recipient"></span>
|
||||||
@if (Utils::isConfirmed())
|
@if (Utils::isConfirmed())
|
||||||
<span style="vertical-align:text-top;color:red" class="fa fa-exclamation-triangle"
|
<span style="vertical-align:text-top;color:red" class="fa fa-exclamation-triangle"
|
||||||
data-bind="visible: $data.email_error, tooltip: {title: $data.email_error}"></span>
|
data-bind="visible: $data.email_error, tooltip: {title: $data.email_error}"></span>
|
||||||
@ -101,6 +102,7 @@
|
|||||||
data-bind="visible: $data.invitation_status, tooltip: {title: $data.invitation_status, html: true},
|
data-bind="visible: $data.invitation_status, tooltip: {title: $data.invitation_status, html: true},
|
||||||
style: {color: $data.hasOwnProperty('invitation_viewed') && $data.invitation_viewed() ? '#57D172':'#B1B5BA'}"></span>
|
style: {color: $data.hasOwnProperty('invitation_viewed') && $data.invitation_viewed() ? '#57D172':'#B1B5BA'}"></span>
|
||||||
@endif
|
@endif
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
62
tests/acceptance/QuoteCest.php
Normal file
62
tests/acceptance/QuoteCest.php
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Faker\Factory;
|
||||||
|
|
||||||
|
class QuoteCest
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Faker\Generator
|
||||||
|
*/
|
||||||
|
private $faker;
|
||||||
|
|
||||||
|
public function _before(AcceptanceTester $I)
|
||||||
|
{
|
||||||
|
$I->checkIfLogin($I);
|
||||||
|
|
||||||
|
$this->faker = Factory::create();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function createQuote(AcceptanceTester $I)
|
||||||
|
{
|
||||||
|
$clientEmail = $this->faker->safeEmail;
|
||||||
|
$productKey = $this->faker->text(10);
|
||||||
|
|
||||||
|
$I->wantTo('create a quote');
|
||||||
|
|
||||||
|
// create client
|
||||||
|
$I->amOnPage('/clients/create');
|
||||||
|
$I->fillField(['name' => 'contacts[0][email]'], $clientEmail);
|
||||||
|
$I->click('Save');
|
||||||
|
$I->see($clientEmail);
|
||||||
|
|
||||||
|
// create product
|
||||||
|
$I->amOnPage('/products/create');
|
||||||
|
$I->fillField(['name' => 'product_key'], $productKey);
|
||||||
|
$I->fillField(['name' => 'notes'], $this->faker->text(80));
|
||||||
|
$I->fillField(['name' => 'cost'], $this->faker->numberBetween(1, 20));
|
||||||
|
$I->click('Save');
|
||||||
|
$I->wait(1);
|
||||||
|
$I->see($productKey);
|
||||||
|
|
||||||
|
// create quote
|
||||||
|
$I->amOnPage('/quotes/create');
|
||||||
|
$I->selectDropdown($I, $clientEmail, '.client_select .dropdown-toggle');
|
||||||
|
$I->fillField('table.invoice-table tbody tr:nth-child(1) #product_key', $productKey);
|
||||||
|
$I->click('table.invoice-table tbody tr:nth-child(1) .tt-selectable');
|
||||||
|
$I->click('Save');
|
||||||
|
$I->see($clientEmail);
|
||||||
|
|
||||||
|
// enter payment
|
||||||
|
$clientId = $I->grabFromDatabase('contacts', 'client_id', ['email' => $clientEmail]);
|
||||||
|
$invoiceId = $I->grabFromDatabase('invoices', 'id', ['client_id' => $clientId]);
|
||||||
|
$invitationKey = $I->grabFromDatabase('invitations', 'invitation_key', ['invoice_id' => $invoiceId]);
|
||||||
|
|
||||||
|
$clientSession = $I->haveFriend('client');
|
||||||
|
$clientSession->does(function(AcceptanceTester $I) use ($invitationKey) {
|
||||||
|
$I->amOnPage('/view/' . $invitationKey);
|
||||||
|
$I->click('Approve');
|
||||||
|
$I->see('This quote is approved');
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user