diff --git a/.env.example b/.env.example index 20b6756d2570..b538ab1a0796 100644 --- a/.env.example +++ b/.env.example @@ -87,7 +87,6 @@ WEPAY_CLIENT_ID= WEPAY_CLIENT_SECRET= WEPAY_ENVIRONMENT=production # production or stage WEPAY_AUTO_UPDATE=true # Requires permission from WePay -WEPAY_ENABLE_CANADA=true WEPAY_FEE_PAYER=payee WEPAY_APP_FEE_CC_MULTIPLIER=0 WEPAY_APP_FEE_ACH_MULTIPLIER=0 diff --git a/README.md b/README.md index accea8be5da7..dce4460e214f 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,14 @@ Watch this [YouTube video](https://www.youtube.com/watch?v=xHGKvadapbA) for an o All Pro and Enterprise features from the hosted app are included in the open-source code. We offer a $20 per year white-label license to remove our branding. -The [self-host zip](https://www.invoiceninja.com/self-host/) includes all third party libraries whereas downloading the code from GitHub requires using Composer to install the dependencies. +The self-host zip includes all third party libraries whereas downloading the code from GitHub requires using Composer to install the dependencies. ## Affiliates Programs * Referral program (we pay you): $100 per sign up paid over 3 years - [Learn more](https://www.invoiceninja.com/referral-program/) * White-label reseller (you pay us): $500 sign up fee and either 10% of revenue or $1 per user per month ### Installation Options -* [Self-Host Zip](https://www.invoiceninja.com/knowledgebase/self-host/) +* [Self-Host Zip](http://docs.invoiceninja.com/en/latest/install.html) * [Docker File](https://github.com/invoiceninja/dockerfiles) * [Softaculous](https://www.softaculous.com/apps/ecommerce/Invoice_Ninja) @@ -54,9 +54,7 @@ The [self-host zip](https://www.invoiceninja.com/self-host/) includes all third * [D3.js](http://d3js.org/) visualizations ## Documentation -* [Self Host Guide](https://www.invoiceninja.com/self-host) * [User Guide](http://docs.invoiceninja.com/en/latest/) -* [Developer Guide](https://www.invoiceninja.com/knowledgebase/developer-guide/) * [Support Forum](https://www.invoiceninja.com/forums/forum/support/) * [Feature Roadmap](https://trello.com/b/63BbiVVe/) diff --git a/app/Console/Commands/CheckData.php b/app/Console/Commands/CheckData.php index ef44a83ad805..fd3f8543df1a 100644 --- a/app/Console/Commands/CheckData.php +++ b/app/Console/Commands/CheckData.php @@ -3,6 +3,7 @@ namespace App\Console\Commands; use Carbon; +use App\Libraries\CurlUtils; use DB; use Exception; use Illuminate\Console\Command; @@ -75,6 +76,7 @@ class CheckData extends Command $this->checkDraftSentInvoices(); } + $this->checkInvoices(); $this->checkBalances(); $this->checkContacts(); $this->checkUserAccounts(); @@ -131,6 +133,38 @@ class CheckData extends Command } } + private function checkInvoices() + { + if (! env('PHANTOMJS_BIN_PATH')) { + return; + } + + $date = new Carbon(); + $date = $date->subDays(1)->format('Y-m-d'); + + $invoices = Invoice::with('invitations') + ->where('created_at', '>', $date) + ->orderBy('id') + ->get(['id', 'balance']); + + foreach ($invoices as $invoice) { + $link = $invoice->getInvitationLink('view', true, true); + $this->logMessage('Checking invoice: ' . $invoice->id . ' - ' . $invoice->balance); + $result = CurlUtils::phantom('GET', $link . '?phantomjs=true&phantomjs_balances=true&phantomjs_secret=' . env('PHANTOMJS_SECRET')); + $result = floatval(strip_tags($result)); + $this->logMessage('Result: ' . $result); + + if ($result && $result != $invoice->balance) { + $this->logMessage("Amounts do not match {$link} - PHP: {$invoice->balance}, JS: {$result}"); + $this->isValid = false; + } + } + + if ($this->isValid) { + $this->logMessage('0 invoices with mismatched PHP/JS balances'); + } + } + private function checkOAuth() { // check for duplicate oauth ids diff --git a/app/Console/Commands/CreateTestData.php b/app/Console/Commands/CreateTestData.php index 93b134206378..80d85501fa3f 100644 --- a/app/Console/Commands/CreateTestData.php +++ b/app/Console/Commands/CreateTestData.php @@ -8,6 +8,10 @@ use App\Ninja\Repositories\ExpenseRepository; use App\Ninja\Repositories\InvoiceRepository; use App\Ninja\Repositories\PaymentRepository; use App\Ninja\Repositories\VendorRepository; +use App\Models\Client; +use App\Models\TaxRate; +use App\Models\Project; +use App\Models\ExpenseCategory; use Auth; use Faker\Factory; use Illuminate\Console\Command; @@ -94,6 +98,7 @@ class CreateTestData extends Command $this->createClients(); $this->createVendors(); + $this->createOtherObjects(); $this->info('Done'); } @@ -210,6 +215,50 @@ class CreateTestData extends Command } } + private function createOtherObjects() + { + $this->createTaxRate('Tax 1', 10, 1); + $this->createTaxRate('Tax 2', 20, 2); + + $this->createCategory('Category 1', 1); + $this->createCategory('Category 1', 2); + + $this->createProject('Project 1', 1); + $this->createProject('Project 2', 2); + } + + private function createTaxRate($name, $rate, $publicId) + { + $taxRate = new TaxRate(); + $taxRate->name = $name; + $taxRate->rate = $rate; + $taxRate->account_id = 1; + $taxRate->user_id = 1; + $taxRate->public_id = $publicId; + $taxRate->save(); + } + + private function createCategory($name, $publicId) + { + $category = new ExpenseCategory(); + $category->name = $name; + $category->account_id = 1; + $category->user_id = 1; + $category->public_id = $publicId; + $category->save(); + } + + private function createProject($name, $publicId) + { + $project = new Project(); + $project->name = $name; + $project->account_id = 1; + $project->client_id = 1; + $project->user_id = 1; + $project->public_id = $publicId; + $project->save(); + } + /** * @return array */ diff --git a/app/Console/Commands/SendRecurringInvoices.php b/app/Console/Commands/SendRecurringInvoices.php index 70cf6efa2ec5..05593022e8b8 100644 --- a/app/Console/Commands/SendRecurringInvoices.php +++ b/app/Console/Commands/SendRecurringInvoices.php @@ -4,13 +4,17 @@ namespace App\Console\Commands; use App\Models\Account; use App\Models\Invoice; +use App\Models\RecurringExpense; use App\Ninja\Mailers\ContactMailer as Mailer; use App\Ninja\Repositories\InvoiceRepository; +use App\Ninja\Repositories\RecurringExpenseRepository; use App\Services\PaymentService; use DateTime; use Illuminate\Console\Command; use Symfony\Component\Console\Input\InputOption; use Auth; +use Exception; +use Utils; /** * Class SendRecurringInvoices. @@ -49,25 +53,34 @@ class SendRecurringInvoices extends Command * @param InvoiceRepository $invoiceRepo * @param PaymentService $paymentService */ - public function __construct(Mailer $mailer, InvoiceRepository $invoiceRepo, PaymentService $paymentService) + public function __construct(Mailer $mailer, InvoiceRepository $invoiceRepo, PaymentService $paymentService, RecurringExpenseRepository $recurringExpenseRepo) { parent::__construct(); $this->mailer = $mailer; $this->invoiceRepo = $invoiceRepo; $this->paymentService = $paymentService; + $this->recurringExpenseRepo = $recurringExpenseRepo; } public function fire() { $this->info(date('Y-m-d H:i:s') . ' Running SendRecurringInvoices...'); - $today = new DateTime(); if ($database = $this->option('database')) { config(['database.default' => $database]); } - // check for counter resets + $this->resetCounters(); + $this->createInvoices(); + $this->billInvoices(); + $this->createExpenses(); + + $this->info(date('Y-m-d H:i:s') . ' Done'); + } + + private function resetCounters() + { $accounts = Account::where('reset_counter_frequency_id', '>', 0) ->orderBy('id', 'asc') ->get(); @@ -75,6 +88,11 @@ class SendRecurringInvoices extends Command foreach ($accounts as $account) { $account->checkCounterReset(); } + } + + private function createInvoices() + { + $today = new DateTime(); $invoices = Invoice::with('account.timezone', 'invoice_items', 'client', 'user') ->whereRaw('is_deleted IS FALSE AND deleted_at IS NULL AND is_recurring IS TRUE AND is_public IS TRUE AND frequency_id > 0 AND start_date <= ? AND (end_date IS NULL OR end_date >= ?)', [$today, $today]) @@ -94,14 +112,25 @@ class SendRecurringInvoices extends Command $account = $recurInvoice->account; $account->loadLocalizationSettings($recurInvoice->client); Auth::loginUsingId($recurInvoice->user_id); - $invoice = $this->invoiceRepo->createRecurringInvoice($recurInvoice); - if ($invoice && ! $invoice->isPaid()) { - $this->info('Sending Invoice'); - $this->mailer->sendInvoice($invoice); + try { + $invoice = $this->invoiceRepo->createRecurringInvoice($recurInvoice); + if ($invoice && ! $invoice->isPaid()) { + $this->info('Sending Invoice'); + $this->mailer->sendInvoice($invoice); + } + } catch (Exception $exception) { + $this->info('Error: ' . $exception->getMessage()); + Utils::logError($exception); } + Auth::logout(); } + } + + private function billInvoices() + { + $today = new DateTime(); $delayedAutoBillInvoices = Invoice::with('account.timezone', 'recurring_invoice', 'invoice_items', 'client', 'user') ->whereRaw('is_deleted IS FALSE AND deleted_at IS NULL AND is_recurring IS FALSE AND is_public IS TRUE @@ -124,8 +153,28 @@ class SendRecurringInvoices extends Command Auth::logout(); } } + } - $this->info(date('Y-m-d H:i:s') . ' Done'); + private function createExpenses() + { + $today = new DateTime(); + + $expenses = RecurringExpense::with('client') + ->whereRaw('is_deleted IS FALSE AND deleted_at IS NULL AND start_date <= ? AND (end_date IS NULL OR end_date >= ?)', [$today, $today]) + ->orderBy('id', 'asc') + ->get(); + $this->info(count($expenses).' recurring expenses(s) found'); + + foreach ($expenses as $expense) { + $shouldSendToday = $expense->shouldSendToday(); + + if (! $shouldSendToday) { + continue; + } + + $this->info('Processing Expense: '. $expense->id); + $this->recurringExpenseRepo->createRecurringExpense($expense); + } } /** diff --git a/app/Console/Commands/stubs/controller.stub b/app/Console/Commands/stubs/controller.stub index d557b844278f..a1c5f9e0a39b 100755 --- a/app/Console/Commands/stubs/controller.stub +++ b/app/Console/Commands/stubs/controller.stub @@ -38,7 +38,7 @@ class $CLASS$ extends BaseController public function datatable(DatatableService $datatableService) { - $search = request()->input('test'); + $search = request()->input('sSearch'); $userId = Auth::user()->filterId(); $datatable = new $STUDLY_NAME$Datatable(); diff --git a/app/Constants.php b/app/Constants.php index 95bfbc418d24..d6591d31d13d 100644 --- a/app/Constants.php +++ b/app/Constants.php @@ -37,6 +37,7 @@ if (! defined('APP_NAME')) { define('ENTITY_BANK_SUBACCOUNT', 'bank_subaccount'); define('ENTITY_EXPENSE_CATEGORY', 'expense_category'); define('ENTITY_PROJECT', 'project'); + define('ENTITY_RECURRING_EXPENSE', 'recurring_expense'); define('INVOICE_TYPE_STANDARD', 1); define('INVOICE_TYPE_QUOTE', 2); @@ -153,6 +154,9 @@ if (! defined('APP_NAME')) { define('DEFAULT_BODY_FONT', 1); // Roboto define('DEFAULT_SEND_RECURRING_HOUR', 8); + define('DEFAULT_BANK_OFX_VERSION', 102); + define('DEFAULT_BANK_APP_VERSION', 2500); + define('IMPORT_CSV', 'CSV'); define('IMPORT_JSON', 'JSON'); define('IMPORT_FRESHBOOKS', 'FreshBooks'); @@ -303,7 +307,7 @@ if (! defined('APP_NAME')) { define('NINJA_APP_URL', env('NINJA_APP_URL', 'https://app.invoiceninja.com')); define('NINJA_DOCS_URL', env('NINJA_DOCS_URL', 'http://docs.invoiceninja.com/en/latest')); define('NINJA_DATE', '2000-01-01'); - define('NINJA_VERSION', '3.4.2' . env('NINJA_VERSION_SUFFIX')); + define('NINJA_VERSION', '3.5.0' . env('NINJA_VERSION_SUFFIX')); define('SOCIAL_LINK_FACEBOOK', env('SOCIAL_LINK_FACEBOOK', 'https://www.facebook.com/invoiceninja')); define('SOCIAL_LINK_TWITTER', env('SOCIAL_LINK_TWITTER', 'https://twitter.com/invoiceninja')); @@ -510,7 +514,6 @@ if (! defined('APP_NAME')) { define('WEPAY_CLIENT_SECRET', env('WEPAY_CLIENT_SECRET')); define('WEPAY_AUTO_UPDATE', env('WEPAY_AUTO_UPDATE', false)); define('WEPAY_ENVIRONMENT', env('WEPAY_ENVIRONMENT', WEPAY_PRODUCTION)); - define('WEPAY_ENABLE_CANADA', env('WEPAY_ENABLE_CANADA', false)); define('WEPAY_THEME', env('WEPAY_THEME', '{"name":"Invoice Ninja","primary_color":"0b4d78","secondary_color":"0b4d78","background_color":"f8f8f8","button_color":"33b753"}')); define('SKYPE_CARD_RECEIPT', 'message/card.receipt'); diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index f4e8ca17722a..15284d1b7fa5 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -61,7 +61,7 @@ class Handler extends ExceptionHandler } // Log 404s to a separate file $errorStr = date('Y-m-d h:i:s') . ' ' . request()->url() . "\n" . json_encode(Utils::prepareErrorData('PHP')) . "\n\n"; - @file_put_contents(storage_path('logs/not_found.log'), $errorStr, FILE_APPEND); + @file_put_contents(storage_path('logs/not-found.log'), $errorStr, FILE_APPEND); return false; } elseif ($e instanceof HttpResponseException) { return false; diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index d4f407112f40..d6bda523de13 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -455,7 +455,7 @@ class AccountController extends BaseController if ($accountGateway = $account->getGatewayConfig(GATEWAY_STRIPE)) { if (! $accountGateway->getPublishableStripeKey()) { - Session::flash('warning', trans('texts.missing_publishable_key')); + Session::now('warning', trans('texts.missing_publishable_key')); } } @@ -876,7 +876,10 @@ class AccountController extends BaseController $rules["{$entityType}_number_pattern"] = 'has_counter'; } } - + if (Input::get('credit_number_enabled')) { + $rules['credit_number_prefix'] = 'required_without:credit_number_pattern'; + $rules['credit_number_pattern'] = 'required_without:credit_number_prefix'; + } $validator = Validator::make(Input::all(), $rules); if ($validator->fails()) { @@ -915,6 +918,9 @@ class AccountController extends BaseController $account->client_number_prefix = trim(Input::get('client_number_prefix')); $account->client_number_pattern = trim(Input::get('client_number_pattern')); $account->client_number_counter = Input::get('client_number_counter'); + $account->credit_number_counter = Input::get('credit_number_counter'); + $account->credit_number_prefix = trim(Input::get('credit_number_prefix')); + $account->credit_number_pattern = trim(Input::get('credit_number_pattern')); $account->reset_counter_frequency_id = Input::get('reset_counter_frequency_id'); $account->reset_counter_date = $account->reset_counter_frequency_id ? Utils::toSqlDate(Input::get('reset_counter_date')) : null; @@ -974,22 +980,7 @@ class AccountController extends BaseController $account->page_size = Input::get('page_size'); $labels = []; - foreach ([ - 'item', - 'description', - 'unit_cost', - 'quantity', - 'line_total', - 'terms', - 'balance_due', - 'partial_due', - 'subtotal', - 'paid_to_date', - 'discount', - 'tax', - 'po_number', - 'due_date', - ] as $field) { + foreach (Account::$customLabels as $field) { $labels[$field] = Input::get("labels_{$field}"); } $account->invoice_labels = json_encode($labels); @@ -1143,6 +1134,7 @@ class AccountController extends BaseController $user->username = $email; $user->email = $email; $user->phone = trim(Input::get('phone')); + $user->dark_mode = Input::get('dark_mode'); if (! Auth::user()->is_admin) { $user->notify_sent = Input::get('notify_sent'); diff --git a/app/Http/Controllers/AccountGatewayController.php b/app/Http/Controllers/AccountGatewayController.php index 66b5fdc68b76..d28e73850481 100644 --- a/app/Http/Controllers/AccountGatewayController.php +++ b/app/Http/Controllers/AccountGatewayController.php @@ -84,14 +84,14 @@ class AccountGatewayController extends BaseController public function create() { if (! \Request::secure() && ! Utils::isNinjaDev()) { - Session::flash('warning', trans('texts.enable_https')); + Session::now('warning', trans('texts.enable_https')); } $account = Auth::user()->account; $accountGatewaysIds = $account->gatewayIds(); $otherProviders = Input::get('other_providers'); - if (! Utils::isNinja() || ! env('WEPAY_CLIENT_ID') || Gateway::hasStandardGateway($accountGatewaysIds)) { + if (! env('WEPAY_CLIENT_ID') || Gateway::hasStandardGateway($accountGatewaysIds)) { $otherProviders = true; } @@ -254,7 +254,7 @@ class AccountGatewayController extends BaseController if ($oldConfig && $value && $value === str_repeat('*', strlen($value))) { $value = $oldConfig->$field; } - if (! $value && ($field == 'testMode' || $field == 'developerMode')) { + if (! $value && in_array($field, ['testMode', 'developerMode', 'sandbox'])) { // do nothing } elseif ($gatewayId == GATEWAY_CUSTOM) { $config->$field = strip_tags($value); @@ -378,12 +378,9 @@ class AccountGatewayController extends BaseController 'first_name' => 'required', 'last_name' => 'required', 'email' => 'required|email', + 'country' => 'required|in:US,CA,GB', ]; - if (WEPAY_ENABLE_CANADA) { - $rules['country'] = 'required|in:US,CA'; - } - $validator = Validator::make(Input::all(), $rules); if ($validator->fails()) { @@ -428,15 +425,14 @@ class AccountGatewayController extends BaseController 'theme_object' => json_decode(WEPAY_THEME), 'callback_uri' => $accountGateway->getWebhookUrl(), 'rbits' => $account->present()->rBits, + 'country' => Input::get('country'), ]; - if (WEPAY_ENABLE_CANADA) { - $accountDetails['country'] = Input::get('country'); - - if (Input::get('country') == 'CA') { - $accountDetails['currencies'] = ['CAD']; - $accountDetails['country_options'] = ['debit_opt_in' => boolval(Input::get('debit_cards'))]; - } + if (Input::get('country') == 'CA') { + $accountDetails['currencies'] = ['CAD']; + $accountDetails['country_options'] = ['debit_opt_in' => boolval(Input::get('debit_cards'))]; + } elseif (Input::get('country') == 'GB') { + $accountDetails['currencies'] = ['GBP']; } $wepayAccount = $wepay->request('account/create/', $accountDetails); @@ -461,7 +457,7 @@ class AccountGatewayController extends BaseController 'accountId' => $wepayAccount->account_id, 'state' => $wepayAccount->state, 'testMode' => WEPAY_ENVIRONMENT == WEPAY_STAGE, - 'country' => WEPAY_ENABLE_CANADA ? Input::get('country') : 'US', + 'country' => Input::get('country'), ]); if ($confirmationRequired) { diff --git a/app/Http/Controllers/BankAccountController.php b/app/Http/Controllers/BankAccountController.php index 945357e6039f..8b0bdba22281 100644 --- a/app/Http/Controllers/BankAccountController.php +++ b/app/Http/Controllers/BankAccountController.php @@ -97,10 +97,18 @@ class BankAccountController extends BaseController $username = Crypt::decrypt($username); $bankId = $bankAccount->bank_id; } else { - $bankId = Input::get('bank_id'); + $bankAccount = new BankAccount; + $bankAccount->bank_id = Input::get('bank_id'); } - return json_encode($this->bankAccountService->loadBankAccounts($bankId, $username, $password, $publicId)); + $bankAccount->app_version = Input::get('app_version'); + $bankAccount->ofx_version = Input::get('ofx_version'); + + if ($publicId) { + $bankAccount->save(); + } + + return json_encode($this->bankAccountService->loadBankAccounts($bankAccount, $username, $password, $publicId)); } public function store(CreateBankAccountRequest $request) @@ -111,7 +119,7 @@ class BankAccountController extends BaseController $username = trim(Input::get('bank_username')); $password = trim(Input::get('bank_password')); - return json_encode($this->bankAccountService->loadBankAccounts($bankId, $username, $password, true)); + return json_encode($this->bankAccountService->loadBankAccounts($bankAccount, $username, $password, true)); } public function importExpenses($bankId) @@ -131,7 +139,7 @@ class BankAccountController extends BaseController try { $data = $this->bankAccountService->parseOFX($file); } catch (\Exception $e) { - Session::flash('error', trans('texts.ofx_parse_failed')); + Session::now('error', trans('texts.ofx_parse_failed')); Utils::logError($e); return view('accounts.import_ofx'); diff --git a/app/Http/Controllers/BaseAPIController.php b/app/Http/Controllers/BaseAPIController.php index 2de99be0070b..190debf96139 100644 --- a/app/Http/Controllers/BaseAPIController.php +++ b/app/Http/Controllers/BaseAPIController.php @@ -121,6 +121,10 @@ class BaseAPIController extends Controller protected function itemResponse($item) { + if (! $item) { + return $this->errorResponse('Record not found', 404); + } + $transformerClass = EntityModel::getTransformerName($this->entityType); $transformer = new $transformerClass(Auth::user()->account, Input::get('serializer')); @@ -206,6 +210,8 @@ class BaseAPIController extends Controller $data[] = 'clients.contacts'; } elseif ($include == 'vendors') { $data[] = 'vendors.vendor_contacts'; + } elseif ($include == 'documents' && $this->entityType == ENTITY_INVOICE) { + $data[] = 'documents.expense'; } elseif ($include) { $data[] = $include; } diff --git a/app/Http/Controllers/ExpenseController.php b/app/Http/Controllers/ExpenseController.php index 7e22973d81e3..d45a11366c2f 100644 --- a/app/Http/Controllers/ExpenseController.php +++ b/app/Http/Controllers/ExpenseController.php @@ -105,13 +105,17 @@ class ExpenseController extends BaseController $actions[] = ['url' => 'javascript:submitAction("invoice")', 'label' => trans('texts.invoice_expense')]; // check for any open invoices - $invoices = $expense->client_id ? $this->invoiceRepo->findOpenInvoices($expense->client_id, ENTITY_EXPENSE) : []; + $invoices = $expense->client_id ? $this->invoiceRepo->findOpenInvoices($expense->client_id) : []; foreach ($invoices as $invoice) { $actions[] = ['url' => 'javascript:submitAction("add_to_invoice", '.$invoice->public_id.')', 'label' => trans('texts.add_to_invoice', ['invoice' => $invoice->invoice_number])]; } } + if ($expense->recurring_expense_id) { + $actions[] = ['url' => URL::to("recurring_expenses/{$expense->recurring_expense->public_id}/edit"), 'label' => trans('texts.view_recurring_expense')]; + } + $actions[] = \DropdownButton::DIVIDER; if (! $expense->trashed()) { $actions[] = ['url' => 'javascript:submitAction("archive")', 'label' => trans('texts.archive_expense')]; @@ -266,6 +270,7 @@ class ExpenseController extends BaseController 'customLabel2' => Auth::user()->account->custom_vendor_label2, 'categories' => ExpenseCategory::whereAccountId(Auth::user()->account_id)->withArchived()->orderBy('name')->get(), 'taxRates' => TaxRate::scope()->whereIsInclusive(false)->orderBy('name')->get(), + 'isRecurring' => false, ]; } diff --git a/app/Http/Controllers/InvoiceApiController.php b/app/Http/Controllers/InvoiceApiController.php index 42cd837a5d17..7eeb44e1ebd7 100644 --- a/app/Http/Controllers/InvoiceApiController.php +++ b/app/Http/Controllers/InvoiceApiController.php @@ -202,7 +202,10 @@ class InvoiceApiController extends BaseAPIController if ($payment) { app('App\Ninja\Mailers\ContactMailer')->sendPaymentConfirmation($payment); //$this->dispatch(new SendPaymentEmail($payment)); - } elseif (! $invoice->is_recurring) { + } else { + if ($invoice->is_recurring && $recurringInvoice = $this->invoiceRepo->createRecurringInvoice($invoice)) { + $invoice = $recurringInvoice; + } app('App\Ninja\Mailers\ContactMailer')->sendInvoice($invoice); //$this->dispatch(new SendInvoiceEmail($invoice)); } @@ -238,6 +241,10 @@ class InvoiceApiController extends BaseAPIController 'custom_value2' => 0, 'custom_taxes1' => false, 'custom_taxes2' => false, + 'tax_name1' => '', + 'tax_rate1' => 0, + 'tax_name2' => '', + 'tax_rate2' => 0, 'partial' => 0, ]; @@ -314,6 +321,10 @@ class InvoiceApiController extends BaseAPIController { $invoice = $request->entity(); + if ($invoice->is_recurring && $recurringInvoice = $this->invoiceRepo->createRecurringInvoice($invoice)) { + $invoice = $recurringInvoice; + } + //$this->dispatch(new SendInvoiceEmail($invoice)); $result = app('App\Ninja\Mailers\ContactMailer')->sendInvoice($invoice); diff --git a/app/Http/Controllers/InvoiceController.php b/app/Http/Controllers/InvoiceController.php index af75ea136301..902ffcf61302 100644 --- a/app/Http/Controllers/InvoiceController.php +++ b/app/Http/Controllers/InvoiceController.php @@ -101,6 +101,7 @@ class InvoiceController extends BaseController $invoice->id = $invoice->public_id = null; $invoice->is_public = false; $invoice->invoice_number = $account->getNextNumber($invoice); + $invoice->due_date = null; $invoice->balance = $invoice->amount; $invoice->invoice_status_id = 0; $invoice->invoice_date = date_create()->format('Y-m-d'); @@ -536,7 +537,7 @@ class InvoiceController extends BaseController $versionsJson = []; $versionsSelect = []; $lastId = false; - //dd($activities->toArray()); + foreach ($activities as $activity) { if ($backup = json_decode($activity->json_backup)) { $backup->invoice_date = Utils::fromSqlDate($backup->invoice_date); diff --git a/app/Http/Controllers/OnlinePaymentController.php b/app/Http/Controllers/OnlinePaymentController.php index 34c37fd42fc2..46a4d99a180d 100644 --- a/app/Http/Controllers/OnlinePaymentController.php +++ b/app/Http/Controllers/OnlinePaymentController.php @@ -75,7 +75,7 @@ class OnlinePaymentController extends BaseController ]); } - if (! $invitation->invoice->canBePaid()) { + if (! $invitation->invoice->canBePaid() && ! request()->update) { return redirect()->to('view/' . $invitation->invitation_key); } @@ -120,14 +120,16 @@ class OnlinePaymentController extends BaseController $gatewayTypeId = Session::get($invitation->id . 'gateway_type'); $paymentDriver = $invitation->account->paymentDriver($invitation, $gatewayTypeId); - if (! $invitation->invoice->canBePaid()) { + if (! $invitation->invoice->canBePaid() && ! request()->update) { return redirect()->to('view/' . $invitation->invitation_key); } try { $paymentDriver->completeOnsitePurchase($request->all()); - if ($paymentDriver->isTwoStep()) { + if (request()->update) { + return redirect('/client/dashboard')->withMessage(trans('texts.updated_payment_details')); + } elseif ($paymentDriver->isTwoStep()) { Session::flash('warning', trans('texts.bank_account_verification_next_steps')); } else { Session::flash('message', trans('texts.applied_payment')); diff --git a/app/Http/Controllers/RecurringExpenseController.php b/app/Http/Controllers/RecurringExpenseController.php new file mode 100644 index 000000000000..2f72077466b9 --- /dev/null +++ b/app/Http/Controllers/RecurringExpenseController.php @@ -0,0 +1,168 @@ +recurringExpenseRepo = $recurringExpenseRepo; + $this->recurringExpenseService = $recurringExpenseService; + } + + /** + * Display a listing of the resource. + * + * @return Response + */ + public function index() + { + return View::make('list_wrapper', [ + 'entityType' => ENTITY_RECURRING_EXPENSE, + 'datatable' => new RecurringExpenseDatatable(), + 'title' => trans('texts.recurring_expenses'), + ]); + } + + public function getDatatable($expensePublicId = null) + { + $search = Input::get('sSearch'); + $userId = Auth::user()->filterId(); + + return $this->recurringExpenseService->getDatatable($search, $userId); + } + + public function create(RecurringExpenseRequest $request) + { + if ($request->vendor_id != 0) { + $vendor = Vendor::scope($request->vendor_id)->with('vendor_contacts')->firstOrFail(); + } else { + $vendor = null; + } + + $data = [ + 'vendorPublicId' => Input::old('vendor') ? Input::old('vendor') : $request->vendor_id, + 'expense' => null, + 'method' => 'POST', + 'url' => 'recurring_expenses', + 'title' => trans('texts.new_expense'), + 'vendors' => Vendor::scope()->with('vendor_contacts')->orderBy('name')->get(), + 'vendor' => $vendor, + 'clients' => Client::scope()->with('contacts')->orderBy('name')->get(), + 'clientPublicId' => $request->client_id, + 'categoryPublicId' => $request->category_id, + ]; + + $data = array_merge($data, self::getViewModel()); + + return View::make('expenses.edit', $data); + } + + public function edit(RecurringExpenseRequest $request) + { + $expense = $request->entity(); + + $actions = []; + if (! $expense->trashed()) { + $actions[] = ['url' => 'javascript:submitAction("archive")', 'label' => trans('texts.archive_expense')]; + $actions[] = ['url' => 'javascript:onDeleteClick()', 'label' => trans('texts.delete_expense')]; + } else { + $actions[] = ['url' => 'javascript:submitAction("restore")', 'label' => trans('texts.restore_expense')]; + } + + $data = [ + 'vendor' => null, + 'expense' => $expense, + 'entity' => $expense, + 'method' => 'PUT', + 'url' => 'recurring_expenses/'.$expense->public_id, + 'title' => 'Edit Expense', + 'actions' => $actions, + 'vendors' => Vendor::scope()->with('vendor_contacts')->orderBy('name')->get(), + 'vendorPublicId' => $expense->vendor ? $expense->vendor->public_id : null, + 'clients' => Client::scope()->with('contacts')->orderBy('name')->get(), + 'clientPublicId' => $expense->client ? $expense->client->public_id : null, + 'categoryPublicId' => $expense->expense_category ? $expense->expense_category->public_id : null, + ]; + + $data = array_merge($data, self::getViewModel()); + + return View::make('expenses.edit', $data); + } + + private static function getViewModel() + { + return [ + 'data' => Input::old('data'), + 'account' => Auth::user()->account, + 'sizes' => Cache::get('sizes'), + 'paymentTerms' => Cache::get('paymentTerms'), + 'industries' => Cache::get('industries'), + 'currencies' => Cache::get('currencies'), + 'languages' => Cache::get('languages'), + 'countries' => Cache::get('countries'), + 'customLabel1' => Auth::user()->account->custom_vendor_label1, + 'customLabel2' => Auth::user()->account->custom_vendor_label2, + 'categories' => ExpenseCategory::whereAccountId(Auth::user()->account_id)->withArchived()->orderBy('name')->get(), + 'taxRates' => TaxRate::scope()->whereIsInclusive(false)->orderBy('name')->get(), + 'isRecurring' => true, + ]; + } + + public function store(CreateRecurringExpenseRequest $request) + { + $recurringExpense = $this->recurringExpenseService->save($request->input()); + + Session::flash('message', trans('texts.created_recurring_expense')); + + return redirect()->to($recurringExpense->getRoute()); + } + + public function update(UpdateRecurringExpenseRequest $request) + { + $recurringExpense = $this->recurringExpenseService->save($request->input(), $request->entity()); + + Session::flash('message', trans('texts.updated_recurring_expense')); + + if (in_array(Input::get('action'), ['archive', 'delete', 'restore'])) { + return self::bulk(); + } + + return redirect()->to($recurringExpense->getRoute()); + } + + public function bulk() + { + $action = Input::get('action'); + $ids = Input::get('public_id') ? Input::get('public_id') : Input::get('ids'); + $count = $this->recurringExpenseService->bulk($ids, $action); + + if ($count > 0) { + $field = $count == 1 ? "{$action}d_recurring_expense" : "{$action}d_recurring_expenses"; + $message = trans("texts.$field", ['count' => $count]); + Session::flash('message', $message); + } + + return $this->returnBulk($this->entityType, $action, $ids); + } +} diff --git a/app/Http/Controllers/TaskController.php b/app/Http/Controllers/TaskController.php index f15c36286435..03eec1a7510d 100644 --- a/app/Http/Controllers/TaskController.php +++ b/app/Http/Controllers/TaskController.php @@ -158,7 +158,7 @@ class TaskController extends BaseController $actions[] = ['url' => 'javascript:submitAction("invoice")', 'label' => trans('texts.invoice_task')]; // check for any open invoices - $invoices = $task->client_id ? $this->invoiceRepo->findOpenInvoices($task->client_id, ENTITY_TASK) : []; + $invoices = $task->client_id ? $this->invoiceRepo->findOpenInvoices($task->client_id) : []; foreach ($invoices as $invoice) { $actions[] = ['url' => 'javascript:submitAction("add_to_invoice", '.$invoice->public_id.')', 'label' => trans('texts.add_to_invoice', ['invoice' => $invoice->invoice_number])]; @@ -314,7 +314,7 @@ class TaskController extends BaseController { if (! Auth::user()->account->timezone) { $link = link_to('/settings/localization?focus=timezone_id', trans('texts.click_here'), ['target' => '_blank']); - Session::flash('warning', trans('texts.timezone_unset', ['link' => $link])); + Session::now('warning', trans('texts.timezone_unset', ['link' => $link])); } } } diff --git a/app/Http/Middleware/DatabaseLookup.php b/app/Http/Middleware/DatabaseLookup.php index be829ad9b492..b699e3907fcc 100644 --- a/app/Http/Middleware/DatabaseLookup.php +++ b/app/Http/Middleware/DatabaseLookup.php @@ -28,7 +28,6 @@ class DatabaseLookup LookupUser::setServerByField('email', $email); } else { Auth::logout(); - return redirect('/login'); } } elseif ($guard == 'api') { if ($token = $request->header('X-Ninja-Token')) { diff --git a/app/Http/Middleware/DuplicateSubmissionCheck.php b/app/Http/Middleware/DuplicateSubmissionCheck.php index dc8ae4004acc..813ac8e1728f 100644 --- a/app/Http/Middleware/DuplicateSubmissionCheck.php +++ b/app/Http/Middleware/DuplicateSubmissionCheck.php @@ -18,7 +18,9 @@ class DuplicateSubmissionCheck */ public function handle(Request $request, Closure $next) { - if ($request->is('api/v1/*') || $request->is('documents')) { + if ($request->is('api/v1/*') + || $request->is('save_sidebar_state') + || $request->is('documents')) { return $next($request); } diff --git a/app/Http/Requests/CreateRecurringExpenseRequest.php b/app/Http/Requests/CreateRecurringExpenseRequest.php new file mode 100644 index 000000000000..afb5bb94147f --- /dev/null +++ b/app/Http/Requests/CreateRecurringExpenseRequest.php @@ -0,0 +1,28 @@ +user()->can('create', ENTITY_RECURRING_EXPENSE); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules() + { + return [ + 'amount' => 'numeric', + ]; + } +} diff --git a/app/Http/Requests/ExpenseRequest.php b/app/Http/Requests/ExpenseRequest.php index 17388a6f3af5..056cf1c30894 100644 --- a/app/Http/Requests/ExpenseRequest.php +++ b/app/Http/Requests/ExpenseRequest.php @@ -14,7 +14,7 @@ class ExpenseRequest extends EntityRequest $expense = parent::entity(); // eager load the documents - if ($expense && ! $expense->relationLoaded('documents')) { + if ($expense && method_exists($expense, 'documents') && ! $expense->relationLoaded('documents')) { $expense->load('documents'); } diff --git a/app/Http/Requests/RecurringExpenseRequest.php b/app/Http/Requests/RecurringExpenseRequest.php new file mode 100644 index 000000000000..3088002f6bd5 --- /dev/null +++ b/app/Http/Requests/RecurringExpenseRequest.php @@ -0,0 +1,8 @@ +user()->can('edit', $this->entity()); + return $this->entity() && $this->user()->can('edit', $this->entity()); } /** @@ -21,6 +21,10 @@ class UpdateClientRequest extends ClientRequest */ public function rules() { + if (! $this->entity()) { + return []; + } + $rules = []; if ($this->user()->account->client_number_counter) { diff --git a/app/Http/Requests/UpdateContactRequest.php b/app/Http/Requests/UpdateContactRequest.php index e6a40d18bb56..eb39da591db8 100644 --- a/app/Http/Requests/UpdateContactRequest.php +++ b/app/Http/Requests/UpdateContactRequest.php @@ -11,7 +11,7 @@ class UpdateContactRequest extends ContactRequest */ public function authorize() { - return $this->user()->can('edit', $this->entity()); + return $this->entity() && $this->user()->can('edit', $this->entity()); } /** diff --git a/app/Http/Requests/UpdateCreditRequest.php b/app/Http/Requests/UpdateCreditRequest.php index 19de853d9dc4..020ce99a71bb 100644 --- a/app/Http/Requests/UpdateCreditRequest.php +++ b/app/Http/Requests/UpdateCreditRequest.php @@ -11,7 +11,7 @@ class UpdateCreditRequest extends CreditRequest */ public function authorize() { - return $this->user()->can('edit', $this->entity()); + return $this->entity() && $this->user()->can('edit', $this->entity()); } /** diff --git a/app/Http/Requests/UpdateDocumentRequest.php b/app/Http/Requests/UpdateDocumentRequest.php index afd7dc6f21cd..e31081696e82 100644 --- a/app/Http/Requests/UpdateDocumentRequest.php +++ b/app/Http/Requests/UpdateDocumentRequest.php @@ -11,7 +11,7 @@ class UpdateDocumentRequest extends DocumentRequest */ public function authorize() { - return $this->user()->can('edit', $this->entity()); + return $this->entity() && $this->user()->can('edit', $this->entity()); } /** diff --git a/app/Http/Requests/UpdateExpenseCategoryRequest.php b/app/Http/Requests/UpdateExpenseCategoryRequest.php index f45fa9e7343e..d676354bfc69 100644 --- a/app/Http/Requests/UpdateExpenseCategoryRequest.php +++ b/app/Http/Requests/UpdateExpenseCategoryRequest.php @@ -11,7 +11,7 @@ class UpdateExpenseCategoryRequest extends ExpenseCategoryRequest */ public function authorize() { - return $this->user()->can('edit', $this->entity()); + return $this->entity() && $this->user()->can('edit', $this->entity()); } /** @@ -21,6 +21,10 @@ class UpdateExpenseCategoryRequest extends ExpenseCategoryRequest */ public function rules() { + if (! $this->entity()) { + return []; + } + return [ 'name' => 'required', 'name' => sprintf('required|unique:expense_categories,name,%s,id,account_id,%s', $this->entity()->id, $this->user()->account_id), diff --git a/app/Http/Requests/UpdateExpenseRequest.php b/app/Http/Requests/UpdateExpenseRequest.php index cd87ec5e59de..65fdc93752cb 100644 --- a/app/Http/Requests/UpdateExpenseRequest.php +++ b/app/Http/Requests/UpdateExpenseRequest.php @@ -11,7 +11,7 @@ class UpdateExpenseRequest extends ExpenseRequest */ public function authorize() { - return $this->user()->can('edit', $this->entity()); + return $this->entity() && $this->user()->can('edit', $this->entity()); } /** diff --git a/app/Http/Requests/UpdateInvoiceAPIRequest.php b/app/Http/Requests/UpdateInvoiceAPIRequest.php index e5a9858f1bf9..bcf7f86ecfdc 100644 --- a/app/Http/Requests/UpdateInvoiceAPIRequest.php +++ b/app/Http/Requests/UpdateInvoiceAPIRequest.php @@ -13,7 +13,7 @@ class UpdateInvoiceAPIRequest extends InvoiceRequest */ public function authorize() { - return $this->user()->can('edit', $this->entity()); + return $this->entity() && $this->user()->can('edit', $this->entity()); } /** @@ -23,6 +23,10 @@ class UpdateInvoiceAPIRequest extends InvoiceRequest */ public function rules() { + if (! $this->entity()) { + return []; + } + if ($this->action == ACTION_ARCHIVE) { return []; } diff --git a/app/Http/Requests/UpdateInvoiceRequest.php b/app/Http/Requests/UpdateInvoiceRequest.php index 775a80b54f56..07f39406e3e5 100644 --- a/app/Http/Requests/UpdateInvoiceRequest.php +++ b/app/Http/Requests/UpdateInvoiceRequest.php @@ -13,7 +13,7 @@ class UpdateInvoiceRequest extends InvoiceRequest */ public function authorize() { - return $this->user()->can('edit', $this->entity()); + return $this->entity() && $this->user()->can('edit', $this->entity()); } /** @@ -23,6 +23,10 @@ class UpdateInvoiceRequest extends InvoiceRequest */ public function rules() { + if (! $this->entity()) { + return []; + } + $invoiceId = $this->entity()->id; $rules = [ diff --git a/app/Http/Requests/UpdatePaymentRequest.php b/app/Http/Requests/UpdatePaymentRequest.php index e569ffe2b4a1..a1c3a6e402bf 100644 --- a/app/Http/Requests/UpdatePaymentRequest.php +++ b/app/Http/Requests/UpdatePaymentRequest.php @@ -11,7 +11,7 @@ class UpdatePaymentRequest extends PaymentRequest */ public function authorize() { - return $this->user()->can('edit', $this->entity()); + return $this->entity() && $this->user()->can('edit', $this->entity()); } /** diff --git a/app/Http/Requests/UpdateProductRequest.php b/app/Http/Requests/UpdateProductRequest.php index 2fe1a5249d30..2a2c68cedc9f 100644 --- a/app/Http/Requests/UpdateProductRequest.php +++ b/app/Http/Requests/UpdateProductRequest.php @@ -11,7 +11,7 @@ class UpdateProductRequest extends ProductRequest */ public function authorize() { - return $this->user()->can('edit', $this->entity()); + return $this->entity() && $this->user()->can('edit', $this->entity()); } /** diff --git a/app/Http/Requests/UpdateProjectRequest.php b/app/Http/Requests/UpdateProjectRequest.php index ef9d287e0efe..84639fd18d88 100644 --- a/app/Http/Requests/UpdateProjectRequest.php +++ b/app/Http/Requests/UpdateProjectRequest.php @@ -11,7 +11,7 @@ class UpdateProjectRequest extends ProjectRequest */ public function authorize() { - return $this->user()->can('edit', $this->entity()); + return $this->entity() && $this->user()->can('edit', $this->entity()); } /** @@ -21,6 +21,10 @@ class UpdateProjectRequest extends ProjectRequest */ public function rules() { + if (! $this->entity()) { + return []; + } + return [ 'name' => sprintf('required|unique:projects,name,%s,id,account_id,%s', $this->entity()->id, $this->user()->account_id), ]; diff --git a/app/Http/Requests/UpdateRecurringExpenseRequest.php b/app/Http/Requests/UpdateRecurringExpenseRequest.php new file mode 100644 index 000000000000..d9542f452f6e --- /dev/null +++ b/app/Http/Requests/UpdateRecurringExpenseRequest.php @@ -0,0 +1,28 @@ +entity() && $this->user()->can('edit', $this->entity()); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules() + { + return [ + 'amount' => 'numeric', + ]; + } +} diff --git a/app/Http/Requests/UpdateTaskRequest.php b/app/Http/Requests/UpdateTaskRequest.php index 4131bf99ee0d..b94795386574 100644 --- a/app/Http/Requests/UpdateTaskRequest.php +++ b/app/Http/Requests/UpdateTaskRequest.php @@ -11,7 +11,7 @@ class UpdateTaskRequest extends TaskRequest */ public function authorize() { - return $this->user()->can('edit', $this->entity()); + return $this->entity() && $this->user()->can('edit', $this->entity()); } /** diff --git a/app/Http/Requests/UpdateTaxRateRequest.php b/app/Http/Requests/UpdateTaxRateRequest.php index ada31fa9d0c8..b1008756faa5 100644 --- a/app/Http/Requests/UpdateTaxRateRequest.php +++ b/app/Http/Requests/UpdateTaxRateRequest.php @@ -11,7 +11,7 @@ class UpdateTaxRateRequest extends TaxRateRequest */ public function authorize() { - return $this->user()->can('edit', $this->entity()); + return $this->entity() && $this->user()->can('edit', $this->entity()); } /** diff --git a/app/Http/Requests/UpdateVendorRequest.php b/app/Http/Requests/UpdateVendorRequest.php index 427d4ceef44d..e199abbac4f2 100644 --- a/app/Http/Requests/UpdateVendorRequest.php +++ b/app/Http/Requests/UpdateVendorRequest.php @@ -11,7 +11,7 @@ class UpdateVendorRequest extends VendorRequest */ public function authorize() { - return $this->user()->can('edit', $this->entity()); + return $this->entity() && $this->user()->can('edit', $this->entity()); } /** diff --git a/app/Http/routes.php b/app/Http/routes.php index 0023fe0126f6..54a6b7333dca 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -37,8 +37,6 @@ Route::group(['middleware' => ['lookup:contact', 'auth:client']], function () { Route::get('bank/{routing_number}', 'OnlinePaymentController@getBankInfo'); Route::get('client/payment_methods', 'ClientPortalController@paymentMethods'); Route::post('client/payment_methods/verify', 'ClientPortalController@verifyPaymentMethod'); - //Route::get('client/payment_methods/add/{gateway_type}/{source_id?}', 'ClientPortalController@addPaymentMethod'); - //Route::post('client/payment_methods/add/{gateway_type}', 'ClientPortalController@postAddPaymentMethod'); Route::post('client/payment_methods/default', 'ClientPortalController@setDefaultPaymentMethod'); Route::post('client/payment_methods/{source_id}/remove', 'ClientPortalController@removePaymentMethod'); Route::get('client/quotes', 'ClientPortalController@quoteIndex'); @@ -171,10 +169,20 @@ Route::group(['middleware' => ['lookup:user', 'auth:user']], function () { Route::get('recurring_invoices/create/{client_id?}', 'InvoiceController@createRecurring'); Route::get('recurring_invoices', 'RecurringInvoiceController@index'); Route::get('recurring_invoices/{invoices}/edit', 'InvoiceController@edit'); + Route::get('recurring_invoices/{invoices}', 'InvoiceController@edit'); Route::get('invoices/{invoices}/clone', 'InvoiceController@cloneInvoice'); Route::post('invoices/bulk', 'InvoiceController@bulk'); Route::post('recurring_invoices/bulk', 'InvoiceController@bulk'); + Route::get('recurring_expenses', 'RecurringExpenseController@index'); + Route::get('api/recurring_expenses', 'RecurringExpenseController@getDatatable'); + Route::get('recurring_expenses/create/{vendor_id?}/{client_id?}/{category_id?}', 'RecurringExpenseController@create'); + Route::post('recurring_expenses', 'RecurringExpenseController@store'); + Route::put('recurring_expenses/{recurring_expenses}', 'RecurringExpenseController@update'); + Route::get('recurring_expenses/{recurring_expenses}/edit', 'RecurringExpenseController@edit'); + Route::get('recurring_expenses/{recurring_expenses}', 'RecurringExpenseController@edit'); + Route::post('recurring_expenses/bulk', 'RecurringExpenseController@bulk'); + Route::get('documents/{documents}/{filename?}', 'DocumentController@get'); Route::get('documents/js/{documents}/{filename}', 'DocumentController@getVFSJS'); Route::get('documents/preview/{documents}/{filename?}', 'DocumentController@getPreview'); diff --git a/app/Jobs/ImportData.php b/app/Jobs/ImportData.php index b1427775f7ed..0bf5d0ab2b08 100644 --- a/app/Jobs/ImportData.php +++ b/app/Jobs/ImportData.php @@ -11,6 +11,7 @@ use App\Ninja\Mailers\UserMailer; use App\Models\User; use Auth; use App; +use Utils; /** * Class SendInvoiceEmail. @@ -67,24 +68,31 @@ class ImportData extends Job implements ShouldQueue $this->user->account->loadLocalizationSettings(); } - if ($this->type === IMPORT_JSON) { - $includeData = $this->settings['include_data']; - $includeSettings = $this->settings['include_settings']; - $files = $this->settings['files']; - $results = $importService->importJSON($files[IMPORT_JSON], $includeData, $includeSettings); - } elseif ($this->type === IMPORT_CSV) { - $map = $this->settings['map']; - $headers = $this->settings['headers']; - $timestamp = $this->settings['timestamp']; - $results = $importService->importCSV($map, $headers, $timestamp); - } else { - $source = $this->settings['source']; - $files = $this->settings['files']; - $results = $importService->importFiles($source, $files); + try { + if ($this->type === IMPORT_JSON) { + $includeData = $this->settings['include_data']; + $includeSettings = $this->settings['include_settings']; + $files = $this->settings['files']; + $results = $importService->importJSON($files[IMPORT_JSON], $includeData, $includeSettings); + } elseif ($this->type === IMPORT_CSV) { + $map = $this->settings['map']; + $headers = $this->settings['headers']; + $timestamp = $this->settings['timestamp']; + $results = $importService->importCSV($map, $headers, $timestamp); + } else { + $source = $this->settings['source']; + $files = $this->settings['files']; + $results = $importService->importFiles($source, $files); + } + + $subject = trans('texts.import_complete'); + $message = $importService->presentResults($results, $includeSettings); + } catch (Exception $exception) { + $subject = trans('texts.import_failed'); + $message = $exception->getMessage(); + Utils::logError($subject . ':' . $message); } - $subject = trans('texts.import_complete'); - $message = $importService->presentResults($results, $includeSettings); $userMailer->sendMessage($this->user, $subject, $message); if (App::runningInConsole()) { diff --git a/app/Jobs/PurgeAccountData.php b/app/Jobs/PurgeAccountData.php index daad1f1efb97..6e928420adbd 100644 --- a/app/Jobs/PurgeAccountData.php +++ b/app/Jobs/PurgeAccountData.php @@ -38,6 +38,7 @@ class PurgeAccountData extends Job 'credits', 'expense_categories', 'expenses', + 'recurring_expenses', 'invoice_items', 'payments', 'invoices', @@ -56,6 +57,7 @@ class PurgeAccountData extends Job $account->invoice_number_counter = 1; $account->quote_number_counter = 1; + $account->credit_number_counter = $account->credit_number_counter > 0 ? 1 : 0; $account->client_number_counter = $account->client_number_counter > 0 ? 1 : 0; $account->save(); diff --git a/app/Libraries/HistoryUtils.php b/app/Libraries/HistoryUtils.php index cfd45207b40e..63734d218570 100644 --- a/app/Libraries/HistoryUtils.php +++ b/app/Libraries/HistoryUtils.php @@ -80,6 +80,7 @@ class HistoryUtils ENTITY_QUOTE, ENTITY_TASK, ENTITY_EXPENSE, + //ENTITY_RECURRING_EXPENSE, ]; if (! in_array($entityType, $trackedTypes)) { diff --git a/app/Libraries/OFX.php b/app/Libraries/OFX.php index 2fa13d80c589..dcf38eb094b0 100644 --- a/app/Libraries/OFX.php +++ b/app/Libraries/OFX.php @@ -35,7 +35,7 @@ class OFX $this->response = curl_exec($c); if (Utils::isNinjaDev()) { - Log::info(print_r($this->response, true)); + //Log::info(print_r($this->response, true)); } curl_close($c); @@ -90,6 +90,8 @@ class Login public $bank; public $id; public $pass; + public $ofxVersion; + public $appVersion; public function __construct($bank, $id, $pass) { @@ -103,7 +105,7 @@ class Login $ofxRequest = "OFXHEADER:100\n". "DATA:OFXSGML\n". - "VERSION:102\n". + "VERSION:" . $this->ofxVersion . "\n". "SECURITY:NONE\n". "ENCODING:USASCII\n". "CHARSET:1252\n". @@ -124,7 +126,7 @@ class Login ''.$this->bank->fid."\n". "\n". "QWIN\n". - "2500\n". + "" . $this->appVersion . "\n". "\n". "\n". "\n". @@ -173,7 +175,7 @@ class Account $ofxRequest = "OFXHEADER:100\n". "DATA:OFXSGML\n". - "VERSION:102\n". + "VERSION:" . $this->login->ofxVersion . "\n". "SECURITY:NONE\n". "ENCODING:USASCII\n". "CHARSET:1252\n". @@ -193,7 +195,7 @@ class Account ''.$this->login->bank->fid."\n". "\n". "QWIN\n". - "2500\n". + "" . $this->login->appVersion . "\n". "\n". "\n"; if ($this->type == 'BANK') { diff --git a/app/Libraries/Utils.php b/app/Libraries/Utils.php index 6a3ca2010510..df0c26a8a9c6 100644 --- a/app/Libraries/Utils.php +++ b/app/Libraries/Utils.php @@ -690,7 +690,7 @@ class Utils } } - public static function processVariables($str) + public static function processVariables($str, $client = false) { if (! $str) { return ''; @@ -718,7 +718,8 @@ class Utils $offset = intval($minArray[1]) * -1; } - $val = self::getDatePart($variable, $offset); + $locale = $client && $client->language_id ? $client->language->locale : null; + $val = self::getDatePart($variable, $offset, $locale); $str = str_replace($match, $val, $str); } } @@ -726,11 +727,11 @@ class Utils return $str; } - private static function getDatePart($part, $offset) + private static function getDatePart($part, $offset, $locale) { $offset = intval($offset); if ($part == 'MONTH') { - return self::getMonth($offset); + return self::getMonth($offset, $locale); } elseif ($part == 'QUARTER') { return self::getQuarter($offset); } elseif ($part == 'YEAR') { @@ -751,7 +752,7 @@ class Utils return $months; } - private static function getMonth($offset) + private static function getMonth($offset, $locale) { $months = static::$months; $month = intval(date('n')) - 1; @@ -763,7 +764,7 @@ class Utils $month += 12; } - return trans('texts.' . $months[$month]); + return trans('texts.' . $months[$month], [], null, $locale); } private static function getQuarter($offset) diff --git a/app/Listeners/HandleUserLoggedIn.php b/app/Listeners/HandleUserLoggedIn.php index 9f330b5b1e2b..10208ab1639d 100644 --- a/app/Listeners/HandleUserLoggedIn.php +++ b/app/Listeners/HandleUserLoggedIn.php @@ -43,7 +43,7 @@ class HandleUserLoggedIn { $account = Auth::user()->account; - if (empty($account->last_login)) { + if (! Utils::isNinja() && empty($account->last_login)) { event(new UserSignedUp()); } @@ -77,6 +77,13 @@ class HandleUserLoggedIn if (! $gateway || $gateway->name !== 'Custom') { Session::flash('error', trans('texts.error_incorrect_gateway_ids')); } + /* + if (! env('APP_KEY')) { + Session::flash('error', trans('texts.error_app_key_not_set')); + } elseif (strstr(env('APP_KEY'), 'SomeRandomString')) { + Session::flash('error', trans('texts.error_app_key_set_to_default')); + } + */ } } } diff --git a/app/Models/Account.php b/app/Models/Account.php index f8a90d4344da..e50c0d36fcc7 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -171,6 +171,9 @@ class Account extends Eloquent 'custom_contact_label2', 'domain_id', 'analytics_key', + 'credit_number_counter', + 'credit_number_prefix', + 'credit_number_pattern', ]; /** @@ -219,6 +222,28 @@ class Account extends Eloquent 'outstanding' => 4, ]; + public static $customLabels = [ + 'balance_due', + 'description', + 'discount', + 'due_date', + 'hours', + 'id_number', + 'item', + 'line_total', + 'paid_to_date', + 'partial_due', + 'po_number', + 'quantity', + 'rate', + 'service', + 'subtotal', + 'tax', + 'terms', + 'unit_cost', + 'vat_number', + ]; + /** * @return \Illuminate\Database\Eloquent\Relations\HasMany */ @@ -944,6 +969,14 @@ class Account extends Eloquent return strpos($this->account_key, 'zg4ylmzDkdkPOT8yoKQw9LTWaoZJx7') === 0; } + /** + * @return bool + */ + public function isNinjaOrLicenseAccount() + { + return $this->isNinjaAccount() || $this->account_key == NINJA_LICENSE_ACCOUNT_KEY; + } + /** * @param $plan */ @@ -1570,6 +1603,7 @@ class Account extends Eloquent return true; } + // note: single & checks bitmask match return $this->enabled_modules & static::$modules[$entityType]; } diff --git a/app/Models/BankAccount.php b/app/Models/BankAccount.php index 276a067e3b92..2cd4a65646ef 100644 --- a/app/Models/BankAccount.php +++ b/app/Models/BankAccount.php @@ -10,11 +10,21 @@ use Illuminate\Database\Eloquent\SoftDeletes; class BankAccount extends EntityModel { use SoftDeletes; + /** * @var array */ protected $dates = ['deleted_at']; + /** + * @var array + */ + protected $fillable = [ + 'bank_id', + 'app_version', + 'ofx_version', + ]; + /** * @return mixed */ diff --git a/app/Models/Client.php b/app/Models/Client.php index d09984343f00..31009197ff9a 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -305,6 +305,7 @@ class Client extends EntityModel $contact->fill($data); $contact->is_primary = $isPrimary; + $contact->email = trim($contact->email); return $this->contacts()->save($contact); } @@ -559,6 +560,15 @@ class Client extends EntityModel { return $this->payment_terms == -1 ? 0 : $this->payment_terms; } + + public function firstInvitationKey() + { + if ($invoice = $this->invoices->first()) { + if ($invitation = $invoice->invitations->first()) { + return $invitation->invitation_key; + } + } + } } Client::creating(function ($client) { diff --git a/app/Models/EntityModel.php b/app/Models/EntityModel.php index f1c73ed70e2c..b86cc4c9de33 100644 --- a/app/Models/EntityModel.php +++ b/app/Models/EntityModel.php @@ -312,6 +312,7 @@ class EntityModel extends Eloquent 'invoices' => 'file-pdf-o', 'payments' => 'credit-card', 'recurring_invoices' => 'files-o', + 'recurring_expenses' => 'files-o', 'credits' => 'credit-card', 'quotes' => 'file-text-o', 'tasks' => 'clock-o', diff --git a/app/Models/Expense.php b/app/Models/Expense.php index 3004e2efa75e..a76b59cae032 100644 --- a/app/Models/Expense.php +++ b/app/Models/Expense.php @@ -51,6 +51,7 @@ class Expense extends EntityModel 'payment_type_id', 'transaction_reference', 'invoice_documents', + 'should_be_invoiced', ]; public static function getImportColumns() @@ -141,6 +142,15 @@ class Expense extends EntityModel return $this->belongsTo('App\Models\PaymentType'); } + /** + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo + */ + public function recurring_expense() + { + return $this->belongsTo('App\Models\RecurringExpense'); + } + + /** * @return mixed */ diff --git a/app/Models/Gateway.php b/app/Models/Gateway.php index 1765686ad043..793473fe9f36 100644 --- a/app/Models/Gateway.php +++ b/app/Models/Gateway.php @@ -171,6 +171,8 @@ class Gateway extends Eloquent $link = 'https://www.dwolla.com/register'; } elseif ($this->id == GATEWAY_SAGE_PAY_DIRECT || $this->id == GATEWAY_SAGE_PAY_SERVER) { $link = 'https://applications.sagepay.com/apply/2C02C252-0F8A-1B84-E10D-CF933EFCAA99'; + } elseif ($this->id == GATEWAY_STRIPE) { + $link = 'https://dashboard.stripe.com/account/apikeys'; } $key = 'texts.gateway_help_'.$this->id; diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 33988b578f5a..a0789bc6e68d 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -10,12 +10,13 @@ use App\Events\InvoiceInvitationWasEmailed; use App\Events\QuoteInvitationWasEmailed; use App\Libraries\CurlUtils; use App\Models\Activity; +use App\Models\Credit; use App\Models\Traits\ChargesFees; +use App\Models\Traits\HasRecurrence; use DateTime; use Illuminate\Database\Eloquent\SoftDeletes; use Laracasts\Presenter\PresentableTrait; use Utils; -use Carbon; /** * Class Invoice. @@ -25,6 +26,7 @@ class Invoice extends EntityModel implements BalanceAffecting use PresentableTrait; use OwnedByClientTrait; use ChargesFees; + use HasRecurrence; use SoftDeletes { SoftDeletes::trashed as parentTrashed; } @@ -446,6 +448,10 @@ class Invoice extends EntityModel implements BalanceAffecting public function markSent() { + if ($this->is_deleted) { + return; + } + if (! $this->isSent()) { $this->invoice_status_id = INVOICE_STATUS_SENT; } @@ -462,6 +468,10 @@ class Invoice extends EntityModel implements BalanceAffecting */ public function markInvitationsSent($notify = false, $reminder = false) { + if ($this->is_deleted) { + return; + } + if (! $this->relationLoaded('invitations')) { $this->load('invitations'); } @@ -494,6 +504,10 @@ class Invoice extends EntityModel implements BalanceAffecting */ public function markInvitationSent($invitation, $messageId = false, $notify = true, $notes = false) { + if ($this->is_deleted) { + return; + } + if (! $this->isSent()) { $this->is_public = true; $this->invoice_status_id = INVOICE_STATUS_SENT; @@ -531,7 +545,7 @@ class Invoice extends EntityModel implements BalanceAffecting $statusId = false; if ($this->amount != 0 && $this->balance == 0) { $statusId = INVOICE_STATUS_PAID; - } elseif ($this->balance > 0 && $this->balance < $this->amount) { + } elseif ($this->isSent() && $this->balance > 0 && $this->balance < $this->amount) { $statusId = INVOICE_STATUS_PARTIAL; } elseif ($this->isPartial() && $this->balance > 0) { $statusId = ($this->balance == $this->amount ? INVOICE_STATUS_SENT : INVOICE_STATUS_PARTIAL); @@ -685,13 +699,13 @@ class Invoice extends EntityModel implements BalanceAffecting return self::calcLink($this); } - public function getInvitationLink($type = 'view', $forceOnsite = false) + public function getInvitationLink($type = 'view', $forceOnsite = false, $forcePlain = false) { if (! $this->relationLoaded('invitations')) { $this->load('invitations'); } - return $this->invitations[0]->getLink($type, $forceOnsite); + return $this->invitations[0]->getLink($type, $forceOnsite, $forcePlain); } /** @@ -897,6 +911,7 @@ class Invoice extends EntityModel implements BalanceAffecting 'tax_rate1', 'tax_name2', 'tax_rate2', + 'invoice_item_type_id', ]); } @@ -1123,122 +1138,6 @@ class Invoice extends EntityModel implements BalanceAffecting return implode('
', $dates); } - /** - * @return string - */ - private function getRecurrenceRule() - { - $rule = ''; - - switch ($this->frequency_id) { - case FREQUENCY_WEEKLY: - $rule = 'FREQ=WEEKLY;'; - break; - case FREQUENCY_TWO_WEEKS: - $rule = 'FREQ=WEEKLY;INTERVAL=2;'; - break; - case FREQUENCY_FOUR_WEEKS: - $rule = 'FREQ=WEEKLY;INTERVAL=4;'; - break; - case FREQUENCY_MONTHLY: - $rule = 'FREQ=MONTHLY;'; - break; - case FREQUENCY_TWO_MONTHS: - $rule = 'FREQ=MONTHLY;INTERVAL=2;'; - break; - case FREQUENCY_THREE_MONTHS: - $rule = 'FREQ=MONTHLY;INTERVAL=3;'; - break; - case FREQUENCY_SIX_MONTHS: - $rule = 'FREQ=MONTHLY;INTERVAL=6;'; - break; - case FREQUENCY_ANNUALLY: - $rule = 'FREQ=YEARLY;'; - break; - } - - if ($this->end_date) { - $rule .= 'UNTIL=' . $this->getOriginal('end_date'); - } - - return $rule; - } - - /* - public function shouldSendToday() - { - if (!$nextSendDate = $this->getNextSendDate()) { - return false; - } - - return $this->account->getDateTime() >= $nextSendDate; - } - */ - - /** - * @return bool - */ - public function shouldSendToday() - { - if (! $this->user->confirmed) { - return false; - } - - $account = $this->account; - $timezone = $account->getTimezone(); - - if (! $this->start_date || Carbon::parse($this->start_date, $timezone)->isFuture()) { - return false; - } - - if ($this->end_date && Carbon::parse($this->end_date, $timezone)->isPast()) { - return false; - } - - if (! $this->last_sent_date) { - return true; - } else { - $date1 = new DateTime($this->last_sent_date); - $date2 = new DateTime(); - $diff = $date2->diff($date1); - $daysSinceLastSent = $diff->format('%a'); - $monthsSinceLastSent = ($diff->format('%y') * 12) + $diff->format('%m'); - - // check we don't send a few hours early due to timezone difference - if (Carbon::now()->format('Y-m-d') != Carbon::now($timezone)->format('Y-m-d')) { - return false; - } - - // check we never send twice on one day - if ($daysSinceLastSent == 0) { - return false; - } - } - - switch ($this->frequency_id) { - case FREQUENCY_WEEKLY: - return $daysSinceLastSent >= 7; - case FREQUENCY_TWO_WEEKS: - return $daysSinceLastSent >= 14; - case FREQUENCY_FOUR_WEEKS: - return $daysSinceLastSent >= 28; - case FREQUENCY_MONTHLY: - return $monthsSinceLastSent >= 1; - case FREQUENCY_TWO_MONTHS: - return $monthsSinceLastSent >= 2; - case FREQUENCY_THREE_MONTHS: - return $monthsSinceLastSent >= 3; - case FREQUENCY_SIX_MONTHS: - return $monthsSinceLastSent >= 6; - case FREQUENCY_ANNUALLY: - return $monthsSinceLastSent >= 12; - default: - return false; - } - - return false; - } - /** * @return bool|string */ @@ -1255,17 +1154,18 @@ class Invoice extends EntityModel implements BalanceAffecting $invitation = $this->invitations[0]; $link = $invitation->getLink('view', true); $pdfString = false; + $phantomjsSecret = env('PHANTOMJS_SECRET'); try { if (env('PHANTOMJS_BIN_PATH')) { - $pdfString = CurlUtils::phantom('GET', $link . '?phantomjs=true&phantomjs_secret=' . env('PHANTOMJS_SECRET')); + $pdfString = CurlUtils::phantom('GET', $link . "?phantomjs=true&phantomjs_secret={$phantomjsSecret}"); } if (! $pdfString && ($key = env('PHANTOMJS_CLOUD_KEY'))) { if (Utils::isNinjaDev()) { $link = env('TEST_LINK'); } - $url = "http://api.phantomjscloud.com/api/browser/v2/{$key}/?request=%7Burl:%22{$link}?phantomjs=true%22,renderType:%22html%22%7D"; + $url = "http://api.phantomjscloud.com/api/browser/v2/{$key}/?request=%7Burl:%22{$link}?phantomjs=true&phantomjs_secret={$phantomjsSecret}%22,renderType:%22html%22%7D"; $pdfString = CurlUtils::get($url); } @@ -1526,8 +1426,13 @@ class Invoice extends EntityModel implements BalanceAffecting } Invoice::creating(function ($invoice) { - if (! $invoice->is_recurring && $invoice->amount >= 0) { - $invoice->account->incrementCounter($invoice); + if (! $invoice->is_recurring) { + $account = $invoice->account; + if ($invoice->amount >= 0) { + $account->incrementCounter($invoice); + } elseif ($account->credit_number_counter > 0) { + $account->incrementCounter(new Credit()); + } } }); diff --git a/app/Models/RecurringExpense.php b/app/Models/RecurringExpense.php new file mode 100644 index 000000000000..04703e916104 --- /dev/null +++ b/app/Models/RecurringExpense.php @@ -0,0 +1,154 @@ +belongsTo('App\Models\ExpenseCategory')->withTrashed(); + } + + /** + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo + */ + public function account() + { + return $this->belongsTo('App\Models\Account'); + } + + /** + * @return mixed + */ + public function user() + { + return $this->belongsTo('App\Models\User')->withTrashed(); + } + + /** + * @return mixed + */ + public function vendor() + { + return $this->belongsTo('App\Models\Vendor')->withTrashed(); + } + + /** + * @return mixed + */ + public function client() + { + return $this->belongsTo('App\Models\Client')->withTrashed(); + } + + /** + * @return mixed + */ + public function getName() + { + if ($this->public_notes) { + return Utils::truncateString($this->public_notes, 16); + } else { + return '#' . $this->public_id; + } + } + + /** + * @return mixed + */ + public function getDisplayName() + { + return $this->getName(); + } + + /** + * @return string + */ + public function getRoute() + { + return "/recurring_expenses/{$this->public_id}/edit"; + } + + /** + * @return mixed + */ + public function getEntityType() + { + return ENTITY_RECURRING_EXPENSE; + } + + public function amountWithTax() + { + return Utils::calculateTaxes($this->amount, $this->tax_rate1, $this->tax_rate2); + } +} + +RecurringExpense::creating(function ($expense) { + $expense->setNullValues(); +}); + +RecurringExpense::created(function ($expense) { + //event(new ExpenseWasCreated($expense)); +}); + +RecurringExpense::updating(function ($expense) { + $expense->setNullValues(); +}); + +RecurringExpense::updated(function ($expense) { + //event(new ExpenseWasUpdated($expense)); +}); + +RecurringExpense::deleting(function ($expense) { + $expense->setNullValues(); +}); diff --git a/app/Models/Traits/GeneratesNumbers.php b/app/Models/Traits/GeneratesNumbers.php index ccdce951198a..3d8d5e6bd58a 100644 --- a/app/Models/Traits/GeneratesNumbers.php +++ b/app/Models/Traits/GeneratesNumbers.php @@ -67,6 +67,11 @@ trait GeneratesNumbers $this->client_number_counter += $counterOffset - 1; $this->save(); } + } elseif ($entity->isEntityType(ENTITY_CREDIT)) { + if ($this->creditNumbersEnabled()) { + $this->credit_number_counter += $counterOffset - 1; + $this->save(); + } } elseif ($entity->isType(INVOICE_TYPE_QUOTE)) { if (! $this->share_counter) { $this->quote_number_counter += $counterOffset - 1; @@ -227,6 +232,8 @@ trait GeneratesNumbers { if ($entityType == ENTITY_CLIENT) { return $this->client_number_counter; + } elseif ($entityType == ENTITY_CREDIT) { + return $this->credit_number_counter; } elseif ($entityType == ENTITY_QUOTE && ! $this->share_counter) { return $this->quote_number_counter; } else { @@ -254,11 +261,17 @@ trait GeneratesNumbers public function incrementCounter($entity) { if ($entity->isEntityType(ENTITY_CLIENT)) { - if ($this->client_number_counter) { + if ($this->client_number_counter > 0) { $this->client_number_counter += 1; } $this->save(); return; + } elseif ($entity->isEntityType(ENTITY_CREDIT)) { + if ($this->credit_number_counter > 0) { + $this->credit_number_counter += 1; + } + $this->save(); + return; } if ($this->usesClientInvoiceCounter()) { @@ -295,6 +308,11 @@ trait GeneratesNumbers return $this->hasFeature(FEATURE_INVOICE_SETTINGS) && $this->client_number_counter > 0; } + public function creditNumbersEnabled() + { + return $this->hasFeature(FEATURE_INVOICE_SETTINGS) && $this->credit_number_counter > 0; + } + public function checkCounterReset() { if (! $this->reset_counter_frequency_id || ! $this->reset_counter_date) { @@ -338,6 +356,7 @@ trait GeneratesNumbers $this->reset_counter_date = $resetDate->format('Y-m-d'); $this->invoice_number_counter = 1; $this->quote_number_counter = 1; + $this->credit_number_counter = 1; $this->save(); } } diff --git a/app/Models/Traits/HasRecurrence.php b/app/Models/Traits/HasRecurrence.php new file mode 100644 index 000000000000..9757fa0e1758 --- /dev/null +++ b/app/Models/Traits/HasRecurrence.php @@ -0,0 +1,129 @@ +user->confirmed) { + return false; + } + + $account = $this->account; + $timezone = $account->getTimezone(); + + if (! $this->start_date || Carbon::parse($this->start_date, $timezone)->isFuture()) { + return false; + } + + if ($this->end_date && Carbon::parse($this->end_date, $timezone)->isPast()) { + return false; + } + + if (! $this->last_sent_date) { + return true; + } else { + $date1 = new DateTime($this->last_sent_date); + $date2 = new DateTime(); + $diff = $date2->diff($date1); + $daysSinceLastSent = $diff->format('%a'); + $monthsSinceLastSent = ($diff->format('%y') * 12) + $diff->format('%m'); + + // check we don't send a few hours early due to timezone difference + if (Carbon::now()->format('Y-m-d') != Carbon::now($timezone)->format('Y-m-d')) { + return false; + } + + // check we never send twice on one day + if ($daysSinceLastSent == 0) { + return false; + } + } + + switch ($this->frequency_id) { + case FREQUENCY_WEEKLY: + return $daysSinceLastSent >= 7; + case FREQUENCY_TWO_WEEKS: + return $daysSinceLastSent >= 14; + case FREQUENCY_FOUR_WEEKS: + return $daysSinceLastSent >= 28; + case FREQUENCY_MONTHLY: + return $monthsSinceLastSent >= 1; + case FREQUENCY_TWO_MONTHS: + return $monthsSinceLastSent >= 2; + case FREQUENCY_THREE_MONTHS: + return $monthsSinceLastSent >= 3; + case FREQUENCY_SIX_MONTHS: + return $monthsSinceLastSent >= 6; + case FREQUENCY_ANNUALLY: + return $monthsSinceLastSent >= 12; + default: + return false; + } + + return false; + } + + /** + * @return string + */ + private function getRecurrenceRule() + { + $rule = ''; + + switch ($this->frequency_id) { + case FREQUENCY_WEEKLY: + $rule = 'FREQ=WEEKLY;'; + break; + case FREQUENCY_TWO_WEEKS: + $rule = 'FREQ=WEEKLY;INTERVAL=2;'; + break; + case FREQUENCY_FOUR_WEEKS: + $rule = 'FREQ=WEEKLY;INTERVAL=4;'; + break; + case FREQUENCY_MONTHLY: + $rule = 'FREQ=MONTHLY;'; + break; + case FREQUENCY_TWO_MONTHS: + $rule = 'FREQ=MONTHLY;INTERVAL=2;'; + break; + case FREQUENCY_THREE_MONTHS: + $rule = 'FREQ=MONTHLY;INTERVAL=3;'; + break; + case FREQUENCY_SIX_MONTHS: + $rule = 'FREQ=MONTHLY;INTERVAL=6;'; + break; + case FREQUENCY_ANNUALLY: + $rule = 'FREQ=YEARLY;'; + break; + } + + if ($this->end_date) { + $rule .= 'UNTIL=' . $this->getOriginal('end_date'); + } + + return $rule; + } + + /* + public function shouldSendToday() + { + if (!$nextSendDate = $this->getNextSendDate()) { + return false; + } + + return $this->account->getDateTime() >= $nextSendDate; + } + */ + +} diff --git a/app/Models/Traits/PresentsInvoice.php b/app/Models/Traits/PresentsInvoice.php index cb48c8a5dba2..641e6bdb7ab4 100644 --- a/app/Models/Traits/PresentsInvoice.php +++ b/app/Models/Traits/PresentsInvoice.php @@ -263,13 +263,16 @@ trait PresentsInvoice 'outstanding', 'invoice_due_date', 'quote_due_date', + 'service', ]; foreach ($fields as $field) { + $translated = $this->isEnglish() ? uctrans("texts.$field") : trans("texts.$field"); if (isset($custom[$field]) && $custom[$field]) { $data[$field] = $custom[$field]; + $data[$field . '_orig'] = $translated; } else { - $data[$field] = $this->isEnglish() ? uctrans("texts.$field") : trans("texts.$field"); + $data[$field] = $translated; } } diff --git a/app/Ninja/Datatables/RecurringExpenseDatatable.php b/app/Ninja/Datatables/RecurringExpenseDatatable.php new file mode 100644 index 000000000000..4ecafef47459 --- /dev/null +++ b/app/Ninja/Datatables/RecurringExpenseDatatable.php @@ -0,0 +1,121 @@ +vendor_public_id) { + if (! Auth::user()->can('viewByOwner', [ENTITY_VENDOR, $model->vendor_user_id])) { + return $model->vendor_name; + } + + return link_to("vendors/{$model->vendor_public_id}", $model->vendor_name)->toHtml(); + } else { + return ''; + } + }, + ! $this->hideClient, + ], + [ + 'client_name', + function ($model) { + if ($model->client_public_id) { + if (! Auth::user()->can('viewByOwner', [ENTITY_CLIENT, $model->client_user_id])) { + return Utils::getClientDisplayName($model); + } + + return link_to("clients/{$model->client_public_id}", Utils::getClientDisplayName($model))->toHtml(); + } else { + return ''; + } + }, + ! $this->hideClient, + ], +/* + [ + 'expense_date', + function ($model) { + if (! Auth::user()->can('viewByOwner', [ENTITY_EXPENSE, $model->user_id])) { + return Utils::fromSqlDate($model->expense_date_sql); + } + + return link_to("expenses/{$model->public_id}/edit", Utils::fromSqlDate($model->expense_date_sql))->toHtml(); + }, + ], +*/ + [ + 'amount', + function ($model) { + $amount = Utils::calculateTaxes($model->amount, $model->tax_rate1, $model->tax_rate2); + $str = Utils::formatMoney($amount, $model->expense_currency_id); + + /* + // show both the amount and the converted amount + if ($model->exchange_rate != 1) { + $converted = round($amount * $model->exchange_rate, 2); + $str .= ' | ' . Utils::formatMoney($converted, $model->invoice_currency_id); + } + */ + + return $str; + }, + ], + [ + 'category', + function ($model) { + $category = $model->category != null ? substr($model->category, 0, 100) : ''; + if (! Auth::user()->can('editByOwner', [ENTITY_EXPENSE_CATEGORY, $model->category_user_id])) { + return $category; + } + + return $model->category_public_id ? link_to("expense_categories/{$model->category_public_id}/edit", $category)->toHtml() : ''; + }, + ], + [ + 'public_notes', + function ($model) { + return $model->public_notes != null ? substr($model->public_notes, 0, 100) : ''; + }, + ], + [ + 'frequency', + function ($model) { + $frequency = strtolower($model->frequency); + $frequency = preg_replace('/\s/', '_', $frequency); + + return link_to("recurring_expenses/{$model->public_id}/edit", trans('texts.freq_'.$frequency))->toHtml(); + }, + ], + ]; + } + + public function actions() + { + return [ + [ + trans('texts.edit_recurring_expense'), + function ($model) { + return URL::to("recurring_expenses/{$model->public_id}/edit"); + }, + function ($model) { + return Auth::user()->can('editByOwner', [ENTITY_RECURRING_EXPENSE, $model->user_id]); + }, + ], + ]; + } + +} diff --git a/app/Ninja/Datatables/RecurringInvoiceDatatable.php b/app/Ninja/Datatables/RecurringInvoiceDatatable.php index 074986d4eb59..797d3ca0cf1c 100644 --- a/app/Ninja/Datatables/RecurringInvoiceDatatable.php +++ b/app/Ninja/Datatables/RecurringInvoiceDatatable.php @@ -17,10 +17,15 @@ class RecurringInvoiceDatatable extends EntityDatatable [ 'frequency', function ($model) { - $frequency = strtolower($model->frequency); - $frequency = preg_replace('/\s/', '_', $frequency); + if ($model->frequency) { + $frequency = strtolower($model->frequency); + $frequency = preg_replace('/\s/', '_', $frequency); + $label = trans('texts.freq_' . $frequency); + } else { + $label = trans('texts.freq_inactive'); + } - return link_to("recurring_invoices/{$model->public_id}/edit", trans('texts.freq_'.$frequency))->toHtml(); + return link_to("recurring_invoices/{$model->public_id}/edit", $label)->toHtml(); }, ], [ @@ -76,8 +81,12 @@ class RecurringInvoiceDatatable extends EntityDatatable $class = Invoice::calcStatusClass($model->invoice_status_id, $model->balance, $model->due_date_sql, $model->is_recurring); $label = Invoice::calcStatusLabel($model->invoice_status_name, $class, $this->entityType, $model->quote_invoice_id); - if ($model->invoice_status_id == INVOICE_STATUS_SENT && (! $model->last_sent_date_sql || $model->last_sent_date_sql == '0000-00-00')) { - $label = trans('texts.pending'); + if ($model->invoice_status_id == INVOICE_STATUS_SENT) { + if (! $model->last_sent_date_sql || $model->last_sent_date_sql == '0000-00-00') { + $label = trans('texts.pending'); + } else { + $label = trans('texts.active'); + } } return "

$label

"; diff --git a/app/Ninja/Import/BaseTransformer.php b/app/Ninja/Import/BaseTransformer.php index 0d672a0c2dd8..d136b159f1ff 100644 --- a/app/Ninja/Import/BaseTransformer.php +++ b/app/Ninja/Import/BaseTransformer.php @@ -5,6 +5,7 @@ namespace App\Ninja\Import; use Carbon; use League\Fractal\TransformerAbstract; use Utils; +use Exception; /** * Class BaseTransformer. @@ -107,6 +108,30 @@ class BaseTransformer extends TransformerAbstract return isset($this->maps[ENTITY_PRODUCT][$name]) ? $this->maps[ENTITY_PRODUCT][$name] : null; } + /** + * @param $name + * + * @return null + */ + public function getProductNotes($name) + { + $name = strtolower(trim($name)); + + return isset($this->maps['product_notes'][$name]) ? $this->maps['product_notes'][$name] : null; + } + + /** + * @param $name + * + * @return null + */ + public function getProductCost($name) + { + $name = strtolower(trim($name)); + + return isset($this->maps['product_cost'][$name]) ? $this->maps['product_cost'][$name] : null; + } + /** * @param $name * @@ -158,6 +183,7 @@ class BaseTransformer extends TransformerAbstract $date = new Carbon($date); } catch (Exception $e) { // if we fail to parse return blank + $date = false; } } diff --git a/app/Ninja/Import/CSV/InvoiceTransformer.php b/app/Ninja/Import/CSV/InvoiceTransformer.php index 146f7a5846a6..0692badfb3fc 100644 --- a/app/Ninja/Import/CSV/InvoiceTransformer.php +++ b/app/Ninja/Import/CSV/InvoiceTransformer.php @@ -38,8 +38,8 @@ class InvoiceTransformer extends BaseTransformer 'invoice_items' => [ [ 'product_key' => $this->getString($data, 'product'), - 'notes' => $this->getString($data, 'notes'), - 'cost' => $this->getFloat($data, 'amount'), + 'notes' => $this->getString($data, 'notes') ?: $this->getProductNotes($this->getString($data, 'product')), + 'cost' => $this->getFloat($data, 'amount') ?: $this->getProductCost($this->getString($data, 'product')), 'qty' => $this->getFloat($data, 'quantity') ?: 1, ], ], diff --git a/app/Ninja/Mailers/Mailer.php b/app/Ninja/Mailers/Mailer.php index 5b4d34c23302..aac226b3fcfe 100644 --- a/app/Ninja/Mailers/Mailer.php +++ b/app/Ninja/Mailers/Mailer.php @@ -29,6 +29,7 @@ class Mailer return true; } + /* if (isset($_ENV['POSTMARK_API_TOKEN'])) { $views = 'emails.'.$view.'_html'; } else { @@ -37,6 +38,12 @@ class Mailer 'emails.'.$view.'_text', ]; } + */ + + $views = [ + 'emails.'.$view.'_html', + 'emails.'.$view.'_text', + ]; try { $response = Mail::send($views, $data, function ($message) use ($toEmail, $fromEmail, $fromName, $subject, $data) { diff --git a/app/Ninja/PaymentDrivers/BasePaymentDriver.php b/app/Ninja/PaymentDrivers/BasePaymentDriver.php index 583664482dfc..7d1e9158da2f 100644 --- a/app/Ninja/PaymentDrivers/BasePaymentDriver.php +++ b/app/Ninja/PaymentDrivers/BasePaymentDriver.php @@ -10,6 +10,7 @@ use App\Models\GatewayType; use App\Models\License; use App\Models\Payment; use App\Models\PaymentMethod; +use Omnipay\Common\Item; use CreditCard; use DateTime; use Exception; @@ -157,6 +158,11 @@ class BasePaymentDriver return redirect()->to('view/' . $this->invitation->invitation_key); } + $url = 'payment/' . $this->invitation->invitation_key; + if (request()->update) { + $url .= '?update=true'; + } + $data = [ 'details' => ! empty($input['details']) ? json_decode($input['details']) : false, 'accountGateway' => $this->accountGateway, @@ -164,7 +170,7 @@ class BasePaymentDriver 'gateway' => $gateway, 'showAddress' => $this->accountGateway->show_address, 'showBreadcrumbs' => false, - 'url' => 'payment/' . $this->invitation->invitation_key, + 'url' => $url, 'amount' => $this->invoice()->getRequestedAmount(), 'invoiceNumber' => $this->invoice()->invoice_number, 'client' => $this->client(), @@ -293,13 +299,16 @@ class BasePaymentDriver } } - if ($this->isTwoStep()) { + if ($this->isTwoStep() || request()->update) { return; } // prepare and process payment $data = $this->paymentDetails($paymentMethod); - $response = $gateway->purchase($data)->send(); + $items = $this->paymentItems(); + $response = $gateway->purchase($data) + ->setItems($items) + ->send(); $this->purchaseResponse = (array) $response->getData(); // parse the transaction reference @@ -332,6 +341,38 @@ class BasePaymentDriver } } + private function paymentItems() + { + $invoice = $this->invoice(); + $items = []; + $total = 0; + + foreach ($invoice->invoice_items as $invoiceItem) { + $item = new Item([ + 'name' => $invoiceItem->product_key, + 'description' => $invoiceItem->notes, + 'price' => $invoiceItem->cost, + 'quantity' => $invoiceItem->qty, + ]); + + $items[] = $item; + $total += $invoiceItem->cost * $invoiceItem->qty; + } + + if ($total != $invoice->getRequestedAmount()) { + $item = new Item([ + 'name' => trans('texts.taxes_and_fees'), + 'description' => '', + 'price' => $invoice->getRequestedAmount() - $total, + 'quantity' => 1, + ]); + + $items[] = $item; + } + + return $items; + } + private function updateClient() { if (! $this->isGatewayType(GATEWAY_TYPE_CREDIT_CARD)) { @@ -381,7 +422,7 @@ class BasePaymentDriver 'description' => trans('texts.' . $invoice->getEntityType()) . " {$invoice->invoice_number}", 'transactionId' => $invoice->invoice_number, 'transactionType' => 'Purchase', - 'ip' => Request::getClientIp(), + 'clientIp' => Request::getClientIp(), ]; if ($paymentMethod) { diff --git a/app/Ninja/PaymentDrivers/MolliePaymentDriver.php b/app/Ninja/PaymentDrivers/MolliePaymentDriver.php index af21c697f37e..9a1fc9f1773c 100644 --- a/app/Ninja/PaymentDrivers/MolliePaymentDriver.php +++ b/app/Ninja/PaymentDrivers/MolliePaymentDriver.php @@ -4,6 +4,7 @@ namespace App\Ninja\PaymentDrivers; use Exception; use App\Models\Invitation; +use App\Models\Payment; class MolliePaymentDriver extends BasePaymentDriver { @@ -19,42 +20,38 @@ class MolliePaymentDriver extends BasePaymentDriver public function completeOffsitePurchase($input) { - $details = $this->paymentDetails(); - $details['transactionReference'] = $this->invitation->transaction_reference; - - $response = $this->gateway()->fetchTransaction($details)->send(); - - if ($response->isCancelled() || ! $response->isSuccessful()) { - return false; - } - - return $this->createPayment($response->getTransactionReference()); + // payment is created by the webhook + return false; } public function handleWebHook($input) { $ref = array_get($input, 'id'); - $invitation = Invitation::whereAccountId($this->accountGateway->account_id) - ->whereTransactionReference($ref) - ->first(); - - if ($invitation) { - $this->invitation = $invitation; - } else { - return false; - } - $data = [ 'transactionReference' => $ref ]; + $response = $this->gateway()->fetchTransaction($data)->send(); - if ($response->isCancelled() || ! $response->isSuccessful()) { + if ($response->isPaid() || $response->isPaidOut()) { + $invitation = Invitation::whereAccountId($this->accountGateway->account_id) + ->whereTransactionReference($ref) + ->first(); + if ($invitation) { + $this->invitation = $invitation; + $this->createPayment($ref); + } + } else { + // check if payment has failed + $payment = Payment::whereAccountId($this->accountGateway->account_id) + ->whereTransactionReference($ref) + ->first(); + if ($payment) { + $payment->markFailed($response->getStatus()); + } return false; } - $this->createPayment($ref); - return RESULT_SUCCESS; } diff --git a/app/Ninja/PaymentDrivers/WePayPaymentDriver.php b/app/Ninja/PaymentDrivers/WePayPaymentDriver.php index e22d305bea5e..e7000048c1cd 100644 --- a/app/Ninja/PaymentDrivers/WePayPaymentDriver.php +++ b/app/Ninja/PaymentDrivers/WePayPaymentDriver.php @@ -151,10 +151,10 @@ class WePayPaymentDriver extends BasePaymentDriver switch ($source->state) { case 'new': case 'pending': - $paymentMethod->status = 'new'; + $paymentMethod->status = PAYMENT_METHOD_STATUS_NEW; break; case 'authorized': - $paymentMethod->status = 'verified'; + $paymentMethod->status = PAYMENT_METHOD_STATUS_VERIFIED; break; } } else { diff --git a/app/Ninja/Presenters/CompanyPresenter.php b/app/Ninja/Presenters/CompanyPresenter.php index 7160d5d850ab..41689dde93f5 100644 --- a/app/Ninja/Presenters/CompanyPresenter.php +++ b/app/Ninja/Presenters/CompanyPresenter.php @@ -11,7 +11,7 @@ class CompanyPresenter extends EntityPresenter } return trans('texts.promo_message', [ - 'expires' => $this->entity->promo_expires->format('M dS, Y'), + 'expires' => $this->entity->promo_expires->format('M jS, Y'), 'amount' => (int) ($this->discount * 100) . '%', ]); } diff --git a/app/Ninja/Repositories/BankAccountRepository.php b/app/Ninja/Repositories/BankAccountRepository.php index ba11b9cc35d8..e61e62b9f80f 100644 --- a/app/Ninja/Repositories/BankAccountRepository.php +++ b/app/Ninja/Repositories/BankAccountRepository.php @@ -31,8 +31,8 @@ class BankAccountRepository extends BaseRepository public function save($input) { $bankAccount = BankAccount::createNew(); - $bankAccount->bank_id = $input['bank_id']; $bankAccount->username = Crypt::encrypt(trim($input['bank_username'])); + $bankAccount->fill($input); $account = \Auth::user()->account; $account->bank_accounts()->save($bankAccount); diff --git a/app/Ninja/Repositories/ExpenseRepository.php b/app/Ninja/Repositories/ExpenseRepository.php index ba539eb254a7..867c0af93635 100644 --- a/app/Ninja/Repositories/ExpenseRepository.php +++ b/app/Ninja/Repositories/ExpenseRepository.php @@ -176,8 +176,6 @@ class ExpenseRepository extends BaseRepository $expense->payment_date = Utils::toSqlDate($input['payment_date']); } - $expense->should_be_invoiced = isset($input['should_be_invoiced']) && floatval($input['should_be_invoiced']) || $expense->client_id ? true : false; - if (! $expense->expense_currency_id) { $expense->expense_currency_id = \Auth::user()->account->getCurrencyId(); } @@ -195,7 +193,7 @@ class ExpenseRepository extends BaseRepository // Documents $document_ids = ! empty($input['document_ids']) ? array_map('intval', $input['document_ids']) : []; - ; + foreach ($document_ids as $document_id) { // check document completed upload before user submitted form if ($document_id) { diff --git a/app/Ninja/Repositories/InvoiceRepository.php b/app/Ninja/Repositories/InvoiceRepository.php index 36eecd2b05a6..fbf475bf9fbc 100644 --- a/app/Ninja/Repositories/InvoiceRepository.php +++ b/app/Ninja/Repositories/InvoiceRepository.php @@ -144,7 +144,7 @@ class InvoiceRepository extends BaseRepository ->join('accounts', 'accounts.id', '=', 'invoices.account_id') ->join('clients', 'clients.id', '=', 'invoices.client_id') ->join('invoice_statuses', 'invoice_statuses.id', '=', 'invoices.invoice_status_id') - ->join('frequencies', 'frequencies.id', '=', 'invoices.frequency_id') + ->leftJoin('frequencies', 'frequencies.id', '=', 'invoices.frequency_id') ->join('contacts', 'contacts.client_id', '=', 'clients.id') ->where('invoices.account_id', '=', $accountId) ->where('invoices.invoice_type_id', '=', INVOICE_TYPE_STANDARD) @@ -217,6 +217,7 @@ class InvoiceRepository extends BaseRepository ->where('clients.deleted_at', '=', null) ->where('invoices.is_recurring', '=', true) ->where('invoices.is_public', '=', true) + ->where('invoices.deleted_at', '=', null) //->where('invoices.start_date', '>=', date('Y-m-d H:i:s')) ->select( DB::raw('COALESCE(clients.currency_id, accounts.currency_id) currency_id'), @@ -431,7 +432,7 @@ class InvoiceRepository extends BaseRepository $invoice->last_sent_date = null; } - $invoice->frequency_id = array_get($data, 'frequency_id', 0); + $invoice->frequency_id = array_get($data, 'frequency_id', FREQUENCY_MONTHLY); $invoice->start_date = Utils::toSqlDate(array_get($data, 'start_date')); $invoice->end_date = Utils::toSqlDate(array_get($data, 'end_date')); $invoice->client_enable_auto_bill = isset($data['client_enable_auto_bill']) && $data['client_enable_auto_bill'] ? true : false; @@ -447,7 +448,9 @@ class InvoiceRepository extends BaseRepository $invoice->due_date = $data['due_date']; } } else { - if (! empty($data['due_date']) || ! empty($data['due_date_sql'])) { + if ($isNew && empty($data['due_date']) && empty($data['due_date_sql'])) { + // do nothing + } elseif (isset($data['due_date']) || isset($data['due_date_sql'])) { $invoice->due_date = isset($data['due_date_sql']) ? $data['due_date_sql'] : Utils::toSqlDate($data['due_date']); } $invoice->frequency_id = 0; @@ -976,7 +979,7 @@ class InvoiceRepository extends BaseRepository * * @return mixed */ - public function findOpenInvoices($clientId, $entityType = false) + public function findOpenInvoices($clientId) { $query = Invoice::scope() ->invoiceType(INVOICE_TYPE_STANDARD) @@ -985,12 +988,6 @@ class InvoiceRepository extends BaseRepository ->whereDeletedAt(null) ->where('balance', '>', 0); - if ($entityType == ENTITY_TASK) { - $query->whereHasTasks(true); - } elseif ($entityType == ENTITY_EXPENSE) { - $query->whereHasTasks(false); - } - return $query->where('invoice_status_id', '<', INVOICE_STATUS_PAID) ->select(['public_id', 'invoice_number']) ->get(); @@ -1004,8 +1001,9 @@ class InvoiceRepository extends BaseRepository public function createRecurringInvoice(Invoice $recurInvoice) { $recurInvoice->load('account.timezone', 'invoice_items', 'client', 'user'); + $client = $recurInvoice->client; - if ($recurInvoice->client->deleted_at) { + if ($client->deleted_at) { return false; } @@ -1028,9 +1026,9 @@ class InvoiceRepository extends BaseRepository $invoice->invoice_date = date_create()->format('Y-m-d'); $invoice->discount = $recurInvoice->discount; $invoice->po_number = $recurInvoice->po_number; - $invoice->public_notes = Utils::processVariables($recurInvoice->public_notes); - $invoice->terms = Utils::processVariables($recurInvoice->terms ?: $recurInvoice->account->invoice_terms); - $invoice->invoice_footer = Utils::processVariables($recurInvoice->invoice_footer ?: $recurInvoice->account->invoice_footer); + $invoice->public_notes = Utils::processVariables($recurInvoice->public_notes, $client); + $invoice->terms = Utils::processVariables($recurInvoice->terms ?: $recurInvoice->account->invoice_terms, $client); + $invoice->invoice_footer = Utils::processVariables($recurInvoice->invoice_footer ?: $recurInvoice->account->invoice_footer, $client); $invoice->tax_name1 = $recurInvoice->tax_name1; $invoice->tax_rate1 = $recurInvoice->tax_rate1; $invoice->tax_name2 = $recurInvoice->tax_name2; @@ -1040,8 +1038,8 @@ class InvoiceRepository extends BaseRepository $invoice->custom_value2 = $recurInvoice->custom_value2 ?: 0; $invoice->custom_taxes1 = $recurInvoice->custom_taxes1 ?: 0; $invoice->custom_taxes2 = $recurInvoice->custom_taxes2 ?: 0; - $invoice->custom_text_value1 = Utils::processVariables($recurInvoice->custom_text_value1); - $invoice->custom_text_value2 = Utils::processVariables($recurInvoice->custom_text_value2); + $invoice->custom_text_value1 = Utils::processVariables($recurInvoice->custom_text_value1, $client); + $invoice->custom_text_value2 = Utils::processVariables($recurInvoice->custom_text_value2, $client); $invoice->is_amount_discount = $recurInvoice->is_amount_discount; $invoice->due_date = $recurInvoice->getDueDate(); $invoice->save(); @@ -1051,14 +1049,14 @@ class InvoiceRepository extends BaseRepository $item->product_id = $recurItem->product_id; $item->qty = $recurItem->qty; $item->cost = $recurItem->cost; - $item->notes = Utils::processVariables($recurItem->notes); - $item->product_key = Utils::processVariables($recurItem->product_key); + $item->notes = Utils::processVariables($recurItem->notes, $client); + $item->product_key = Utils::processVariables($recurItem->product_key, $client); $item->tax_name1 = $recurItem->tax_name1; $item->tax_rate1 = $recurItem->tax_rate1; $item->tax_name2 = $recurItem->tax_name2; $item->tax_rate2 = $recurItem->tax_rate2; - $item->custom_value1 = Utils::processVariables($recurItem->custom_value1); - $item->custom_value2 = Utils::processVariables($recurItem->custom_value2); + $item->custom_value1 = Utils::processVariables($recurItem->custom_value1, $client); + $item->custom_value2 = Utils::processVariables($recurItem->custom_value2, $client); $invoice->invoice_items()->save($item); } diff --git a/app/Ninja/Repositories/RecurringExpenseRepository.php b/app/Ninja/Repositories/RecurringExpenseRepository.php new file mode 100644 index 000000000000..9eb121ed2a4a --- /dev/null +++ b/app/Ninja/Repositories/RecurringExpenseRepository.php @@ -0,0 +1,194 @@ +with('user') + ->withTrashed() + ->where('is_deleted', '=', false) + ->get(); + } + + public function find($filter = null) + { + $accountid = \Auth::user()->account_id; + $query = DB::table('recurring_expenses') + ->join('accounts', 'accounts.id', '=', 'recurring_expenses.account_id') + ->leftjoin('clients', 'clients.id', '=', 'recurring_expenses.client_id') + ->leftJoin('contacts', 'contacts.client_id', '=', 'clients.id') + ->leftjoin('vendors', 'vendors.id', '=', 'recurring_expenses.vendor_id') + ->join('frequencies', 'frequencies.id', '=', 'recurring_expenses.frequency_id') + ->leftJoin('expense_categories', 'recurring_expenses.expense_category_id', '=', 'expense_categories.id') + ->where('recurring_expenses.account_id', '=', $accountid) + ->where('contacts.deleted_at', '=', null) + ->where('vendors.deleted_at', '=', null) + ->where('clients.deleted_at', '=', null) + ->where(function ($query) { // handle when client isn't set + $query->where('contacts.is_primary', '=', true) + ->orWhere('contacts.is_primary', '=', null); + }) + ->select( + 'recurring_expenses.account_id', + 'recurring_expenses.amount', + 'recurring_expenses.deleted_at', + 'recurring_expenses.id', + 'recurring_expenses.is_deleted', + 'recurring_expenses.private_notes', + 'recurring_expenses.public_id', + 'recurring_expenses.public_notes', + 'recurring_expenses.should_be_invoiced', + 'recurring_expenses.vendor_id', + 'recurring_expenses.expense_currency_id', + 'recurring_expenses.invoice_currency_id', + 'recurring_expenses.user_id', + 'recurring_expenses.tax_rate1', + 'recurring_expenses.tax_rate2', + 'frequencies.name as frequency', + 'expense_categories.name as category', + 'expense_categories.user_id as category_user_id', + 'expense_categories.public_id as category_public_id', + 'vendors.name as vendor_name', + 'vendors.public_id as vendor_public_id', + 'vendors.user_id as vendor_user_id', + DB::raw("COALESCE(NULLIF(clients.name,''), NULLIF(CONCAT(contacts.first_name, ' ', contacts.last_name),''), NULLIF(contacts.email,'')) client_name"), + 'clients.public_id as client_public_id', + 'clients.user_id as client_user_id', + 'contacts.first_name', + 'contacts.email', + 'contacts.last_name', + 'clients.country_id as client_country_id' + ); + + $this->applyFilters($query, ENTITY_RECURRING_EXPENSE); + + if ($filter) { + $query->where(function ($query) use ($filter) { + $query->where('recurring_expenses.public_notes', 'like', '%'.$filter.'%') + ->orWhere('clients.name', 'like', '%'.$filter.'%') + ->orWhere('vendors.name', 'like', '%'.$filter.'%') + ->orWhere('expense_categories.name', 'like', '%'.$filter.'%'); + ; + }); + } + + return $query; + } + + public function save($input, $expense = null) + { + $publicId = isset($input['public_id']) ? $input['public_id'] : false; + + if ($expense) { + // do nothing + } elseif ($publicId) { + $expense = RecurringExpense::scope($publicId)->firstOrFail(); + if (Utils::isNinjaDev()) { + \Log::warning('Entity not set in expense repo save'); + } + } else { + $expense = RecurringExpense::createNew(); + } + + if ($expense->is_deleted) { + return $expense; + } + + // First auto fill + $expense->fill($input); + + if (isset($input['start_date'])) { + if ($expense->exists && $expense->start_date && $expense->start_date != Utils::toSqlDate($input['start_date'])) { + $expense->last_sent_date = null; + } + $expense->start_date = Utils::toSqlDate($input['start_date']); + } + if (isset($input['end_date'])) { + $expense->end_date = Utils::toSqlDate($input['end_date']); + } + + if (! $expense->expense_currency_id) { + $expense->expense_currency_id = \Auth::user()->account->getCurrencyId(); + } + + /* + if (! $expense->invoice_currency_id) { + $expense->invoice_currency_id = \Auth::user()->account->getCurrencyId(); + } + $rate = isset($input['exchange_rate']) ? Utils::parseFloat($input['exchange_rate']) : 1; + $expense->exchange_rate = round($rate, 4); + if (isset($input['amount'])) { + $expense->amount = round(Utils::parseFloat($input['amount']), 2); + } + */ + + $expense->save(); + + return $expense; + } + + public function createRecurringExpense(RecurringExpense $recurringExpense) + { + if ($recurringExpense->client && $recurringExpense->client->deleted_at) { + return false; + } + + if (! $recurringExpense->user->confirmed) { + return false; + } + + if (! $recurringExpense->shouldSendToday()) { + return false; + } + + $account = $recurringExpense->account; + $expense = Expense::createNew($recurringExpense); + + $fields = [ + 'vendor_id', + 'client_id', + 'amount', + 'public_notes', + 'private_notes', + 'invoice_currency_id', + 'expense_currency_id', + 'should_be_invoiced', + 'expense_category_id', + 'tax_name1', + 'tax_rate1', + 'tax_name2', + 'tax_rate2', + ]; + + foreach ($fields as $field) { + $expense->$field = $recurringExpense->$field; + } + + $expense->expense_date = $account->getDateTime()->format('Y-m-d'); + $expense->exchange_rate = 1; + $expense->invoice_currency_id = $recurringExpense->expense_currency_id; + $expense->recurring_expense_id = $recurringExpense->id; + $expense->save(); + + $recurringExpense->last_sent_date = $account->getDateTime()->format('Y-m-d'); + $recurringExpense->save(); + + return $expense; + } +} diff --git a/app/Ninja/Transformers/ActivityTransformer.php b/app/Ninja/Transformers/ActivityTransformer.php index 5c0ea3e3ab41..f8ffa38c5985 100644 --- a/app/Ninja/Transformers/ActivityTransformer.php +++ b/app/Ninja/Transformers/ActivityTransformer.php @@ -35,6 +35,7 @@ class ActivityTransformer extends EntityTransformer 'expense_id' => $activity->expense_id ? $activity->expense->public_id : null, 'is_system' => $activity->is_system ? (bool) $activity->is_system : null, 'contact_id' => $activity->contact_id ? $activity->contact->public_id : null, + 'task_id' => $activity->task_id ? $activity->task->public_id : null, ]; } } diff --git a/app/Ninja/Transformers/DocumentTransformer.php b/app/Ninja/Transformers/DocumentTransformer.php index f48a646773b6..df412106fae2 100644 --- a/app/Ninja/Transformers/DocumentTransformer.php +++ b/app/Ninja/Transformers/DocumentTransformer.php @@ -11,8 +11,9 @@ class DocumentTransformer extends EntityTransformer { /** * @SWG\Property(property="id", type="integer", example=1, readOnly=true) - * @SWG\Property(property="name", type="string", example="Test") - * @SWG\Property(property="type", type="string", example="CSV") + * @SWG\Property(property="name", type="string", example="sample.png") + * @SWG\Property(property="type", type="string", example="png") + * @SWG\Property(property="path", type="string", example="abc/sample.png") * @SWG\Property(property="invoice_id", type="integer", example=1) * @SWG\Property(property="updated_at", type="integer", example=1451160233, readOnly=true) * @SWG\Property(property="archived_at", type="integer", example=1451160233, readOnly=true) @@ -23,8 +24,9 @@ class DocumentTransformer extends EntityTransformer 'id' => (int) $document->public_id, 'name' => $document->name, 'type' => $document->type, - 'invoice_id' => isset($document->invoice->public_id) ? (int) $document->invoice->public_id : null, - 'expense_id' => isset($document->expense->public_id) ? (int) $document->expense->public_id : null, + 'path' => $document->path, + 'invoice_id' => $document->invoice_id && $document->invoice ? (int) $document->invoice->public_id : null, + 'expense_id' => $document->expense_id && $document->expense ? (int) $document->expense->public_id : null, 'updated_at' => $this->getTimestamp($document->updated_at), ]); } diff --git a/app/Ninja/Transformers/ExpenseTransformer.php b/app/Ninja/Transformers/ExpenseTransformer.php index 5b62755831a5..5a8317f70daa 100644 --- a/app/Ninja/Transformers/ExpenseTransformer.php +++ b/app/Ninja/Transformers/ExpenseTransformer.php @@ -34,6 +34,10 @@ class ExpenseTransformer extends EntityTransformer * @SWG\Property(property="vendor_id", type="integer", example=1) */ + protected $availableIncludes = [ + 'documents', + ]; + public function __construct($account = null, $serializer = null, $client = null) { parent::__construct($account, $serializer); @@ -41,6 +45,18 @@ class ExpenseTransformer extends EntityTransformer $this->client = $client; } + public function includeDocuments(Expense $expense) + { + $transformer = new DocumentTransformer($this->account, $this->serializer); + + $expense->documents->each(function ($document) use ($expense) { + $document->setRelation('expense', $expense); + $document->setRelation('invoice', $expense->invoice); + }); + + return $this->includeCollection($expense->documents, $transformer, ENTITY_DOCUMENT); + } + public function transform(Expense $expense) { return array_merge($this->getDefaults($expense), [ diff --git a/app/Ninja/Transformers/InvoiceTransformer.php b/app/Ninja/Transformers/InvoiceTransformer.php index 565991912687..84aa450534a3 100644 --- a/app/Ninja/Transformers/InvoiceTransformer.php +++ b/app/Ninja/Transformers/InvoiceTransformer.php @@ -77,6 +77,10 @@ class InvoiceTransformer extends EntityTransformer { $transformer = new DocumentTransformer($this->account, $this->serializer); + $invoice->documents->each(function ($document) use ($invoice) { + $document->setRelation('invoice', $invoice); + }); + return $this->includeCollection($invoice->documents, $transformer, ENTITY_DOCUMENT); } diff --git a/app/Policies/RecurringExpensePolicy.php b/app/Policies/RecurringExpensePolicy.php new file mode 100644 index 000000000000..7c46370ce916 --- /dev/null +++ b/app/Policies/RecurringExpensePolicy.php @@ -0,0 +1,23 @@ +hasFeature(FEATURE_EXPENSES); + } +} diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php index 34688793c844..28b56c120663 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -18,6 +18,7 @@ class AuthServiceProvider extends ServiceProvider \App\Models\Credit::class => \App\Policies\CreditPolicy::class, \App\Models\Document::class => \App\Policies\DocumentPolicy::class, \App\Models\Expense::class => \App\Policies\ExpensePolicy::class, + \App\Models\RecurringExpense::class => \App\Policies\RecurringExpensePolicy::class, \App\Models\ExpenseCategory::class => \App\Policies\ExpenseCategoryPolicy::class, \App\Models\Invoice::class => \App\Policies\InvoicePolicy::class, \App\Models\Payment::class => \App\Policies\PaymentPolicy::class, diff --git a/app/Services/BankAccountService.php b/app/Services/BankAccountService.php index d19cdb5f07b1..4738e0eaf98f 100644 --- a/app/Services/BankAccountService.php +++ b/app/Services/BankAccountService.php @@ -14,6 +14,7 @@ use App\Ninja\Repositories\VendorRepository; use Hash; use stdClass; use Utils; +use Carbon; /** * Class BankAccountService. @@ -74,6 +75,7 @@ class BankAccountService extends BaseService $expenses = Expense::scope() ->bankId($bankId) ->where('transaction_id', '!=', '') + ->where('expense_date', '>=', Carbon::now()->subYear()->format('Y-m-d')) ->withTrashed() ->get(['transaction_id']) ->toArray(); @@ -92,12 +94,13 @@ class BankAccountService extends BaseService * * @return array|bool */ - public function loadBankAccounts($bankId, $username, $password, $includeTransactions = true) + public function loadBankAccounts($bankAccount, $username, $password, $includeTransactions = true) { - if (! $bankId || ! $username || ! $password) { + if (! $bankAccount || ! $username || ! $password) { return false; } + $bankId = $bankAccount->bank_id; $expenses = $this->getExpenses(); $vendorMap = $this->createVendorMap(); $bankAccounts = BankSubaccount::scope() @@ -112,11 +115,18 @@ class BankAccountService extends BaseService try { $finance = new Finance(); $finance->banks[$bankId] = $bank->getOFXBank($finance); - $finance->banks[$bankId]->logins[] = new Login($finance->banks[$bankId], $username, $password); + + $login = new Login($finance->banks[$bankId], $username, $password); + $login->appVersion = $bankAccount->app_version; + $login->ofxVersion = $bankAccount->ofx_version; + $finance->banks[$bankId]->logins[] = $login; foreach ($finance->banks as $bank) { foreach ($bank->logins as $login) { $login->setup(); + if (! is_array($login->accounts)) { + return false; + } foreach ($login->accounts as $account) { $account->setup($includeTransactions); if ($account = $this->parseBankAccount($account, $bankAccounts, $expenses, $includeTransactions, $vendorMap)) { diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php index a5644a862fd4..9fd7fea6f8ca 100644 --- a/app/Services/ImportService.php +++ b/app/Services/ImportService.php @@ -30,6 +30,7 @@ use parsecsv; use Session; use stdClass; use Utils; +use Carbon; /** * Class ImportService. @@ -183,45 +184,58 @@ class ImportService if ($transformer->hasProduct($jsonProduct['product_key'])) { continue; } - if (EntityModel::validate($jsonProduct, ENTITY_PRODUCT) === true) { + + $productValidate = EntityModel::validate($jsonProduct, ENTITY_PRODUCT); + if ($productValidate === true) { $product = $this->productRepo->save($jsonProduct); $this->addProductToMaps($product); $this->addSuccess($product); } else { + $jsonProduct['type'] = ENTITY_PRODUCT; + $jsonProduct['error'] = $productValidate; $this->addFailure(ENTITY_PRODUCT, $jsonProduct); continue; } } foreach ($json['clients'] as $jsonClient) { - if (EntityModel::validate($jsonClient, ENTITY_CLIENT) === true) { + $clientValidate = EntityModel::validate($jsonClient, ENTITY_CLIENT); + if ($clientValidate === true) { $client = $this->clientRepo->save($jsonClient); $this->addClientToMaps($client); $this->addSuccess($client); } else { + $jsonClient['type'] = ENTITY_CLIENT; + $jsonClient['error'] = $clientValidate; $this->addFailure(ENTITY_CLIENT, $jsonClient); continue; } foreach ($jsonClient['invoices'] as $jsonInvoice) { $jsonInvoice['client_id'] = $client->id; - if (EntityModel::validate($jsonInvoice, ENTITY_INVOICE) === true) { + $invoiceValidate = EntityModel::validate($jsonInvoice, ENTITY_INVOICE); + if ($invoiceValidate === true) { $invoice = $this->invoiceRepo->save($jsonInvoice); $this->addInvoiceToMaps($invoice); $this->addSuccess($invoice); } else { + $jsonInvoice['type'] = ENTITY_INVOICE; + $jsonInvoice['error'] = $invoiceValidate; $this->addFailure(ENTITY_INVOICE, $jsonInvoice); continue; } foreach ($jsonInvoice['payments'] as $jsonPayment) { $jsonPayment['invoice_id'] = $invoice->public_id; - if (EntityModel::validate($jsonPayment, ENTITY_PAYMENT) === true) { + $paymentValidate = EntityModel::validate($jsonPayment, ENTITY_PAYMENT); + if ($paymentValidate === true) { $jsonPayment['client_id'] = $client->id; $jsonPayment['invoice_id'] = $invoice->id; $payment = $this->paymentRepo->save($jsonPayment); $this->addSuccess($payment); } else { + $jsonPayment['type'] = ENTITY_PAYMENT; + $jsonPayment['error'] = $paymentValidate; $this->addFailure(ENTITY_PAYMENT, $jsonPayment); continue; } @@ -520,7 +534,18 @@ class ImportService // Lookup field translations foreach ($columns as $key => $value) { unset($columns[$key]); - $columns[$value] = trans("texts.{$value}"); + $label = $value; + // disambiguate some of the labels + if ($entityType == ENTITY_INVOICE) { + if ($label == 'name') { + $label = 'client_name'; + } elseif ($label == 'notes') { + $label = 'product_notes'; + } elseif ($label == 'terms') { + $label = 'invoice_terms'; + } + } + $columns[$value] = trans("texts.{$label}"); } array_unshift($columns, ' '); @@ -581,8 +606,24 @@ class ImportService 'hasHeaders' => $hasHeaders, 'columns' => $columns, 'mapped' => $mapped, + 'warning' => false, ]; + // check that dates are valid + if (count($data['data']) > 1) { + $row = $data['data'][1]; + foreach ($mapped as $index => $field) { + if (! strstr($field, 'date')) { + continue; + } + try { + $date = new Carbon($row[$index]); + } catch(Exception $e) { + $data['warning'] = 'invalid_date'; + } + } + } + return $data; } @@ -881,6 +922,8 @@ class ImportService { if ($key = strtolower(trim($product->product_key))) { $this->maps['product'][$key] = $product->id; + $this->maps['product_notes'][$key] = $product->notes; + $this->maps['product_cost'][$key] = $product->cost; } } diff --git a/app/Services/RecurringExpenseService.php b/app/Services/RecurringExpenseService.php new file mode 100644 index 000000000000..8ee8265b8c43 --- /dev/null +++ b/app/Services/RecurringExpenseService.php @@ -0,0 +1,82 @@ +recurringExpenseRepo = $recurringExpenseRepo; + $this->datatableService = $datatableService; + } + + /** + * @return CreditRepository + */ + protected function getRepo() + { + return $this->recurringExpenseRepo; + } + + /** + * @param $data + * @param mixed $recurringExpense + * + * @return mixed|null + */ + public function save($data, $recurringExpense = false) + { + if (isset($data['client_id']) && $data['client_id']) { + $data['client_id'] = Client::getPrivateId($data['client_id']); + } + + if (isset($data['vendor_id']) && $data['vendor_id']) { + $data['vendor_id'] = Vendor::getPrivateId($data['vendor_id']); + } + + return $this->recurringExpenseRepo->save($data, $recurringExpense); + } + + /** + * @param $clientPublicId + * @param $search + * @param mixed $userId + * + * @return \Illuminate\Http\JsonResponse + */ + public function getDatatable($search, $userId) + { + $query = $this->recurringExpenseRepo->find($search); + + if (! Utils::hasPermission('view_all')) { + $query->where('recurring_expenses.user_id', '=', Auth::user()->id); + } + + return $this->datatableService->createDatatable(new RecurringExpenseDatatable(), $query); + } +} diff --git a/composer.json b/composer.json index 150639030c1d..b18b56a8905d 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ "cerdic/css-tidy": "~v1.5", "chumper/datatable": "dev-develop#04ef2bf", "codedge/laravel-selfupdater": "5.x-dev", - "collizo4sky/omnipay-wepay": "^1.3", + "collizo4sky/omnipay-wepay": "dev-address-fix", "delatbabel/omnipay-fatzebra": "dev-master", "dercoder/omnipay-ecopayz": "~1.0", "dercoder/omnipay-paysafecard": "dev-master", @@ -45,7 +45,7 @@ "fruitcakestudio/omnipay-sisow": "~2.0", "fzaninotto/faker": "^1.5", "gatepay/FedACHdir": "dev-master@dev", - "google/apiclient": "^1.0", + "google/apiclient": "^2.0", "guzzlehttp/guzzle": "~6.0", "incube8/omnipay-multicards": "dev-master", "intervention/image": "dev-master", @@ -82,13 +82,13 @@ "turbo124/laravel-push-notification": "2.*", "vink/omnipay-komoju": "~1.0", "webpatser/laravel-countries": "dev-master", - "websight/l5-google-cloud-storage": "^1.0", + "websight/l5-google-cloud-storage": "dev-master", "wepay/php-sdk": "^0.2", "wildbit/laravel-postmark-provider": "3.0" }, "require-dev": { "codeception/c3": "~2.0", - "codeception/codeception": "*", + "codeception/codeception": "2.3.3", "phpspec/phpspec": "~2.1", "phpunit/phpunit": "~4.0", "symfony/dom-crawler": "~3.0" @@ -152,6 +152,14 @@ "reference": "origin/master" } } + }, + { + "type": "vcs", + "url": "https://github.com/hillelcoren/omnipay-wepay" + }, + { + "type": "vcs", + "url": "https://github.com/hillelcoren/l5-google-cloud-storage" } ] } diff --git a/composer.lock b/composer.lock index 397bc82cbde9..f79ef5bb553f 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "203fc1c41f3ad9f522873e702396f582", - "content-hash": "691448f1e372e52aa8da3da7ab115e55", + "hash": "e8611674b74a220909d4c70784f2e227", + "content-hash": "8d418324fd6e8b5af5c7b2058e31d898", "packages": [ { "name": "agmscode/omnipay-agms", @@ -330,16 +330,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.28.8", + "version": "3.31.3", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "0014153be40ea8331c15f6187035290681f636ab" + "reference": "0b3b64ce80d3381aa25c7bab69411a4a8297b6cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/0014153be40ea8331c15f6187035290681f636ab", - "reference": "0014153be40ea8331c15f6187035290681f636ab", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/0b3b64ce80d3381aa25c7bab69411a4a8297b6cb", + "reference": "0b3b64ce80d3381aa25c7bab69411a4a8297b6cb", "shasum": "" }, "require": { @@ -406,7 +406,7 @@ "s3", "sdk" ], - "time": "2017-06-02 19:00:19" + "time": "2017-07-12 18:22:23" }, { "name": "barracudanetworks/archivestream-php", @@ -508,16 +508,16 @@ }, { "name": "barryvdh/laravel-debugbar", - "version": "v2.4.0", + "version": "v2.4.1", "source": { "type": "git", "url": "https://github.com/barryvdh/laravel-debugbar.git", - "reference": "de15d00a74696db62e1b4782474c27ed0c4fc763" + "reference": "af98b3a4ccac9364f2145fae974ff3392ec402b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/de15d00a74696db62e1b4782474c27ed0c4fc763", - "reference": "de15d00a74696db62e1b4782474c27ed0c4fc763", + "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/af98b3a4ccac9364f2145fae974ff3392ec402b1", + "reference": "af98b3a4ccac9364f2145fae974ff3392ec402b1", "shasum": "" }, "require": { @@ -566,32 +566,34 @@ "profiler", "webprofiler" ], - "time": "2017-06-01 17:46:08" + "time": "2017-06-14 07:44:44" }, { "name": "barryvdh/laravel-ide-helper", - "version": "v2.3.2", + "version": "v2.4.0", "source": { "type": "git", "url": "https://github.com/barryvdh/laravel-ide-helper.git", - "reference": "e82de98cef0d6597b1b686be0b5813a3a4bb53c5" + "reference": "87a02ff574f722c685e011f76692ab869ab64f6c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/barryvdh/laravel-ide-helper/zipball/e82de98cef0d6597b1b686be0b5813a3a4bb53c5", - "reference": "e82de98cef0d6597b1b686be0b5813a3a4bb53c5", + "url": "https://api.github.com/repos/barryvdh/laravel-ide-helper/zipball/87a02ff574f722c685e011f76692ab869ab64f6c", + "reference": "87a02ff574f722c685e011f76692ab869ab64f6c", "shasum": "" }, "require": { "barryvdh/reflection-docblock": "^2.0.4", - "illuminate/console": "^5.0,<5.5", - "illuminate/filesystem": "^5.0,<5.5", - "illuminate/support": "^5.0,<5.5", + "illuminate/console": "^5.0,<5.6", + "illuminate/filesystem": "^5.0,<5.6", + "illuminate/support": "^5.0,<5.6", "php": ">=5.4.0", "symfony/class-loader": "^2.3|^3.0" }, "require-dev": { "doctrine/dbal": "~2.3", + "illuminate/config": "^5.0,<5.6", + "illuminate/view": "^5.0,<5.6", "phpunit/phpunit": "4.*", "scrutinizer/ocular": "~1.1", "squizlabs/php_codesniffer": "~2.3" @@ -603,6 +605,11 @@ "extra": { "branch-alias": { "dev-master": "2.3-dev" + }, + "laravel": { + "providers": [ + "Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider" + ] } }, "autoload": { @@ -632,7 +639,7 @@ "phpstorm", "sublime" ], - "time": "2017-02-22 12:27:33" + "time": "2017-06-16 14:08:59" }, { "name": "barryvdh/reflection-docblock", @@ -786,6 +793,54 @@ ], "time": "2015-06-05 14:50:44" }, + { + "name": "cedricziel/flysystem-gcs", + "version": "v1.1.0", + "source": { + "type": "git", + "url": "https://github.com/cedricziel/flysystem-gcs.git", + "reference": "d0fa543a85af2016997e3aa0dee4eb5f1ccd2ba8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/cedricziel/flysystem-gcs/zipball/d0fa543a85af2016997e3aa0dee4eb5f1ccd2ba8", + "reference": "d0fa543a85af2016997e3aa0dee4eb5f1ccd2ba8", + "shasum": "" + }, + "require": { + "google/cloud": "~0.8", + "league/flysystem": "^1.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "CedricZiel\\FlysystemGcs\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Cedric Ziel", + "email": "cedric@cedric-ziel.com" + } + ], + "description": "Flysystem adapter for Google Cloud Storage (GCS) that uses gcloud-php", + "keywords": [ + "Flysystem", + "cloud", + "filesystem", + "gcs", + "google", + "google cloud storage" + ], + "time": "2017-01-04 10:17:20" + }, { "name": "cerdic/css-tidy", "version": "v1.5.5", @@ -985,16 +1040,16 @@ }, { "name": "collizo4sky/omnipay-wepay", - "version": "1.3.2", + "version": "dev-address-fix", "source": { "type": "git", - "url": "https://github.com/collizo4sky/omnipay-wepay.git", - "reference": "ba24261cdbbbbe89bb9deaf3bcf4543bff772c21" + "url": "https://github.com/hillelcoren/omnipay-wepay.git", + "reference": "f8bb3e4010c236018e4bd936f1b930b87f17e063" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/collizo4sky/omnipay-wepay/zipball/ba24261cdbbbbe89bb9deaf3bcf4543bff772c21", - "reference": "ba24261cdbbbbe89bb9deaf3bcf4543bff772c21", + "url": "https://api.github.com/repos/hillelcoren/omnipay-wepay/zipball/f8bb3e4010c236018e4bd936f1b930b87f17e063", + "reference": "f8bb3e4010c236018e4bd936f1b930b87f17e063", "shasum": "" }, "require": { @@ -1010,7 +1065,6 @@ "Omnipay\\WePay\\": "src/" } }, - "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], @@ -1024,7 +1078,10 @@ "payment", "wepay" ], - "time": "2017-01-17 16:39:16" + "support": { + "source": "https://github.com/hillelcoren/omnipay-wepay/tree/address-fix" + }, + "time": "2016-12-12 18:28:29" }, { "name": "container-interop/container-interop", @@ -1063,12 +1120,12 @@ "source": { "type": "git", "url": "https://github.com/delatbabel/omnipay-fatzebra.git", - "reference": "0a5708da00bf39806881a4f2d286ec95fe3fb80c" + "reference": "e78ac21ed624e23e69efb61dd50b62fbe407d51e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/delatbabel/omnipay-fatzebra/zipball/0a5708da00bf39806881a4f2d286ec95fe3fb80c", - "reference": "0a5708da00bf39806881a4f2d286ec95fe3fb80c", + "url": "https://api.github.com/repos/delatbabel/omnipay-fatzebra/zipball/e78ac21ed624e23e69efb61dd50b62fbe407d51e", + "reference": "e78ac21ed624e23e69efb61dd50b62fbe407d51e", "shasum": "" }, "require": { @@ -1076,6 +1133,8 @@ "php": ">=5.3.0" }, "require-dev": { + "apigen/apigen": "^4.1", + "nette/utils": "~2.3.0", "omnipay/dummy": "dev-master", "omnipay/tests": "~2.0" }, @@ -1112,7 +1171,7 @@ "payment", "paystream" ], - "time": "2016-08-27 04:11:44" + "time": "2017-06-09 10:33:34" }, { "name": "dercoder/omnipay-ecopayz", @@ -2041,16 +2100,16 @@ }, { "name": "ezyang/htmlpurifier", - "version": "v4.9.2", + "version": "v4.9.3", "source": { "type": "git", "url": "https://github.com/ezyang/htmlpurifier.git", - "reference": "6d50e5282afdfdfc3e0ff6d192aff56c5629b3d4" + "reference": "95e1bae3182efc0f3422896a3236e991049dac69" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/6d50e5282afdfdfc3e0ff6d192aff56c5629b3d4", - "reference": "6d50e5282afdfdfc3e0ff6d192aff56c5629b3d4", + "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/95e1bae3182efc0f3422896a3236e991049dac69", + "reference": "95e1bae3182efc0f3422896a3236e991049dac69", "shasum": "" }, "require": { @@ -2084,7 +2143,50 @@ "keywords": [ "html" ], - "time": "2017-03-13 06:30:53" + "time": "2017-06-03 02:28:16" + }, + { + "name": "firebase/php-jwt", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/firebase/php-jwt.git", + "reference": "dccf163dc8ed7ed6a00afc06c51ee5186a428d35" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/dccf163dc8ed7ed6a00afc06c51ee5186a428d35", + "reference": "dccf163dc8ed7ed6a00afc06c51ee5186a428d35", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Firebase\\JWT\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Neuman Vong", + "email": "neuman+pear@twilio.com", + "role": "Developer" + }, + { + "name": "Anant Narayanan", + "email": "anant@php.net", + "role": "Developer" + } + ], + "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", + "homepage": "https://github.com/firebase/php-jwt", + "time": "2016-07-18 04:51:16" }, { "name": "fotografde/omnipay-checkoutcom", @@ -2141,16 +2243,16 @@ }, { "name": "fruitcakestudio/omnipay-sisow", - "version": "v2.0.1", + "version": "v2.0.3", "source": { "type": "git", - "url": "https://github.com/fruitcakestudio/omnipay-sisow.git", - "reference": "0ae3ae13da86c087e22717f051bc86d2057a0309" + "url": "https://github.com/fruitcake/omnipay-sisow.git", + "reference": "adbe7e9f0887a7d807917a7d6b61d6d8b6d98b88" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/fruitcakestudio/omnipay-sisow/zipball/0ae3ae13da86c087e22717f051bc86d2057a0309", - "reference": "0ae3ae13da86c087e22717f051bc86d2057a0309", + "url": "https://api.github.com/repos/fruitcake/omnipay-sisow/zipball/adbe7e9f0887a7d807917a7d6b61d6d8b6d98b88", + "reference": "adbe7e9f0887a7d807917a7d6b61d6d8b6d98b88", "shasum": "" }, "require": { @@ -2193,7 +2295,7 @@ "payment", "sisow" ], - "time": "2015-01-16 08:41:13" + "time": "2017-07-12 13:28:11" }, { "name": "fzaninotto/faker", @@ -2262,34 +2364,50 @@ }, { "name": "google/apiclient", - "version": "v1.1.8", + "version": "v2.2.0", "source": { "type": "git", "url": "https://github.com/google/google-api-php-client.git", - "reference": "85309a3520bb5f53368d43e35fd24f43c9556323" + "reference": "f3fadd538315d62ebd1191d89ac791468c617260" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/google/google-api-php-client/zipball/85309a3520bb5f53368d43e35fd24f43c9556323", - "reference": "85309a3520bb5f53368d43e35fd24f43c9556323", + "url": "https://api.github.com/repos/google/google-api-php-client/zipball/f3fadd538315d62ebd1191d89ac791468c617260", + "reference": "f3fadd538315d62ebd1191d89ac791468c617260", "shasum": "" }, "require": { - "php": ">=5.2.1" + "firebase/php-jwt": "~2.0|~3.0|~4.0|~5.0", + "google/apiclient-services": "~0.13", + "google/auth": "^1.0", + "guzzlehttp/guzzle": "~5.3.1|~6.0", + "guzzlehttp/psr7": "^1.2", + "monolog/monolog": "^1.17", + "php": ">=5.4", + "phpseclib/phpseclib": "~0.3.10|~2.0" }, "require-dev": { - "phpunit/phpunit": "3.7.*", - "squizlabs/php_codesniffer": "~2.3" + "cache/filesystem-adapter": "^0.3.2", + "phpunit/phpunit": "~4", + "squizlabs/php_codesniffer": "~2.3", + "symfony/css-selector": "~2.1", + "symfony/dom-crawler": "~2.1" + }, + "suggest": { + "cache/filesystem-adapter": "For caching certs and tokens (using Google_Client::setCache)" }, "type": "library", "extra": { "branch-alias": { - "dev-v1-master": "1.1.x-dev" + "dev-master": "2.x-dev" } }, "autoload": { - "files": [ - "src/Google/autoload.php" + "psr-0": { + "Google_": "src/" + }, + "classmap": [ + "src/Google/Service/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -2301,7 +2419,212 @@ "keywords": [ "google" ], - "time": "2016-06-06 21:22:48" + "time": "2017-07-10 15:34:54" + }, + { + "name": "google/apiclient-services", + "version": "v0.14", + "source": { + "type": "git", + "url": "https://github.com/google/google-api-php-client-services.git", + "reference": "b8c3ee8adab9eaffc3825cabc12740ad6e2ed76f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/google/google-api-php-client-services/zipball/b8c3ee8adab9eaffc3825cabc12740ad6e2ed76f", + "reference": "b8c3ee8adab9eaffc3825cabc12740ad6e2ed76f", + "shasum": "" + }, + "require": { + "php": ">=5.4" + }, + "require-dev": { + "phpunit/phpunit": "~4.8" + }, + "type": "library", + "autoload": { + "psr-0": { + "Google_Service_": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "description": "Client library for Google APIs", + "homepage": "http://developers.google.com/api-client-library/php", + "keywords": [ + "google" + ], + "time": "2017-07-10 00:18:15" + }, + { + "name": "google/auth", + "version": "v1.0", + "source": { + "type": "git", + "url": "https://github.com/google/google-auth-library-php.git", + "reference": "db77bd2de0bcc40bf50ebe851e9eed332aeaa4df" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/google/google-auth-library-php/zipball/db77bd2de0bcc40bf50ebe851e9eed332aeaa4df", + "reference": "db77bd2de0bcc40bf50ebe851e9eed332aeaa4df", + "shasum": "" + }, + "require": { + "firebase/php-jwt": "~2.0|~3.0|~4.0", + "guzzlehttp/guzzle": "~5.3.1|~6.0", + "guzzlehttp/psr7": "~1.2", + "php": ">=5.4", + "psr/cache": "^1.0", + "psr/http-message": "^1.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^1.11", + "phpunit/phpunit": "3.7.*" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ], + "psr-4": { + "Google\\Auth\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "description": "Google Auth Library for PHP", + "homepage": "http://github.com/google/google-auth-library-php", + "keywords": [ + "Authentication", + "google", + "oauth2" + ], + "time": "2017-06-13 18:00:07" + }, + { + "name": "google/cloud", + "version": "v0.34.1", + "source": { + "type": "git", + "url": "https://github.com/GoogleCloudPlatform/google-cloud-php.git", + "reference": "a2a9ef78a359f2a40e09118c09113e4710f8bbd0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/zipball/a2a9ef78a359f2a40e09118c09113e4710f8bbd0", + "reference": "a2a9ef78a359f2a40e09118c09113e4710f8bbd0", + "shasum": "" + }, + "require": { + "google/auth": "^1.0", + "guzzlehttp/guzzle": "^5.3|^6.0", + "guzzlehttp/psr7": "^1.2", + "monolog/monolog": "~1", + "php": ">=5.5", + "psr/http-message": "1.0.*", + "ramsey/uuid": "~3", + "rize/uri-template": "~0.3" + }, + "replace": { + "google/cloud-bigquery": "0.2.1", + "google/cloud-core": "1.6.0", + "google/cloud-datastore": "1.0.0", + "google/cloud-error-reporting": "0.4.1", + "google/cloud-language": "0.4.0", + "google/cloud-logging": "1.3.0", + "google/cloud-monitoring": "0.4.1", + "google/cloud-pubsub": "0.6.0", + "google/cloud-spanner": "0.3.1", + "google/cloud-speech": "0.6.0", + "google/cloud-storage": "1.1.3", + "google/cloud-trace": "0.3.0", + "google/cloud-translate": "1.0.0", + "google/cloud-videointelligence": "0.3.1", + "google/cloud-vision": "0.4.0" + }, + "require-dev": { + "erusev/parsedown": "^1.6", + "google/gax": "^0.21.0", + "google/proto-client": "^0.21.0", + "league/json-guard": "^0.3", + "phpdocumentor/reflection": "^3.0", + "phpseclib/phpseclib": "^2", + "phpunit/phpunit": "4.8.*", + "squizlabs/php_codesniffer": "2.*", + "symfony/console": "^3.0", + "symfony/lock": "3.3.x-dev#1ba6ac9", + "vierbergenlars/php-semver": "^3.0" + }, + "suggest": { + "google/gax": "Required to support gRPC", + "google/proto-client-php": "Required to support gRPC", + "phpseclib/phpseclib": "May be used in place of OpenSSL for creating signed Cloud Storage URLs. Please require version ^2.", + "symfony/lock": "Required for the Spanner cached based session pool. Please require the following commit: 3.3.x-dev#1ba6ac9" + }, + "bin": [ + "src/Core/bin/google-cloud-batch" + ], + "type": "library", + "extra": { + "component": { + "id": "google-cloud", + "target": "git@github.com:jdpedrie-gcp/google-cloud-php.git", + "path": "src", + "entry": "ServiceBuilder.php" + } + }, + "autoload": { + "psr-4": { + "Google\\Cloud\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "John Pedrie", + "email": "john@pedrie.com" + }, + { + "name": "Dave Supplee", + "email": "dwsupplee@gmail.com" + } + ], + "description": "Google Cloud Client Library", + "homepage": "http://github.com/GoogleCloudPlatform/google-cloud-php", + "keywords": [ + "big query", + "bigquery", + "cloud", + "datastore", + "gcs", + "google", + "google api", + "google api client", + "google apis", + "google apis client", + "google cloud", + "google cloud platform", + "language", + "natural language", + "pub sub", + "pubsub", + "spanner", + "speech", + "stackdriver logging", + "storage", + "translate", + "translation", + "vision" + ], + "time": "2017-07-12 18:33:11" }, { "name": "guzzle/guzzle", @@ -2401,16 +2724,16 @@ }, { "name": "guzzlehttp/guzzle", - "version": "6.2.3", + "version": "6.3.0", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "8d6c6cc55186db87b7dc5009827429ba4e9dc006" + "reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/8d6c6cc55186db87b7dc5009827429ba4e9dc006", - "reference": "8d6c6cc55186db87b7dc5009827429ba4e9dc006", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/f4db5a78a5ea468d4831de7f0bf9d9415e348699", + "reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699", "shasum": "" }, "require": { @@ -2420,9 +2743,12 @@ }, "require-dev": { "ext-curl": "*", - "phpunit/phpunit": "^4.0", + "phpunit/phpunit": "^4.0 || ^5.0", "psr/log": "^1.0" }, + "suggest": { + "psr/log": "Required for using the Log middleware" + }, "type": "library", "extra": { "branch-alias": { @@ -2459,7 +2785,7 @@ "rest", "web service" ], - "time": "2017-02-28 22:50:30" + "time": "2017-06-22 18:50:49" }, { "name": "guzzlehttp/promises", @@ -2685,12 +3011,12 @@ "source": { "type": "git", "url": "https://github.com/Intervention/image.git", - "reference": "854d12b807832ffae4ba8a14577e507beac493e2" + "reference": "4581c28cdcb6067dca2b27ea8b76842ca79ddf90" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Intervention/image/zipball/854d12b807832ffae4ba8a14577e507beac493e2", - "reference": "854d12b807832ffae4ba8a14577e507beac493e2", + "url": "https://api.github.com/repos/Intervention/image/zipball/4581c28cdcb6067dca2b27ea8b76842ca79ddf90", + "reference": "4581c28cdcb6067dca2b27ea8b76842ca79ddf90", "shasum": "" }, "require": { @@ -2700,7 +3026,7 @@ }, "require-dev": { "mockery/mockery": "~0.9.2", - "phpunit/phpunit": "3.*" + "phpunit/phpunit": "^4.8 || ^5.7" }, "suggest": { "ext-gd": "to use GD library based image processing.", @@ -2711,6 +3037,14 @@ "extra": { "branch-alias": { "dev-master": "2.3-dev" + }, + "laravel": { + "providers": [ + "Intervention\\Image\\ImageServiceProvider" + ], + "aliases": { + "Image": "Intervention\\Image\\Facades\\Image" + } } }, "autoload": { @@ -2725,8 +3059,8 @@ "authors": [ { "name": "Oliver Vogel", - "email": "oliver@olivervogel.net", - "homepage": "http://olivervogel.net/" + "email": "oliver@olivervogel.com", + "homepage": "http://olivervogel.com/" } ], "description": "Image handling and manipulation library with support for Laravel integration", @@ -2739,7 +3073,7 @@ "thumbnail", "watermark" ], - "time": "2017-06-03 18:33:13" + "time": "2017-07-04 16:10:28" }, { "name": "ircmaxell/password-compat", @@ -2913,23 +3247,24 @@ }, { "name": "jaybizzle/crawler-detect", - "version": "v1.2.44", + "version": "v1.2.50", "source": { "type": "git", "url": "https://github.com/JayBizzle/Crawler-Detect.git", - "reference": "dd14c05b3aed6ca75acfc77fbd864e37d83777bc" + "reference": "c9638a5d7d6fc4ecfb35f32a9cc6d05bc4f5a914" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/dd14c05b3aed6ca75acfc77fbd864e37d83777bc", - "reference": "dd14c05b3aed6ca75acfc77fbd864e37d83777bc", + "url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/c9638a5d7d6fc4ecfb35f32a9cc6d05bc4f5a914", + "reference": "c9638a5d7d6fc4ecfb35f32a9cc6d05bc4f5a914", "shasum": "" }, "require": { "php": ">=5.3.0" }, "require-dev": { - "phpunit/phpunit": "4.*" + "phpunit/phpunit": "4.8.*", + "satooshi/php-coveralls": "1.*" }, "type": "library", "autoload": { @@ -2957,7 +3292,7 @@ "crawlerdetect", "php crawler detect" ], - "time": "2017-06-03 10:19:31" + "time": "2017-07-03 20:56:40" }, { "name": "jaybizzle/laravel-crawler-detect", @@ -3651,16 +3986,16 @@ }, { "name": "league/flysystem-aws-s3-v3", - "version": "1.0.15", + "version": "1.0.18", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem-aws-s3-v3.git", - "reference": "c947f36f977b495a57e857ae1630df0da35ec456" + "reference": "dc09b19f455750663b922ed52dcc0ff215bed284" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/c947f36f977b495a57e857ae1630df0da35ec456", - "reference": "c947f36f977b495a57e857ae1630df0da35ec456", + "url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/dc09b19f455750663b922ed52dcc0ff215bed284", + "reference": "dc09b19f455750663b922ed52dcc0ff215bed284", "shasum": "" }, "require": { @@ -3694,7 +4029,7 @@ } ], "description": "Flysystem adapter for the AWS S3 SDK v3.x", - "time": "2017-04-28 10:21:54" + "time": "2017-06-30 06:29:25" }, { "name": "league/flysystem-rackspace", @@ -3975,16 +4310,16 @@ }, { "name": "maatwebsite/excel", - "version": "2.1.17", + "version": "2.1.19", "source": { "type": "git", "url": "https://github.com/Maatwebsite/Laravel-Excel.git", - "reference": "14d5abf8e20563c80dd074fd7c8cf1c05bf51f1d" + "reference": "f4535ac21968f6086438e098cdf289b350aa993c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Maatwebsite/Laravel-Excel/zipball/14d5abf8e20563c80dd074fd7c8cf1c05bf51f1d", - "reference": "14d5abf8e20563c80dd074fd7c8cf1c05bf51f1d", + "url": "https://api.github.com/repos/Maatwebsite/Laravel-Excel/zipball/f4535ac21968f6086438e098cdf289b350aa993c", + "reference": "f4535ac21968f6086438e098cdf289b350aa993c", "shasum": "" }, "require": { @@ -4011,6 +4346,16 @@ "illuminate/view": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*" }, "type": "library", + "extra": { + "laravel": { + "providers": [ + "Maatwebsite\\Excel\\ExcelServiceProvider" + ], + "aliases": { + "Excel": "Maatwebsite\\Excel\\Facades\\Excel" + } + } + }, "autoload": { "classmap": [ "src/Maatwebsite/Excel" @@ -4039,7 +4384,7 @@ "import", "laravel" ], - "time": "2017-04-04 18:28:12" + "time": "2017-07-02 07:00:56" }, { "name": "maximebf/debugbar", @@ -4302,16 +4647,16 @@ }, { "name": "monolog/monolog", - "version": "1.22.1", + "version": "1.23.0", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "1e044bc4b34e91743943479f1be7a1d5eb93add0" + "reference": "fd8c787753b3a2ad11bc60c063cff1358a32a3b4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/1e044bc4b34e91743943479f1be7a1d5eb93add0", - "reference": "1e044bc4b34e91743943479f1be7a1d5eb93add0", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/fd8c787753b3a2ad11bc60c063cff1358a32a3b4", + "reference": "fd8c787753b3a2ad11bc60c063cff1358a32a3b4", "shasum": "" }, "require": { @@ -4332,7 +4677,7 @@ "phpunit/phpunit-mock-objects": "2.3.0", "ruflin/elastica": ">=0.90 <3.0", "sentry/sentry": "^0.13", - "swiftmailer/swiftmailer": "~5.3" + "swiftmailer/swiftmailer": "^5.3|^6.0" }, "suggest": { "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", @@ -4376,7 +4721,7 @@ "logging", "psr-3" ], - "time": "2017-03-13 07:08:03" + "time": "2017-06-19 01:22:40" }, { "name": "mtdowling/cron-expression", @@ -4583,16 +4928,16 @@ }, { "name": "nwidart/laravel-modules", - "version": "1.22.0", + "version": "1.26.0", "source": { "type": "git", "url": "https://github.com/nWidart/laravel-modules.git", - "reference": "103aa81905f9ccc28a5cc771089477c2936b9f00" + "reference": "d819c4ace5e5a6b0c168d88170d20e90b958667a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nWidart/laravel-modules/zipball/103aa81905f9ccc28a5cc771089477c2936b9f00", - "reference": "103aa81905f9ccc28a5cc771089477c2936b9f00", + "url": "https://api.github.com/repos/nWidart/laravel-modules/zipball/d819c4ace5e5a6b0c168d88170d20e90b958667a", + "reference": "d819c4ace5e5a6b0c168d88170d20e90b958667a", "shasum": "" }, "require": { @@ -4607,10 +4952,23 @@ "phpunit/phpunit": "~5.7" }, "type": "library", + "extra": { + "laravel": { + "providers": [ + "Nwidart\\Modules\\LaravelModulesServiceProvider" + ], + "aliases": { + "Module": "Nwidart\\Modules\\Facades\\Module" + } + } + }, "autoload": { "psr-4": { "Nwidart\\Modules\\": "src" - } + }, + "files": [ + "src/helpers.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -4632,7 +4990,7 @@ "nwidart", "rad" ], - "time": "2017-05-22 08:30:39" + "time": "2017-07-06 19:33:38" }, { "name": "omnipay/2checkout", @@ -4875,16 +5233,16 @@ }, { "name": "omnipay/buckaroo", - "version": "v2.1", + "version": "v2.2.0", "source": { "type": "git", "url": "https://github.com/thephpleague/omnipay-buckaroo.git", - "reference": "7fccd4382ba87f6535cb399892c687928615dad7" + "reference": "b1d74b4121a9c889fe8cc77715e6cffb14b8833c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/omnipay-buckaroo/zipball/7fccd4382ba87f6535cb399892c687928615dad7", - "reference": "7fccd4382ba87f6535cb399892c687928615dad7", + "url": "https://api.github.com/repos/thephpleague/omnipay-buckaroo/zipball/b1d74b4121a9c889fe8cc77715e6cffb14b8833c", + "reference": "b1d74b4121a9c889fe8cc77715e6cffb14b8833c", "shasum": "" }, "require": { @@ -4928,7 +5286,7 @@ "pay", "payment" ], - "time": "2016-08-10 04:41:17" + "time": "2017-05-30 09:43:42" }, { "name": "omnipay/cardsave", @@ -5450,16 +5808,16 @@ }, { "name": "omnipay/migs", - "version": "v2.2.1", + "version": "v2.2.2", "source": { "type": "git", "url": "https://github.com/thephpleague/omnipay-migs.git", - "reference": "c15be0960ae578d60cabc7c0a2895da41430821f" + "reference": "0f79c818a150e73497efbe5e097ac4377d8f9717" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/omnipay-migs/zipball/c15be0960ae578d60cabc7c0a2895da41430821f", - "reference": "c15be0960ae578d60cabc7c0a2895da41430821f", + "url": "https://api.github.com/repos/thephpleague/omnipay-migs/zipball/0f79c818a150e73497efbe5e097ac4377d8f9717", + "reference": "0f79c818a150e73497efbe5e097ac4377d8f9717", "shasum": "" }, "require": { @@ -5504,7 +5862,7 @@ "pay", "payment" ], - "time": "2016-09-22 01:58:30" + "time": "2017-06-07 07:52:47" }, { "name": "omnipay/mollie", @@ -5565,16 +5923,16 @@ }, { "name": "omnipay/multisafepay", - "version": "v2.3.5", + "version": "v2.3.6", "source": { "type": "git", "url": "https://github.com/thephpleague/omnipay-multisafepay.git", - "reference": "9c086904894c98277e01826445660d849033cef0" + "reference": "6d7a6d64fa0e124b90767e505ea105f4c3ecbadd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/omnipay-multisafepay/zipball/9c086904894c98277e01826445660d849033cef0", - "reference": "9c086904894c98277e01826445660d849033cef0", + "url": "https://api.github.com/repos/thephpleague/omnipay-multisafepay/zipball/6d7a6d64fa0e124b90767e505ea105f4c3ecbadd", + "reference": "6d7a6d64fa0e124b90767e505ea105f4c3ecbadd", "shasum": "" }, "require": { @@ -5619,7 +5977,7 @@ "pay", "payment" ], - "time": "2017-04-09 10:57:36" + "time": "2017-05-28 06:28:10" }, { "name": "omnipay/netaxept", @@ -5963,16 +6321,16 @@ }, { "name": "omnipay/paymentexpress", - "version": "v2.2.0", + "version": "v2.2.1", "source": { "type": "git", "url": "https://github.com/thephpleague/omnipay-paymentexpress.git", - "reference": "5707f016cd2a6fa735f325c40ff3b5fbe29452ea" + "reference": "b97178ba0f0da85c6d0873c3da24f5677d557b3f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/omnipay-paymentexpress/zipball/5707f016cd2a6fa735f325c40ff3b5fbe29452ea", - "reference": "5707f016cd2a6fa735f325c40ff3b5fbe29452ea", + "url": "https://api.github.com/repos/thephpleague/omnipay-paymentexpress/zipball/b97178ba0f0da85c6d0873c3da24f5677d557b3f", + "reference": "b97178ba0f0da85c6d0873c3da24f5677d557b3f", "shasum": "" }, "require": { @@ -6022,7 +6380,7 @@ "pxpay", "pxpost" ], - "time": "2016-05-02 13:46:54" + "time": "2017-05-12 08:22:36" }, { "name": "omnipay/paypal", @@ -6261,12 +6619,12 @@ "source": { "type": "git", "url": "https://github.com/thephpleague/omnipay-stripe.git", - "reference": "a88b94d6b2228ec29ab8dcef84050ffaaccc4fac" + "reference": "f5d5ef91f420d7f0bc83692cde7bb4474043c454" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/omnipay-stripe/zipball/a88b94d6b2228ec29ab8dcef84050ffaaccc4fac", - "reference": "a88b94d6b2228ec29ab8dcef84050ffaaccc4fac", + "url": "https://api.github.com/repos/thephpleague/omnipay-stripe/zipball/f5d5ef91f420d7f0bc83692cde7bb4474043c454", + "reference": "f5d5ef91f420d7f0bc83692cde7bb4474043c454", "shasum": "" }, "require": { @@ -6310,7 +6668,7 @@ "payment", "stripe" ], - "time": "2017-05-28 07:05:31" + "time": "2017-07-01 03:24:42" }, { "name": "omnipay/targetpay", @@ -6371,16 +6729,16 @@ }, { "name": "omnipay/worldpay", - "version": "v2.2", + "version": "v2.2.1", "source": { "type": "git", "url": "https://github.com/thephpleague/omnipay-worldpay.git", - "reference": "26ead4ca2c6ec45c9a3b3dad0be8880e0b1df083" + "reference": "be0b5c31f5a0457b913281aa2d6072b62fd9e65c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/omnipay-worldpay/zipball/26ead4ca2c6ec45c9a3b3dad0be8880e0b1df083", - "reference": "26ead4ca2c6ec45c9a3b3dad0be8880e0b1df083", + "url": "https://api.github.com/repos/thephpleague/omnipay-worldpay/zipball/be0b5c31f5a0457b913281aa2d6072b62fd9e65c", + "reference": "be0b5c31f5a0457b913281aa2d6072b62fd9e65c", "shasum": "" }, "require": { @@ -6424,7 +6782,7 @@ "payment", "worldpay" ], - "time": "2016-01-28 12:55:58" + "time": "2017-06-15 07:04:25" }, { "name": "paragonie/random_compat", @@ -6590,6 +6948,98 @@ ], "time": "2015-05-01 07:00:55" }, + { + "name": "phpseclib/phpseclib", + "version": "2.0.6", + "source": { + "type": "git", + "url": "https://github.com/phpseclib/phpseclib.git", + "reference": "34a7699e6f31b1ef4035ee36444407cecf9f56aa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/34a7699e6f31b1ef4035ee36444407cecf9f56aa", + "reference": "34a7699e6f31b1ef4035ee36444407cecf9f56aa", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phing/phing": "~2.7", + "phpunit/phpunit": "~4.0", + "sami/sami": "~2.0", + "squizlabs/php_codesniffer": "~2.0" + }, + "suggest": { + "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", + "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", + "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", + "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations." + }, + "type": "library", + "autoload": { + "files": [ + "phpseclib/bootstrap.php" + ], + "psr-4": { + "phpseclib\\": "phpseclib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jim Wigginton", + "email": "terrafrost@php.net", + "role": "Lead Developer" + }, + { + "name": "Patrick Monnerat", + "email": "pm@datasphere.ch", + "role": "Developer" + }, + { + "name": "Andreas Fischer", + "email": "bantu@phpbb.com", + "role": "Developer" + }, + { + "name": "Hans-Jürgen Petrich", + "email": "petrich@tronic-media.com", + "role": "Developer" + }, + { + "name": "Graham Campbell", + "email": "graham@alt-three.com", + "role": "Developer" + } + ], + "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", + "homepage": "http://phpseclib.sourceforge.net", + "keywords": [ + "BigInteger", + "aes", + "asn.1", + "asn1", + "blowfish", + "crypto", + "cryptography", + "encryption", + "rsa", + "security", + "sftp", + "signature", + "signing", + "ssh", + "twofish", + "x.509", + "x509" + ], + "time": "2017-06-05 06:31:10" + }, { "name": "predis/predis", "version": "v1.1.1", @@ -6640,6 +7090,52 @@ ], "time": "2016-06-16 16:22:20" }, + { + "name": "psr/cache", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/cache.git", + "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", + "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Cache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for caching libraries", + "keywords": [ + "cache", + "psr", + "psr-6" + ], + "time": "2016-08-06 20:24:11" + }, { "name": "psr/container", "version": "1.0.0", @@ -6915,6 +7411,132 @@ ], "time": "2016-01-29 10:34:57" }, + { + "name": "ramsey/uuid", + "version": "3.6.1", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "4ae32dd9ab8860a4bbd750ad269cba7f06f7934e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/4ae32dd9ab8860a4bbd750ad269cba7f06f7934e", + "reference": "4ae32dd9ab8860a4bbd750ad269cba7f06f7934e", + "shasum": "" + }, + "require": { + "paragonie/random_compat": "^1.0|^2.0", + "php": "^5.4 || ^7.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "apigen/apigen": "^4.1", + "codeception/aspect-mock": "^1.0 | ^2.0", + "doctrine/annotations": "~1.2.0", + "goaop/framework": "1.0.0-alpha.2 | ^1.0 | ^2.1", + "ircmaxell/random-lib": "^1.1", + "jakub-onderka/php-parallel-lint": "^0.9.0", + "mockery/mockery": "^0.9.4", + "moontoast/math": "^1.1", + "php-mock/php-mock-phpunit": "^0.3|^1.1", + "phpunit/phpunit": "^4.7|>=5.0 <5.4", + "satooshi/php-coveralls": "^0.6.1", + "squizlabs/php_codesniffer": "^2.3" + }, + "suggest": { + "ext-libsodium": "Provides the PECL libsodium extension for use with the SodiumRandomGenerator", + "ext-uuid": "Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator", + "ircmaxell/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "moontoast/math": "Provides support for converting UUID to 128-bit integer (in string form).", + "ramsey/uuid-console": "A console application for generating UUIDs with ramsey/uuid", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marijn Huizendveld", + "email": "marijn.huizendveld@gmail.com" + }, + { + "name": "Thibaud Fabre", + "email": "thibaud@aztech.io" + }, + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "Formerly rhumsaa/uuid. A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID).", + "homepage": "https://github.com/ramsey/uuid", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "time": "2017-03-26 20:37:53" + }, + { + "name": "rize/uri-template", + "version": "0.3.2", + "source": { + "type": "git", + "url": "https://github.com/rize/UriTemplate.git", + "reference": "9e5fdd5c47147aa5adf7f760002ee591ed37b9ca" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/rize/UriTemplate/zipball/9e5fdd5c47147aa5adf7f760002ee591ed37b9ca", + "reference": "9e5fdd5c47147aa5adf7f760002ee591ed37b9ca", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.0.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "Rize\\UriTemplate": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marut K", + "homepage": "http://twitter.com/rezigned" + } + ], + "description": "PHP URI Template (RFC 6570) supports both expansion & extraction", + "keywords": [ + "RFC 6570", + "template", + "uri" + ], + "time": "2017-06-14 03:57:53" + }, { "name": "simshaun/recurr", "version": "dev-master", @@ -7021,53 +7643,6 @@ ], "time": "2017-05-27 14:16:31" }, - { - "name": "superbalist/flysystem-google-storage", - "version": "1.0.4", - "source": { - "type": "git", - "url": "https://github.com/Superbalist/flysystem-google-cloud-storage.git", - "reference": "8ae35803a102ed6ce58aa87bf7534d4396513765" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Superbalist/flysystem-google-cloud-storage/zipball/8ae35803a102ed6ce58aa87bf7534d4396513765", - "reference": "8ae35803a102ed6ce58aa87bf7534d4396513765", - "shasum": "" - }, - "require": { - "google/apiclient": "~1.1", - "league/flysystem": "~1.0", - "php": ">=5.4.0" - }, - "require-dev": { - "mockery/mockery": "0.9.*", - "phpunit/phpunit": "~4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "psr-4": { - "Superbalist\\Flysystem\\GoogleStorage\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Superbalist.com a division of Takealot Online (Pty) Ltd", - "email": "info@superbalist.com" - } - ], - "description": "Flysystem adapter for Google Cloud Storage", - "time": "2016-05-19 14:33:03" - }, { "name": "swiftmailer/swiftmailer", "version": "v5.4.8", @@ -7124,16 +7699,16 @@ }, { "name": "symfony/class-loader", - "version": "v3.3.0", + "version": "v3.3.4", "source": { "type": "git", "url": "https://github.com/symfony/class-loader.git", - "reference": "b0aff75bf18e4bbf37209235227e6e50a5aec8f5" + "reference": "386a294d621576302e7cc36965d6ed53b8c73c4f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/class-loader/zipball/b0aff75bf18e4bbf37209235227e6e50a5aec8f5", - "reference": "b0aff75bf18e4bbf37209235227e6e50a5aec8f5", + "url": "https://api.github.com/repos/symfony/class-loader/zipball/386a294d621576302e7cc36965d6ed53b8c73c4f", + "reference": "386a294d621576302e7cc36965d6ed53b8c73c4f", "shasum": "" }, "require": { @@ -7176,11 +7751,11 @@ ], "description": "Symfony ClassLoader Component", "homepage": "https://symfony.com", - "time": "2017-04-12 14:14:56" + "time": "2017-06-02 09:51:43" }, { "name": "symfony/config", - "version": "v3.2.9", + "version": "v3.2.11", "source": { "type": "git", "url": "https://github.com/symfony/config.git", @@ -7296,7 +7871,7 @@ }, { "name": "symfony/css-selector", - "version": "v3.3.0", + "version": "v3.3.4", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", @@ -7406,16 +7981,16 @@ }, { "name": "symfony/dependency-injection", - "version": "v3.2.9", + "version": "v3.2.11", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "7e276d2d83773f786f5909317770bda449c26431" + "reference": "dcec2b3ae52a6fe92154321682b01028deea6406" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/7e276d2d83773f786f5909317770bda449c26431", - "reference": "7e276d2d83773f786f5909317770bda449c26431", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/dcec2b3ae52a6fe92154321682b01028deea6406", + "reference": "dcec2b3ae52a6fe92154321682b01028deea6406", "shasum": "" }, "require": { @@ -7465,20 +8040,20 @@ ], "description": "Symfony DependencyInjection Component", "homepage": "https://symfony.com", - "time": "2017-05-25 22:59:05" + "time": "2017-06-03 15:50:21" }, { "name": "symfony/event-dispatcher", - "version": "v2.8.21", + "version": "v2.8.24", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "7fc8e2b4118ff316550596357325dfd92a51f531" + "reference": "1377400fd641d7d1935981546aaef780ecd5bf6d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/7fc8e2b4118ff316550596357325dfd92a51f531", - "reference": "7fc8e2b4118ff316550596357325dfd92a51f531", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/1377400fd641d7d1935981546aaef780ecd5bf6d", + "reference": "1377400fd641d7d1935981546aaef780ecd5bf6d", "shasum": "" }, "require": { @@ -7525,20 +8100,20 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2017-04-26 16:56:54" + "time": "2017-06-02 07:47:27" }, { "name": "symfony/filesystem", - "version": "v3.3.0", + "version": "v3.3.4", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "c709670bf64721202ddbe4162846f250735842c0" + "reference": "311fa718389efbd8b627c272b9324a62437018cc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/c709670bf64721202ddbe4162846f250735842c0", - "reference": "c709670bf64721202ddbe4162846f250735842c0", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/311fa718389efbd8b627c272b9324a62437018cc", + "reference": "311fa718389efbd8b627c272b9324a62437018cc", "shasum": "" }, "require": { @@ -7574,7 +8149,7 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2017-05-28 14:08:56" + "time": "2017-06-24 09:29:48" }, { "name": "symfony/finder", @@ -7627,16 +8202,16 @@ }, { "name": "symfony/http-foundation", - "version": "v2.8.21", + "version": "v2.8.24", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "03bf5ded5a4b54473e7551df5cfab854f7434ed4" + "reference": "2b592ca5fe2ad7ee8a92d409d2b830277ad58231" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/03bf5ded5a4b54473e7551df5cfab854f7434ed4", - "reference": "03bf5ded5a4b54473e7551df5cfab854f7434ed4", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/2b592ca5fe2ad7ee8a92d409d2b830277ad58231", + "reference": "2b592ca5fe2ad7ee8a92d409d2b830277ad58231", "shasum": "" }, "require": { @@ -7678,7 +8253,7 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", - "time": "2017-05-19 11:49:58" + "time": "2017-06-20 23:27:56" }, { "name": "symfony/http-kernel", @@ -7764,7 +8339,7 @@ }, { "name": "symfony/options-resolver", - "version": "v3.3.0", + "version": "v3.3.4", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", @@ -7818,16 +8393,16 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.3.0", + "version": "v1.4.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "e79d363049d1c2128f133a2667e4f4190904f7f4" + "reference": "f29dca382a6485c3cbe6379f0c61230167681937" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/e79d363049d1c2128f133a2667e4f4190904f7f4", - "reference": "e79d363049d1c2128f133a2667e4f4190904f7f4", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/f29dca382a6485c3cbe6379f0c61230167681937", + "reference": "f29dca382a6485c3cbe6379f0c61230167681937", "shasum": "" }, "require": { @@ -7839,7 +8414,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3-dev" + "dev-master": "1.4-dev" } }, "autoload": { @@ -7873,20 +8448,20 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2017-06-09 14:24:12" }, { "name": "symfony/polyfill-php54", - "version": "v1.3.0", + "version": "v1.4.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php54.git", - "reference": "90e085822963fdcc9d1c5b73deb3d2e5783b16a0" + "reference": "7dd1a8b9f0442273fdfeb1c4f5eaff6890a82789" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php54/zipball/90e085822963fdcc9d1c5b73deb3d2e5783b16a0", - "reference": "90e085822963fdcc9d1c5b73deb3d2e5783b16a0", + "url": "https://api.github.com/repos/symfony/polyfill-php54/zipball/7dd1a8b9f0442273fdfeb1c4f5eaff6890a82789", + "reference": "7dd1a8b9f0442273fdfeb1c4f5eaff6890a82789", "shasum": "" }, "require": { @@ -7895,7 +8470,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3-dev" + "dev-master": "1.4-dev" } }, "autoload": { @@ -7931,20 +8506,20 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2017-06-09 08:25:21" }, { "name": "symfony/polyfill-php55", - "version": "v1.3.0", + "version": "v1.4.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php55.git", - "reference": "03e3f0350bca2220e3623a0e340eef194405fc67" + "reference": "94566239a7720cde0820f15f0cc348ddb51ba51d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php55/zipball/03e3f0350bca2220e3623a0e340eef194405fc67", - "reference": "03e3f0350bca2220e3623a0e340eef194405fc67", + "url": "https://api.github.com/repos/symfony/polyfill-php55/zipball/94566239a7720cde0820f15f0cc348ddb51ba51d", + "reference": "94566239a7720cde0820f15f0cc348ddb51ba51d", "shasum": "" }, "require": { @@ -7954,7 +8529,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3-dev" + "dev-master": "1.4-dev" } }, "autoload": { @@ -7987,20 +8562,20 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2017-06-09 08:25:21" }, { "name": "symfony/polyfill-php56", - "version": "v1.3.0", + "version": "v1.4.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php56.git", - "reference": "1dd42b9b89556f18092f3d1ada22cb05ac85383c" + "reference": "bc0b7d6cb36b10cfabb170a3e359944a95174929" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/1dd42b9b89556f18092f3d1ada22cb05ac85383c", - "reference": "1dd42b9b89556f18092f3d1ada22cb05ac85383c", + "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/bc0b7d6cb36b10cfabb170a3e359944a95174929", + "reference": "bc0b7d6cb36b10cfabb170a3e359944a95174929", "shasum": "" }, "require": { @@ -8010,7 +8585,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3-dev" + "dev-master": "1.4-dev" } }, "autoload": { @@ -8043,20 +8618,20 @@ "portable", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2017-06-09 08:25:21" }, { "name": "symfony/polyfill-util", - "version": "v1.3.0", + "version": "v1.4.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-util.git", - "reference": "746bce0fca664ac0a575e465f65c6643faddf7fb" + "reference": "ebccbde4aad410f6438d86d7d261c6b4d2b9a51d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/746bce0fca664ac0a575e465f65c6643faddf7fb", - "reference": "746bce0fca664ac0a575e465f65c6643faddf7fb", + "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/ebccbde4aad410f6438d86d7d261c6b4d2b9a51d", + "reference": "ebccbde4aad410f6438d86d7d261c6b4d2b9a51d", "shasum": "" }, "require": { @@ -8065,7 +8640,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3-dev" + "dev-master": "1.4-dev" } }, "autoload": { @@ -8095,7 +8670,7 @@ "polyfill", "shim" ], - "time": "2016-11-14 01:06:16" + "time": "2017-06-09 08:25:21" }, { "name": "symfony/process", @@ -8350,16 +8925,16 @@ }, { "name": "symfony/yaml", - "version": "v3.3.0", + "version": "v3.3.4", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "885db865f6b2b918404a1fae28f9ac640f71f994" + "reference": "1f93a8d19b8241617f5074a123e282575b821df8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/885db865f6b2b918404a1fae28f9ac640f71f994", - "reference": "885db865f6b2b918404a1fae28f9ac640f71f994", + "url": "https://api.github.com/repos/symfony/yaml/zipball/1f93a8d19b8241617f5074a123e282575b821df8", + "reference": "1f93a8d19b8241617f5074a123e282575b821df8", "shasum": "" }, "require": { @@ -8401,7 +8976,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2017-05-28 10:56:20" + "time": "2017-06-15 12:58:50" }, { "name": "tijsverkoyen/css-to-inline-styles", @@ -8655,20 +9230,20 @@ }, { "name": "twig/twig", - "version": "v1.33.2", + "version": "v1.34.4", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "dd6ca96227917e1e85b41c7c3cc6507b411e0927" + "reference": "f878bab48edb66ad9c6ed626bf817f60c6c096ee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/dd6ca96227917e1e85b41c7c3cc6507b411e0927", - "reference": "dd6ca96227917e1e85b41c7c3cc6507b411e0927", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/f878bab48edb66ad9c6ed626bf817f60c6c096ee", + "reference": "f878bab48edb66ad9c6ed626bf817f60c6c096ee", "shasum": "" }, "require": { - "php": ">=5.2.7" + "php": ">=5.3.3" }, "require-dev": { "psr/container": "^1.0", @@ -8678,12 +9253,15 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.33-dev" + "dev-master": "1.34-dev" } }, "autoload": { "psr-0": { "Twig_": "lib/" + }, + "psr-4": { + "Twig\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -8713,7 +9291,7 @@ "keywords": [ "templating" ], - "time": "2017-04-20 17:39:48" + "time": "2017-07-04 13:19:31" }, { "name": "vink/omnipay-komoju", @@ -8867,29 +9445,34 @@ }, { "name": "websight/l5-google-cloud-storage", - "version": "v1.1.0", + "version": "dev-master", "source": { "type": "git", - "url": "https://github.com/websightgmbh/l5-google-cloud-storage.git", - "reference": "350245570862ae58497a3a6ef966306651c44771" + "url": "https://github.com/hillelcoren/l5-google-cloud-storage.git", + "reference": "ca2023b646b4b3e318b8945d023af14120c2c117" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/websightgmbh/l5-google-cloud-storage/zipball/350245570862ae58497a3a6ef966306651c44771", - "reference": "350245570862ae58497a3a6ef966306651c44771", + "url": "https://api.github.com/repos/hillelcoren/l5-google-cloud-storage/zipball/ca2023b646b4b3e318b8945d023af14120c2c117", + "reference": "ca2023b646b4b3e318b8945d023af14120c2c117", "shasum": "" }, "require": { - "illuminate/support": "~5.0.17|5.1.*|5.2.*|5.3.*", - "superbalist/flysystem-google-storage": "^1.0" + "cedricziel/flysystem-gcs": "^1.0", + "illuminate/filesystem": "~5.0.17|5.1.*|5.2.*|5.3.*|5.4.*", + "illuminate/support": "~5.0.17|5.1.*|5.2.*|5.3.*|5.4.*" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, "autoload": { "psr-4": { "Websight\\GcsProvider\\": "src/Websight/GcsProvider/" } }, - "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], @@ -8902,11 +9485,14 @@ "description": "Laravel 5 Flysystem Google Cloud Storage Service Provider", "homepage": "https://github.com/websightgmbh/l5-google-cloud-storage", "keywords": [ - "Flysystem", + "flysystem", "laravel", "laravel5" ], - "time": "2016-09-21 08:17:51" + "support": { + "source": "https://github.com/hillelcoren/l5-google-cloud-storage/tree/master" + }, + "time": "2017-07-13 08:04:13" }, { "name": "wepay/php-sdk", @@ -10411,16 +10997,16 @@ }, { "name": "phpunit/phpunit", - "version": "4.8.35", + "version": "4.8.36", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "791b1a67c25af50e230f841ee7a9c6eba507dc87" + "reference": "46023de9a91eec7dfb06cc56cb4e260017298517" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/791b1a67c25af50e230f841ee7a9c6eba507dc87", - "reference": "791b1a67c25af50e230f841ee7a9c6eba507dc87", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517", + "reference": "46023de9a91eec7dfb06cc56cb4e260017298517", "shasum": "" }, "require": { @@ -10479,7 +11065,7 @@ "testing", "xunit" ], - "time": "2017-02-06 05:18:07" + "time": "2017-06-21 08:07:12" }, { "name": "phpunit/phpunit-mock-objects", @@ -10956,16 +11542,16 @@ }, { "name": "symfony/browser-kit", - "version": "v3.3.0", + "version": "v3.3.4", "source": { "type": "git", "url": "https://github.com/symfony/browser-kit.git", - "reference": "c2c8ceb1aa9dab9eae54e9150e6a588ce3e53be1" + "reference": "3a4435e79a8401746e8525e98039199d0924b4e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/browser-kit/zipball/c2c8ceb1aa9dab9eae54e9150e6a588ce3e53be1", - "reference": "c2c8ceb1aa9dab9eae54e9150e6a588ce3e53be1", + "url": "https://api.github.com/repos/symfony/browser-kit/zipball/3a4435e79a8401746e8525e98039199d0924b4e5", + "reference": "3a4435e79a8401746e8525e98039199d0924b4e5", "shasum": "" }, "require": { @@ -11009,11 +11595,11 @@ ], "description": "Symfony BrowserKit Component", "homepage": "https://symfony.com", - "time": "2017-04-12 14:14:56" + "time": "2017-06-24 09:29:48" }, { "name": "symfony/dom-crawler", - "version": "v3.3.0", + "version": "v3.3.4", "source": { "type": "git", "url": "https://github.com/symfony/dom-crawler.git", @@ -11126,6 +11712,7 @@ "anahkiasen/former": 20, "chumper/datatable": 20, "codedge/laravel-selfupdater": 20, + "collizo4sky/omnipay-wepay": 20, "delatbabel/omnipay-fatzebra": 20, "dercoder/omnipay-paysafecard": 20, "descubraomundo/omnipay-pagarme": 20, @@ -11143,7 +11730,8 @@ "omnipay/gocardless": 20, "omnipay/stripe": 20, "simshaun/recurr": 20, - "webpatser/laravel-countries": 20 + "webpatser/laravel-countries": 20, + "websight/l5-google-cloud-storage": 20 }, "prefer-stable": false, "prefer-lowest": false, diff --git a/config/filesystems.php b/config/filesystems.php index 68e35a498670..47e88772b8f2 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -76,12 +76,14 @@ return [ 'url_type' => env('RACKSPACE_URL_TYPE', 'publicURL') ], - 'gcs' => [ - 'driver' => 'gcs', - 'service_account' => env('GCS_USERNAME', ''), - 'service_account_certificate' => storage_path() . '/credentials.p12', - 'service_account_certificate_password' => env('GCS_PASSWORD', ''), - 'bucket' => env('GCS_BUCKET', 'cloud-storage-bucket'), + 'gcs' => [ + 'driver' => 'gcs', + 'bucket' => env('GCS_BUCKET', 'cloud-storage-bucket'), + //'service_account' => env('GCS_USERNAME', ''), + //'service_account_certificate' => storage_path() . '/credentials.p12', + //'service_account_certificate_password' => env('GCS_PASSWORD', ''), + 'project_id' => env('GCS_PROJECT_ID'), + 'credentials' => storage_path() . '/gcs-credentials.json', ], ], diff --git a/database/migrations/2015_07_08_114333_simplify_tasks.php b/database/migrations/2015_07_08_114333_simplify_tasks.php index 84c6ffe1d88f..28a5b675d45f 100644 --- a/database/migrations/2015_07_08_114333_simplify_tasks.php +++ b/database/migrations/2015_07_08_114333_simplify_tasks.php @@ -54,7 +54,7 @@ class SimplifyTasks extends Migration $table->integer('break_duration')->nullable(); }); - if (Schema::hasColumn('accounts', 'dark_mode')) { + if (Schema::hasColumn('users', 'dark_mode')) { Schema::table('users', function ($table) { $table->dropColumn('dark_mode'); }); diff --git a/database/migrations/2017_06_19_111515_update_dark_mode.php b/database/migrations/2017_06_19_111515_update_dark_mode.php new file mode 100644 index 000000000000..19638dc2e2c2 --- /dev/null +++ b/database/migrations/2017_06_19_111515_update_dark_mode.php @@ -0,0 +1,107 @@ +boolean('dark_mode')->default(true)->change(); + }); + + Schema::table('accounts', function ($table) { + $table->integer('credit_number_counter')->default(0)->nullable(); + $table->text('credit_number_prefix')->nullable(); + $table->text('credit_number_pattern')->nullable(); + }); + + DB::statement('update users set dark_mode = 1'); + + // update invoice_item_type_id for task invoice items + DB::statement('update invoice_items + left join invoices on invoices.id = invoice_items.invoice_id + set invoice_item_type_id = 2 + where invoices.has_tasks = 1 + and invoice_item_type_id = 1'); + + Schema::create('recurring_expenses', function (Blueprint $table) { + $table->increments('id'); + $table->timestamps(); + $table->softDeletes(); + + $table->unsignedInteger('account_id')->index(); + $table->unsignedInteger('vendor_id')->nullable(); + $table->unsignedInteger('user_id'); + $table->unsignedInteger('client_id')->nullable(); + $table->boolean('is_deleted')->default(false); + $table->decimal('amount', 13, 2); + $table->text('private_notes'); + $table->text('public_notes'); + $table->unsignedInteger('invoice_currency_id')->nullable()->index(); + $table->unsignedInteger('expense_currency_id')->nullable()->index(); + $table->boolean('should_be_invoiced')->default(true); + $table->unsignedInteger('expense_category_id')->nullable()->index(); + $table->string('tax_name1')->nullable(); + $table->decimal('tax_rate1', 13, 3); + $table->string('tax_name2')->nullable(); + $table->decimal('tax_rate2', 13, 3); + + $table->unsignedInteger('frequency_id'); + $table->date('start_date')->nullable(); + $table->date('end_date')->nullable(); + $table->timestamp('last_sent_date')->nullable(); + + // Relations + $table->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade'); + $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); + $table->foreign('invoice_currency_id')->references('id')->on('currencies'); + $table->foreign('expense_currency_id')->references('id')->on('currencies'); + $table->foreign('expense_category_id')->references('id')->on('expense_categories')->onDelete('cascade'); + + // Indexes + $table->unsignedInteger('public_id')->index(); + $table->unique(['account_id', 'public_id']); + }); + + Schema::table('expenses', function ($table) { + $table->unsignedInteger('recurring_expense_id')->nullable(); + }); + + Schema::table('bank_accounts', function ($table) { + $table->mediumInteger('app_version')->default(DEFAULT_BANK_APP_VERSION); + $table->mediumInteger('ofx_version')->default(DEFAULT_BANK_OFX_VERSION); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('recurring_expenses'); + + Schema::table('expenses', function ($table) { + $table->dropColumn('recurring_expense_id'); + }); + + Schema::table('accounts', function ($table) { + $table->dropColumn('credit_number_counter'); + $table->dropColumn('credit_number_prefix'); + $table->dropColumn('credit_number_pattern'); + }); + + Schema::table('bank_accounts', function ($table) { + $table->dropColumn('app_version'); + $table->dropColumn('ofx_version'); + }); + } +} diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php index 11803e0c9873..9ed4573353c0 100644 --- a/database/seeds/DatabaseSeeder.php +++ b/database/seeds/DatabaseSeeder.php @@ -1,5 +1,7 @@ command->info('Running DatabaseSeeder'); + if (Timezone::count()) { + $this->command->info('Skipping: already run'); + return; + } + Eloquent::unguard(); $this->call('ConstantsSeeder'); diff --git a/database/seeds/IndustrySeeder.php b/database/seeds/IndustrySeeder.php index 910d90cf0a0c..8bb545d55b3c 100644 --- a/database/seeds/IndustrySeeder.php +++ b/database/seeds/IndustrySeeder.php @@ -41,6 +41,7 @@ class IndustrySeeder extends Seeder ['name' => 'Other'], ['name' => 'Photography'], ['name' => 'Construction'], + ['name' => 'Restaurant & Catering'], ]; foreach ($industries as $industry) { diff --git a/database/seeds/PaymentLibrariesSeeder.php b/database/seeds/PaymentLibrariesSeeder.php index a836224633d2..d57be08e2fa4 100644 --- a/database/seeds/PaymentLibrariesSeeder.php +++ b/database/seeds/PaymentLibrariesSeeder.php @@ -71,6 +71,7 @@ class PaymentLibrariesSeeder extends Seeder ['name' => 'WePay', 'provider' => 'WePay', 'is_offsite' => false], ['name' => 'Braintree', 'provider' => 'Braintree', 'sort_order' => 2], ['name' => 'Custom', 'provider' => 'Custom', 'is_offsite' => true, 'sort_order' => 8], + ['name' => 'FirstData Payeezy', 'provider' => 'FirstData_Payeezy'], ]; foreach ($gateways as $gateway) { diff --git a/database/seeds/UserTableSeeder.php b/database/seeds/UserTableSeeder.php index 865940b95123..a83cbbcde67a 100644 --- a/database/seeds/UserTableSeeder.php +++ b/database/seeds/UserTableSeeder.php @@ -36,9 +36,9 @@ class UserTableSeeder extends Seeder 'invoice_terms' => $faker->text($faker->numberBetween(50, 300)), 'work_phone' => $faker->phoneNumber, 'work_email' => $faker->safeEmail, - 'invoice_design_id' => InvoiceDesign::where('id', '<', CUSTOM_DESIGN1)->get()->random()->id, - 'header_font_id' => min(Font::all()->random()->id, 17), - 'body_font_id' => min(Font::all()->random()->id, 17), + //'invoice_design_id' => InvoiceDesign::where('id', '<', CUSTOM_DESIGN1)->get()->random()->id, + //'header_font_id' => min(Font::all()->random()->id, 17), + //'body_font_id' => min(Font::all()->random()->id, 17), 'primary_color' => $faker->hexcolor, 'timezone_id' => 58, 'company_id' => $company->id, diff --git a/database/setup.sql b/database/setup.sql index 5335ae5b11d2..6384429fb044 100644 --- a/database/setup.sql +++ b/database/setup.sql @@ -361,6 +361,9 @@ CREATE TABLE `accounts` ( `custom_design2` mediumtext COLLATE utf8_unicode_ci, `custom_design3` mediumtext COLLATE utf8_unicode_ci, `analytics_key` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `credit_number_counter` int(11) DEFAULT '0', + `credit_number_prefix` text COLLATE utf8_unicode_ci, + `credit_number_pattern` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`), UNIQUE KEY `accounts_account_key_unique` (`account_key`), KEY `accounts_timezone_id_foreign` (`timezone_id`), @@ -487,6 +490,8 @@ CREATE TABLE `bank_accounts` ( `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `public_id` int(10) unsigned NOT NULL, + `app_version` mediumint(9) NOT NULL DEFAULT '2500', + `ofx_version` mediumint(9) NOT NULL DEFAULT '102', PRIMARY KEY (`id`), UNIQUE KEY `bank_accounts_account_id_public_id_unique` (`account_id`,`public_id`), KEY `bank_accounts_user_id_foreign` (`user_id`), @@ -843,7 +848,7 @@ CREATE TABLE `currencies` ( `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `swap_currency_symbol` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=68 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -852,7 +857,7 @@ CREATE TABLE `currencies` ( LOCK TABLES `currencies` WRITE; /*!40000 ALTER TABLE `currencies` DISABLE KEYS */; -INSERT INTO `currencies` VALUES (1,'US Dollar','$','2',',','.','USD',0),(2,'British Pound','£','2',',','.','GBP',0),(3,'Euro','€','2','.',',','EUR',0),(4,'South African Rand','R','2','.',',','ZAR',0),(5,'Danish Krone','kr','2','.',',','DKK',1),(6,'Israeli Shekel','NIS ','2',',','.','ILS',0),(7,'Swedish Krona','kr','2','.',',','SEK',1),(8,'Kenyan Shilling','KSh ','2',',','.','KES',0),(9,'Canadian Dollar','C$','2',',','.','CAD',0),(10,'Philippine Peso','P ','2',',','.','PHP',0),(11,'Indian Rupee','Rs. ','2',',','.','INR',0),(12,'Australian Dollar','$','2',',','.','AUD',0),(13,'Singapore Dollar','','2',',','.','SGD',0),(14,'Norske Kroner','kr','2','.',',','NOK',1),(15,'New Zealand Dollar','$','2',',','.','NZD',0),(16,'Vietnamese Dong','','0','.',',','VND',0),(17,'Swiss Franc','','2','\'','.','CHF',0),(18,'Guatemalan Quetzal','Q','2',',','.','GTQ',0),(19,'Malaysian Ringgit','RM','2',',','.','MYR',0),(20,'Brazilian Real','R$','2','.',',','BRL',0),(21,'Thai Baht','','2',',','.','THB',0),(22,'Nigerian Naira','','2',',','.','NGN',0),(23,'Argentine Peso','$','2','.',',','ARS',0),(24,'Bangladeshi Taka','Tk','2',',','.','BDT',0),(25,'United Arab Emirates Dirham','DH ','2',',','.','AED',0),(26,'Hong Kong Dollar','','2',',','.','HKD',0),(27,'Indonesian Rupiah','Rp','2',',','.','IDR',0),(28,'Mexican Peso','$','2',',','.','MXN',0),(29,'Egyptian Pound','E£','2',',','.','EGP',0),(30,'Colombian Peso','$','2','.',',','COP',0),(31,'West African Franc','CFA ','2',',','.','XOF',0),(32,'Chinese Renminbi','RMB ','2',',','.','CNY',0),(33,'Rwandan Franc','RF ','2',',','.','RWF',0),(34,'Tanzanian Shilling','TSh ','2',',','.','TZS',0),(35,'Netherlands Antillean Guilder','','2','.',',','ANG',0),(36,'Trinidad and Tobago Dollar','TT$','2',',','.','TTD',0),(37,'East Caribbean Dollar','EC$','2',',','.','XCD',0),(38,'Ghanaian Cedi','','2',',','.','GHS',0),(39,'Bulgarian Lev','','2',' ','.','BGN',0),(40,'Aruban Florin','Afl. ','2',' ','.','AWG',0),(41,'Turkish Lira','TL ','2','.',',','TRY',0),(42,'Romanian New Leu','','2',',','.','RON',0),(43,'Croatian Kuna','kn','2','.',',','HRK',0),(44,'Saudi Riyal','','2',',','.','SAR',0),(45,'Japanese Yen','¥','0',',','.','JPY',0),(46,'Maldivian Rufiyaa','','2',',','.','MVR',0),(47,'Costa Rican Colón','','2',',','.','CRC',0),(48,'Pakistani Rupee','Rs ','0',',','.','PKR',0),(49,'Polish Zloty','zł','2',' ',',','PLN',1),(50,'Sri Lankan Rupee','LKR','2',',','.','LKR',1),(51,'Czech Koruna','Kč','2',' ',',','CZK',1),(52,'Uruguayan Peso','$','2','.',',','UYU',0),(53,'Namibian Dollar','$','2',',','.','NAD',0),(54,'Tunisian Dinar','','2',',','.','TND',0),(55,'Russian Ruble','','2',',','.','RUB',0),(56,'Mozambican Metical','MT','2','.',',','MZN',1),(57,'Omani Rial','','2',',','.','OMR',0),(58,'Ukrainian Hryvnia','','2',',','.','UAH',0),(59,'Macanese Pataca','MOP$','2',',','.','MOP',0),(60,'Taiwan New Dollar','NT$','2',',','.','TWD',0),(61,'Dominican Peso','RD$','2',',','.','DOP',0),(62,'Chilean Peso','$','2','.',',','CLP',0),(63,'Icelandic Króna','kr','2','.',',','ISK',1),(64,'Papua New Guinean Kina','K','2',',','.','PGK',0),(65,'Jordanian Dinar','','2',',','.','JOD',0); +INSERT INTO `currencies` VALUES (1,'US Dollar','$','2',',','.','USD',0),(2,'British Pound','£','2',',','.','GBP',0),(3,'Euro','€','2','.',',','EUR',0),(4,'South African Rand','R','2','.',',','ZAR',0),(5,'Danish Krone','kr','2','.',',','DKK',1),(6,'Israeli Shekel','NIS ','2',',','.','ILS',0),(7,'Swedish Krona','kr','2','.',',','SEK',1),(8,'Kenyan Shilling','KSh ','2',',','.','KES',0),(9,'Canadian Dollar','C$','2',',','.','CAD',0),(10,'Philippine Peso','P ','2',',','.','PHP',0),(11,'Indian Rupee','Rs. ','2',',','.','INR',0),(12,'Australian Dollar','$','2',',','.','AUD',0),(13,'Singapore Dollar','','2',',','.','SGD',0),(14,'Norske Kroner','kr','2','.',',','NOK',1),(15,'New Zealand Dollar','$','2',',','.','NZD',0),(16,'Vietnamese Dong','','0','.',',','VND',0),(17,'Swiss Franc','','2','\'','.','CHF',0),(18,'Guatemalan Quetzal','Q','2',',','.','GTQ',0),(19,'Malaysian Ringgit','RM','2',',','.','MYR',0),(20,'Brazilian Real','R$','2','.',',','BRL',0),(21,'Thai Baht','','2',',','.','THB',0),(22,'Nigerian Naira','','2',',','.','NGN',0),(23,'Argentine Peso','$','2','.',',','ARS',0),(24,'Bangladeshi Taka','Tk','2',',','.','BDT',0),(25,'United Arab Emirates Dirham','DH ','2',',','.','AED',0),(26,'Hong Kong Dollar','','2',',','.','HKD',0),(27,'Indonesian Rupiah','Rp','2',',','.','IDR',0),(28,'Mexican Peso','$','2',',','.','MXN',0),(29,'Egyptian Pound','E£','2',',','.','EGP',0),(30,'Colombian Peso','$','2','.',',','COP',0),(31,'West African Franc','CFA ','2',',','.','XOF',0),(32,'Chinese Renminbi','RMB ','2',',','.','CNY',0),(33,'Rwandan Franc','RF ','2',',','.','RWF',0),(34,'Tanzanian Shilling','TSh ','2',',','.','TZS',0),(35,'Netherlands Antillean Guilder','','2','.',',','ANG',0),(36,'Trinidad and Tobago Dollar','TT$','2',',','.','TTD',0),(37,'East Caribbean Dollar','EC$','2',',','.','XCD',0),(38,'Ghanaian Cedi','','2',',','.','GHS',0),(39,'Bulgarian Lev','','2',' ','.','BGN',0),(40,'Aruban Florin','Afl. ','2',' ','.','AWG',0),(41,'Turkish Lira','TL ','2','.',',','TRY',0),(42,'Romanian New Leu','','2',',','.','RON',0),(43,'Croatian Kuna','kn','2','.',',','HRK',0),(44,'Saudi Riyal','','2',',','.','SAR',0),(45,'Japanese Yen','¥','0',',','.','JPY',0),(46,'Maldivian Rufiyaa','','2',',','.','MVR',0),(47,'Costa Rican Colón','','2',',','.','CRC',0),(48,'Pakistani Rupee','Rs ','0',',','.','PKR',0),(49,'Polish Zloty','zł','2',' ',',','PLN',1),(50,'Sri Lankan Rupee','LKR','2',',','.','LKR',1),(51,'Czech Koruna','Kč','2',' ',',','CZK',1),(52,'Uruguayan Peso','$','2','.',',','UYU',0),(53,'Namibian Dollar','$','2',',','.','NAD',0),(54,'Tunisian Dinar','','2',',','.','TND',0),(55,'Russian Ruble','','2',',','.','RUB',0),(56,'Mozambican Metical','MT','2','.',',','MZN',1),(57,'Omani Rial','','2',',','.','OMR',0),(58,'Ukrainian Hryvnia','','2',',','.','UAH',0),(59,'Macanese Pataca','MOP$','2',',','.','MOP',0),(60,'Taiwan New Dollar','NT$','2',',','.','TWD',0),(61,'Dominican Peso','RD$','2',',','.','DOP',0),(62,'Chilean Peso','$','0','.',',','CLP',0),(63,'Icelandic Króna','kr','2','.',',','ISK',1),(64,'Papua New Guinean Kina','K','2',',','.','PGK',0),(65,'Jordanian Dinar','','2',',','.','JOD',0),(66,'Myanmar Kyat','K','2',',','.','MMK',0),(67,'Peruvian Sol','S/ ','2',',','.','PEN',0); /*!40000 ALTER TABLE `currencies` ENABLE KEYS */; UNLOCK TABLES; @@ -1051,6 +1056,7 @@ CREATE TABLE `expenses` ( `payment_date` date DEFAULT NULL, `transaction_reference` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `invoice_documents` tinyint(1) NOT NULL DEFAULT '1', + `recurring_expense_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `expenses_account_id_public_id_unique` (`account_id`,`public_id`), KEY `expenses_user_id_foreign` (`user_id`), @@ -1209,7 +1215,7 @@ CREATE TABLE `gateways` ( PRIMARY KEY (`id`), KEY `gateways_payment_library_id_foreign` (`payment_library_id`), CONSTRAINT `gateways_payment_library_id_foreign` FOREIGN KEY (`payment_library_id`) REFERENCES `payment_libraries` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1218,7 +1224,7 @@ CREATE TABLE `gateways` ( LOCK TABLES `gateways` WRITE; /*!40000 ALTER TABLE `gateways` DISABLE KEYS */; -INSERT INTO `gateways` VALUES (1,'2017-06-15 04:43:57','2017-06-15 04:43:57','Authorize.Net AIM','AuthorizeNet_AIM',1,1,4,0,NULL,0,0),(2,'2017-06-15 04:43:57','2017-06-15 04:43:57','Authorize.Net SIM','AuthorizeNet_SIM',1,2,10000,0,NULL,0,0),(3,'2017-06-15 04:43:57','2017-06-15 04:43:57','CardSave','CardSave',1,1,10000,0,NULL,0,0),(4,'2017-06-15 04:43:57','2017-06-15 04:43:57','Eway Rapid','Eway_RapidShared',1,1,10000,0,NULL,1,0),(5,'2017-06-15 04:43:57','2017-06-15 04:43:57','FirstData Connect','FirstData_Connect',1,1,10000,0,NULL,0,0),(6,'2017-06-15 04:43:57','2017-06-15 04:43:57','GoCardless','GoCardless',1,1,10000,0,NULL,1,0),(7,'2017-06-15 04:43:57','2017-06-15 04:43:57','Migs ThreeParty','Migs_ThreeParty',1,1,10000,0,NULL,0,0),(8,'2017-06-15 04:43:57','2017-06-15 04:43:57','Migs TwoParty','Migs_TwoParty',1,1,10000,0,NULL,0,0),(9,'2017-06-15 04:43:57','2017-06-15 04:43:57','Mollie','Mollie',1,1,7,0,NULL,1,0),(10,'2017-06-15 04:43:57','2017-06-15 04:43:57','MultiSafepay','MultiSafepay',1,1,10000,0,NULL,0,0),(11,'2017-06-15 04:43:57','2017-06-15 04:43:57','Netaxept','Netaxept',1,1,10000,0,NULL,0,0),(12,'2017-06-15 04:43:57','2017-06-15 04:43:57','NetBanx','NetBanx',1,1,10000,0,NULL,0,0),(13,'2017-06-15 04:43:57','2017-06-15 04:43:57','PayFast','PayFast',1,1,10000,0,NULL,1,0),(14,'2017-06-15 04:43:57','2017-06-15 04:43:57','Payflow Pro','Payflow_Pro',1,1,10000,0,NULL,0,0),(15,'2017-06-15 04:43:57','2017-06-15 04:43:57','PaymentExpress PxPay','PaymentExpress_PxPay',1,1,10000,0,NULL,0,0),(16,'2017-06-15 04:43:57','2017-06-15 04:43:57','PaymentExpress PxPost','PaymentExpress_PxPost',1,1,10000,0,NULL,0,0),(17,'2017-06-15 04:43:57','2017-06-15 04:43:57','PayPal Express','PayPal_Express',1,1,3,0,NULL,1,0),(18,'2017-06-15 04:43:57','2017-06-15 04:43:57','PayPal Pro','PayPal_Pro',1,1,10000,0,NULL,0,0),(19,'2017-06-15 04:43:57','2017-06-15 04:43:57','Pin','Pin',1,1,10000,0,NULL,0,0),(20,'2017-06-15 04:43:57','2017-06-15 04:43:57','SagePay Direct','SagePay_Direct',1,1,10000,0,NULL,0,0),(21,'2017-06-15 04:43:57','2017-06-15 04:43:57','SagePay Server','SagePay_Server',1,1,10000,0,NULL,0,0),(22,'2017-06-15 04:43:57','2017-06-15 04:43:57','SecurePay DirectPost','SecurePay_DirectPost',1,1,10000,0,NULL,0,0),(23,'2017-06-15 04:43:58','2017-06-15 04:43:58','Stripe','Stripe',1,1,1,0,NULL,0,0),(24,'2017-06-15 04:43:58','2017-06-15 04:43:58','TargetPay Direct eBanking','TargetPay_Directebanking',1,1,10000,0,NULL,0,0),(25,'2017-06-15 04:43:58','2017-06-15 04:43:58','TargetPay Ideal','TargetPay_Ideal',1,1,10000,0,NULL,0,0),(26,'2017-06-15 04:43:58','2017-06-15 04:43:58','TargetPay Mr Cash','TargetPay_Mrcash',1,1,10000,0,NULL,0,0),(27,'2017-06-15 04:43:58','2017-06-15 04:43:58','TwoCheckout','TwoCheckout',1,1,10000,0,NULL,1,0),(28,'2017-06-15 04:43:58','2017-06-15 04:43:58','WorldPay','WorldPay',1,1,10000,0,NULL,0,0),(29,'2017-06-15 04:43:58','2017-06-15 04:43:58','BeanStream','BeanStream',1,2,10000,0,NULL,0,0),(30,'2017-06-15 04:43:58','2017-06-15 04:43:58','Psigate','Psigate',1,2,10000,0,NULL,0,0),(31,'2017-06-15 04:43:58','2017-06-15 04:43:58','moolah','AuthorizeNet_AIM',1,1,10000,0,NULL,0,0),(32,'2017-06-15 04:43:58','2017-06-15 04:43:58','Alipay','Alipay_Express',1,1,10000,0,NULL,0,0),(33,'2017-06-15 04:43:58','2017-06-15 04:43:58','Buckaroo','Buckaroo_CreditCard',1,1,10000,0,NULL,0,0),(34,'2017-06-15 04:43:58','2017-06-15 04:43:58','Coinbase','Coinbase',1,1,10000,0,NULL,0,0),(35,'2017-06-15 04:43:58','2017-06-15 04:43:58','DataCash','DataCash',1,1,10000,0,NULL,0,0),(36,'2017-06-15 04:43:58','2017-06-15 04:43:58','Neteller','Neteller',1,2,10000,0,NULL,0,0),(37,'2017-06-15 04:43:58','2017-06-15 04:43:58','Pacnet','Pacnet',1,1,10000,0,NULL,0,0),(38,'2017-06-15 04:43:58','2017-06-15 04:43:58','PaymentSense','PaymentSense',1,2,10000,0,NULL,0,0),(39,'2017-06-15 04:43:58','2017-06-15 04:43:58','Realex','Realex_Remote',1,1,10000,0,NULL,0,0),(40,'2017-06-15 04:43:58','2017-06-15 04:43:58','Sisow','Sisow',1,1,10000,0,NULL,0,0),(41,'2017-06-15 04:43:58','2017-06-15 04:43:58','Skrill','Skrill',1,1,10000,0,NULL,1,0),(42,'2017-06-15 04:43:58','2017-06-15 04:43:58','BitPay','BitPay',1,1,6,0,NULL,1,0),(43,'2017-06-15 04:43:58','2017-06-15 04:43:58','Dwolla','Dwolla',1,1,5,0,NULL,1,0),(44,'2017-06-15 04:43:58','2017-06-15 04:43:58','AGMS','Agms',1,1,10000,0,NULL,0,0),(45,'2017-06-15 04:43:58','2017-06-15 04:43:58','Barclays','BarclaysEpdq\\Essential',1,1,10000,0,NULL,0,0),(46,'2017-06-15 04:43:58','2017-06-15 04:43:58','Cardgate','Cardgate',1,1,10000,0,NULL,0,0),(47,'2017-06-15 04:43:58','2017-06-15 04:43:58','Checkout.com','CheckoutCom',1,1,10000,0,NULL,0,0),(48,'2017-06-15 04:43:58','2017-06-15 04:43:58','Creditcall','Creditcall',1,1,10000,0,NULL,0,0),(49,'2017-06-15 04:43:58','2017-06-15 04:43:58','Cybersource','Cybersource',1,1,10000,0,NULL,0,0),(50,'2017-06-15 04:43:58','2017-06-15 04:43:58','ecoPayz','Ecopayz',1,1,10000,0,NULL,0,0),(51,'2017-06-15 04:43:58','2017-06-15 04:43:58','Fasapay','Fasapay',1,1,10000,0,NULL,0,0),(52,'2017-06-15 04:43:58','2017-06-15 04:43:58','Komoju','Komoju',1,1,10000,0,NULL,0,0),(53,'2017-06-15 04:43:58','2017-06-15 04:43:58','Multicards','Multicards',1,1,10000,0,NULL,0,0),(54,'2017-06-15 04:43:58','2017-06-15 04:43:58','Pagar.Me','Pagarme',1,2,10000,0,NULL,0,0),(55,'2017-06-15 04:43:58','2017-06-15 04:43:58','Paysafecard','Paysafecard',1,1,10000,0,NULL,0,0),(56,'2017-06-15 04:43:58','2017-06-15 04:43:58','Paytrace','Paytrace_CreditCard',1,1,10000,0,NULL,0,0),(57,'2017-06-15 04:43:58','2017-06-15 04:43:58','Secure Trading','SecureTrading',1,1,10000,0,NULL,0,0),(58,'2017-06-15 04:43:58','2017-06-15 04:43:58','SecPay','SecPay',1,1,10000,0,NULL,0,0),(59,'2017-06-15 04:43:58','2017-06-15 04:43:58','WeChat Express','WeChat_Express',1,2,10000,0,NULL,0,0),(60,'2017-06-15 04:43:58','2017-06-15 04:43:58','WePay','WePay',1,1,10000,0,NULL,0,0),(61,'2017-06-15 04:43:58','2017-06-15 04:43:58','Braintree','Braintree',1,1,2,0,NULL,0,0),(62,'2017-06-15 04:43:58','2017-06-15 04:43:58','Custom','Custom',1,1,8,0,NULL,1,0); +INSERT INTO `gateways` VALUES (1,'2017-07-17 14:14:38','2017-07-17 14:14:38','Authorize.Net AIM','AuthorizeNet_AIM',1,1,4,0,NULL,0,0),(2,'2017-07-17 14:14:38','2017-07-17 14:14:38','Authorize.Net SIM','AuthorizeNet_SIM',1,2,10000,0,NULL,0,0),(3,'2017-07-17 14:14:38','2017-07-17 14:14:38','CardSave','CardSave',1,1,10000,0,NULL,0,0),(4,'2017-07-17 14:14:38','2017-07-17 14:14:38','Eway Rapid','Eway_RapidShared',1,1,10000,0,NULL,1,0),(5,'2017-07-17 14:14:38','2017-07-17 14:14:38','FirstData Connect','FirstData_Connect',1,1,10000,0,NULL,0,0),(6,'2017-07-17 14:14:38','2017-07-17 14:14:38','GoCardless','GoCardless',1,1,10000,0,NULL,1,0),(7,'2017-07-17 14:14:38','2017-07-17 14:14:38','Migs ThreeParty','Migs_ThreeParty',1,1,10000,0,NULL,0,0),(8,'2017-07-17 14:14:38','2017-07-17 14:14:38','Migs TwoParty','Migs_TwoParty',1,1,10000,0,NULL,0,0),(9,'2017-07-17 14:14:38','2017-07-17 14:14:38','Mollie','Mollie',1,1,7,0,NULL,1,0),(10,'2017-07-17 14:14:38','2017-07-17 14:14:38','MultiSafepay','MultiSafepay',1,1,10000,0,NULL,0,0),(11,'2017-07-17 14:14:38','2017-07-17 14:14:38','Netaxept','Netaxept',1,1,10000,0,NULL,0,0),(12,'2017-07-17 14:14:38','2017-07-17 14:14:38','NetBanx','NetBanx',1,1,10000,0,NULL,0,0),(13,'2017-07-17 14:14:38','2017-07-17 14:14:38','PayFast','PayFast',1,1,10000,0,NULL,1,0),(14,'2017-07-17 14:14:38','2017-07-17 14:14:38','Payflow Pro','Payflow_Pro',1,1,10000,0,NULL,0,0),(15,'2017-07-17 14:14:38','2017-07-17 14:14:38','PaymentExpress PxPay','PaymentExpress_PxPay',1,1,10000,0,NULL,0,0),(16,'2017-07-17 14:14:38','2017-07-17 14:14:38','PaymentExpress PxPost','PaymentExpress_PxPost',1,1,10000,0,NULL,0,0),(17,'2017-07-17 14:14:38','2017-07-17 14:14:38','PayPal Express','PayPal_Express',1,1,3,0,NULL,1,0),(18,'2017-07-17 14:14:38','2017-07-17 14:14:38','PayPal Pro','PayPal_Pro',1,1,10000,0,NULL,0,0),(19,'2017-07-17 14:14:38','2017-07-17 14:14:38','Pin','Pin',1,1,10000,0,NULL,0,0),(20,'2017-07-17 14:14:38','2017-07-17 14:14:38','SagePay Direct','SagePay_Direct',1,1,10000,0,NULL,0,0),(21,'2017-07-17 14:14:38','2017-07-17 14:14:38','SagePay Server','SagePay_Server',1,1,10000,0,NULL,0,0),(22,'2017-07-17 14:14:38','2017-07-17 14:14:38','SecurePay DirectPost','SecurePay_DirectPost',1,1,10000,0,NULL,0,0),(23,'2017-07-17 14:14:38','2017-07-17 14:14:38','Stripe','Stripe',1,1,1,0,NULL,0,0),(24,'2017-07-17 14:14:38','2017-07-17 14:14:38','TargetPay Direct eBanking','TargetPay_Directebanking',1,1,10000,0,NULL,0,0),(25,'2017-07-17 14:14:38','2017-07-17 14:14:38','TargetPay Ideal','TargetPay_Ideal',1,1,10000,0,NULL,0,0),(26,'2017-07-17 14:14:38','2017-07-17 14:14:38','TargetPay Mr Cash','TargetPay_Mrcash',1,1,10000,0,NULL,0,0),(27,'2017-07-17 14:14:38','2017-07-17 14:14:38','TwoCheckout','TwoCheckout',1,1,10000,0,NULL,1,0),(28,'2017-07-17 14:14:38','2017-07-17 14:14:38','WorldPay','WorldPay',1,1,10000,0,NULL,0,0),(29,'2017-07-17 14:14:38','2017-07-17 14:14:38','BeanStream','BeanStream',1,2,10000,0,NULL,0,0),(30,'2017-07-17 14:14:38','2017-07-17 14:14:38','Psigate','Psigate',1,2,10000,0,NULL,0,0),(31,'2017-07-17 14:14:38','2017-07-17 14:14:38','moolah','AuthorizeNet_AIM',1,1,10000,0,NULL,0,0),(32,'2017-07-17 14:14:38','2017-07-17 14:14:38','Alipay','Alipay_Express',1,1,10000,0,NULL,0,0),(33,'2017-07-17 14:14:38','2017-07-17 14:14:38','Buckaroo','Buckaroo_CreditCard',1,1,10000,0,NULL,0,0),(34,'2017-07-17 14:14:38','2017-07-17 14:14:38','Coinbase','Coinbase',1,1,10000,0,NULL,0,0),(35,'2017-07-17 14:14:38','2017-07-17 14:14:38','DataCash','DataCash',1,1,10000,0,NULL,0,0),(36,'2017-07-17 14:14:38','2017-07-17 14:14:38','Neteller','Neteller',1,2,10000,0,NULL,0,0),(37,'2017-07-17 14:14:38','2017-07-17 14:14:38','Pacnet','Pacnet',1,1,10000,0,NULL,0,0),(38,'2017-07-17 14:14:38','2017-07-17 14:14:38','PaymentSense','PaymentSense',1,2,10000,0,NULL,0,0),(39,'2017-07-17 14:14:38','2017-07-17 14:14:38','Realex','Realex_Remote',1,1,10000,0,NULL,0,0),(40,'2017-07-17 14:14:38','2017-07-17 14:14:38','Sisow','Sisow',1,1,10000,0,NULL,0,0),(41,'2017-07-17 14:14:38','2017-07-17 14:14:38','Skrill','Skrill',1,1,10000,0,NULL,1,0),(42,'2017-07-17 14:14:38','2017-07-17 14:14:38','BitPay','BitPay',1,1,6,0,NULL,1,0),(43,'2017-07-17 14:14:38','2017-07-17 14:14:38','Dwolla','Dwolla',1,1,5,0,NULL,1,0),(44,'2017-07-17 14:14:38','2017-07-17 14:14:38','AGMS','Agms',1,1,10000,0,NULL,0,0),(45,'2017-07-17 14:14:38','2017-07-17 14:14:38','Barclays','BarclaysEpdq\\Essential',1,1,10000,0,NULL,0,0),(46,'2017-07-17 14:14:38','2017-07-17 14:14:38','Cardgate','Cardgate',1,1,10000,0,NULL,0,0),(47,'2017-07-17 14:14:38','2017-07-17 14:14:38','Checkout.com','CheckoutCom',1,1,10000,0,NULL,0,0),(48,'2017-07-17 14:14:38','2017-07-17 14:14:38','Creditcall','Creditcall',1,1,10000,0,NULL,0,0),(49,'2017-07-17 14:14:38','2017-07-17 14:14:38','Cybersource','Cybersource',1,1,10000,0,NULL,0,0),(50,'2017-07-17 14:14:38','2017-07-17 14:14:38','ecoPayz','Ecopayz',1,1,10000,0,NULL,0,0),(51,'2017-07-17 14:14:38','2017-07-17 14:14:38','Fasapay','Fasapay',1,1,10000,0,NULL,0,0),(52,'2017-07-17 14:14:38','2017-07-17 14:14:38','Komoju','Komoju',1,1,10000,0,NULL,0,0),(53,'2017-07-17 14:14:38','2017-07-17 14:14:38','Multicards','Multicards',1,1,10000,0,NULL,0,0),(54,'2017-07-17 14:14:38','2017-07-17 14:14:38','Pagar.Me','Pagarme',1,2,10000,0,NULL,0,0),(55,'2017-07-17 14:14:38','2017-07-17 14:14:38','Paysafecard','Paysafecard',1,1,10000,0,NULL,0,0),(56,'2017-07-17 14:14:38','2017-07-17 14:14:38','Paytrace','Paytrace_CreditCard',1,1,10000,0,NULL,0,0),(57,'2017-07-17 14:14:38','2017-07-17 14:14:38','Secure Trading','SecureTrading',1,1,10000,0,NULL,0,0),(58,'2017-07-17 14:14:38','2017-07-17 14:14:38','SecPay','SecPay',1,1,10000,0,NULL,0,0),(59,'2017-07-17 14:14:38','2017-07-17 14:14:38','WeChat Express','WeChat_Express',1,2,10000,0,NULL,0,0),(60,'2017-07-17 14:14:38','2017-07-17 14:14:38','WePay','WePay',1,1,10000,0,NULL,0,0),(61,'2017-07-17 14:14:38','2017-07-17 14:14:38','Braintree','Braintree',1,1,2,0,NULL,0,0),(62,'2017-07-17 14:14:38','2017-07-17 14:14:38','Custom','Custom',1,1,8,0,NULL,1,0),(63,'2017-07-17 14:14:38','2017-07-17 14:14:38','FirstData Payeezy','FirstData_Payeezy',1,1,10000,0,NULL,0,0); /*!40000 ALTER TABLE `gateways` ENABLE KEYS */; UNLOCK TABLES; @@ -1233,7 +1239,7 @@ CREATE TABLE `industries` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1242,7 +1248,7 @@ CREATE TABLE `industries` ( LOCK TABLES `industries` WRITE; /*!40000 ALTER TABLE `industries` DISABLE KEYS */; -INSERT INTO `industries` VALUES (1,'Accounting & Legal'),(2,'Advertising'),(3,'Aerospace'),(4,'Agriculture'),(5,'Automotive'),(6,'Banking & Finance'),(7,'Biotechnology'),(8,'Broadcasting'),(9,'Business Services'),(10,'Commodities & Chemicals'),(11,'Communications'),(12,'Computers & Hightech'),(13,'Defense'),(14,'Energy'),(15,'Entertainment'),(16,'Government'),(17,'Healthcare & Life Sciences'),(18,'Insurance'),(19,'Manufacturing'),(20,'Marketing'),(21,'Media'),(22,'Nonprofit & Higher Ed'),(23,'Pharmaceuticals'),(24,'Professional Services & Consulting'),(25,'Real Estate'),(26,'Retail & Wholesale'),(27,'Sports'),(28,'Transportation'),(29,'Travel & Luxury'),(30,'Other'),(31,'Photography'),(32,'Construction'); +INSERT INTO `industries` VALUES (1,'Accounting & Legal'),(2,'Advertising'),(3,'Aerospace'),(4,'Agriculture'),(5,'Automotive'),(6,'Banking & Finance'),(7,'Biotechnology'),(8,'Broadcasting'),(9,'Business Services'),(10,'Commodities & Chemicals'),(11,'Communications'),(12,'Computers & Hightech'),(13,'Defense'),(14,'Energy'),(15,'Entertainment'),(16,'Government'),(17,'Healthcare & Life Sciences'),(18,'Insurance'),(19,'Manufacturing'),(20,'Marketing'),(21,'Media'),(22,'Nonprofit & Higher Ed'),(23,'Pharmaceuticals'),(24,'Professional Services & Consulting'),(25,'Real Estate'),(26,'Retail & Wholesale'),(27,'Sports'),(28,'Transportation'),(29,'Travel & Luxury'),(30,'Other'),(31,'Photography'),(32,'Construction'),(33,'Restaurant & Catering'); /*!40000 ALTER TABLE `industries` ENABLE KEYS */; UNLOCK TABLES; @@ -1316,7 +1322,7 @@ CREATE TABLE `invoice_designs` ( LOCK TABLES `invoice_designs` WRITE; /*!40000 ALTER TABLE `invoice_designs` DISABLE KEYS */; -INSERT INTO `invoice_designs` VALUES (1,'Clean','var GlobalY=0;//Y position of line at current page\n\n var client = invoice.client;\n var account = invoice.account;\n var currencyId = client.currency_id;\n\n layout.headerRight = 550;\n layout.rowHeight = 15;\n\n doc.setFontSize(9);\n\n if (invoice.image)\n {\n var left = layout.headerRight - invoice.imageWidth;\n doc.addImage(invoice.image, \'JPEG\', layout.marginLeft, 30);\n }\n \n if (!invoice.is_pro && logoImages.imageLogo1)\n {\n pageHeight=820;\n y=pageHeight-logoImages.imageLogoHeight1;\n doc.addImage(logoImages.imageLogo1, \'JPEG\', layout.marginLeft, y, logoImages.imageLogoWidth1, logoImages.imageLogoHeight1);\n }\n\n doc.setFontSize(9);\n SetPdfColor(\'LightBlue\', doc, \'primary\');\n displayAccount(doc, invoice, 220, layout.accountTop, layout);\n\n SetPdfColor(\'LightBlue\', doc, \'primary\');\n doc.setFontSize(\'11\');\n doc.text(50, layout.headerTop, (invoice.is_quote ? invoiceLabels.quote : invoiceLabels.invoice).toUpperCase());\n\n\n SetPdfColor(\'Black\',doc); //set black color\n doc.setFontSize(9);\n\n var invoiceHeight = displayInvoice(doc, invoice, 50, 170, layout);\n var clientHeight = displayClient(doc, invoice, 220, 170, layout);\n var detailsHeight = Math.max(invoiceHeight, clientHeight);\n layout.tableTop = Math.max(layout.tableTop, layout.headerTop + detailsHeight + (3 * layout.rowHeight));\n \n doc.setLineWidth(0.3); \n doc.setDrawColor(200,200,200);\n doc.line(layout.marginLeft - layout.tablePadding, layout.headerTop + 6, layout.marginRight + layout.tablePadding, layout.headerTop + 6);\n doc.line(layout.marginLeft - layout.tablePadding, layout.headerTop + detailsHeight + 14, layout.marginRight + layout.tablePadding, layout.headerTop + detailsHeight + 14);\n\n doc.setFontSize(10);\n doc.setFontType(\'bold\');\n displayInvoiceHeader(doc, invoice, layout);\n var y = displayInvoiceItems(doc, invoice, layout);\n\n doc.setFontSize(9);\n doc.setFontType(\'bold\');\n\n GlobalY=GlobalY+25;\n\n\n doc.setLineWidth(0.3);\n doc.setDrawColor(241,241,241);\n doc.setFillColor(241,241,241);\n var x1 = layout.marginLeft - 12;\n var y1 = GlobalY-layout.tablePadding;\n\n var w2 = 510 + 24;\n var h2 = doc.internal.getFontSize()*3+layout.tablePadding*2;\n\n if (invoice.discount) {\n h2 += doc.internal.getFontSize()*2;\n }\n if (invoice.tax_amount) {\n h2 += doc.internal.getFontSize()*2;\n }\n\n //doc.rect(x1, y1, w2, h2, \'FD\');\n\n doc.setFontSize(9);\n displayNotesAndTerms(doc, layout, invoice, y);\n y += displaySubtotals(doc, layout, invoice, y, layout.unitCostRight);\n\n\n doc.setFontSize(10);\n Msg = invoice.is_quote ? invoiceLabels.total : invoiceLabels.balance_due;\n var TmpMsgX = layout.unitCostRight-(doc.getStringUnitWidth(Msg) * doc.internal.getFontSize());\n \n doc.text(TmpMsgX, y, Msg);\n\n SetPdfColor(\'LightBlue\', doc, \'primary\');\n AmountText = formatMoney(invoice.balance_amount, currencyId);\n headerLeft=layout.headerRight+400;\n var AmountX = layout.lineTotalRight - (doc.getStringUnitWidth(AmountText) * doc.internal.getFontSize());\n doc.text(AmountX, y, AmountText);','{\n \"content\": [{\n \"columns\": [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80]\n },\n {\n \"stack\": \"$accountDetails\",\n \"margin\": [7, 0, 0, 0]\n },\n {\n \"stack\": \"$accountAddress\"\n }\n ]\n },\n {\n \"text\": \"$entityTypeUC\",\n \"margin\": [8, 30, 8, 5],\n \"style\": \"entityTypeLabel\"\n \n },\n {\n \"table\": {\n \"headerRows\": 1,\n \"widths\": [\"auto\", \"auto\", \"*\"],\n \"body\": [\n [\n {\n \"table\": { \n \"body\": \"$invoiceDetails\"\n },\n \"margin\": [0, 0, 12, 0],\n \"layout\": \"noBorders\"\n }, \n {\n \"stack\": \"$clientDetails\"\n },\n {\n \"text\": \"\"\n }\n ]\n ]\n },\n \"layout\": {\n \"hLineWidth\": \"$firstAndLast:.5\",\n \"vLineWidth\": \"$none\",\n \"hLineColor\": \"#D8D8D8\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:6\", \n \"paddingBottom\": \"$amount:6\"\n }\n },\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$notFirst:.5\",\n \"vLineWidth\": \"$none\",\n \"hLineColor\": \"#D8D8D8\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:14\", \n \"paddingBottom\": \"$amount:14\" \n }\n },\n {\n \"columns\": [ \n \"$notesAndTerms\",\n {\n \"table\": {\n \"widths\": [\"*\", \"40%\"],\n \"body\": \"$subtotals\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:4\", \n \"paddingBottom\": \"$amount:4\" \n }\n }\n ]\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"defaultStyle\": {\n \"font\": \"$bodyFont\",\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"footer\": {\n \"columns\": [\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\"\n }\n ],\n \"margin\": [40, -20, 40, 0]\n },\n \"styles\": {\n \"entityTypeLabel\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"$primaryColor:#37a3c6\"\n },\n \"primaryColor\":{\n \"color\": \"$primaryColor:#37a3c6\"\n },\n \"accountName\": {\n \"color\": \"$primaryColor:#37a3c6\",\n \"bold\": true\n },\n \"invoiceDetails\": {\n \"margin\": [0, 0, 8, 0]\n }, \n \"accountDetails\": {\n \"margin\": [0, 2, 0, 2]\n },\n \"clientDetails\": {\n \"margin\": [0, 2, 0, 2]\n },\n \"notesAndTerms\": {\n \"margin\": [0, 2, 0, 2]\n },\n \"accountAddress\": {\n \"margin\": [0, 2, 0, 2]\n },\n \"odd\": {\n \"fillColor\": \"#fbfbfb\"\n },\n \"productKey\": {\n \"color\": \"$primaryColor:#37a3c6\",\n \"bold\": true\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLarger\",\n \"color\": \"$primaryColor:#37a3c6\"\n }, \n \"invoiceNumber\": {\n \"bold\": true\n },\n \"tableHeader\": {\n \"bold\": true,\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"taxTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n }, \n \"invoiceLineItemsTable\": {\n \"margin\": [0, 16, 0, 16]\n },\n \"clientName\": {\n \"bold\": true\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n }, \n \"termsLabel\": {\n \"bold\": true\n },\n \"header\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n },\n \"invoiceDocuments\": {\n \"margin\": [7, 0, 7, 0]\n },\n \"invoiceDocument\": {\n \"margin\": [0, 10, 0, 10]\n }\n },\n \"pageMargins\": [40, 40, 40, 60]\n}\n'),(2,'Bold',' var GlobalY=0;//Y position of line at current page\n\n var client = invoice.client;\n var account = invoice.account;\n var currencyId = client.currency_id;\n\n layout.headerRight = 150;\n layout.rowHeight = 15;\n layout.headerTop = 125;\n layout.tableTop = 300;\n\n doc.setLineWidth(0.5);\n\n if (NINJA.primaryColor) {\n setDocHexFill(doc, NINJA.primaryColor);\n setDocHexDraw(doc, NINJA.primaryColor);\n } else {\n doc.setFillColor(46,43,43);\n } \n\n var x1 =0;\n var y1 = 0;\n var w2 = 595;\n var h2 = 100;\n doc.rect(x1, y1, w2, h2, \'FD\');\n\n if (invoice.image)\n {\n var left = layout.headerRight - invoice.imageWidth;\n doc.addImage(invoice.image, \'JPEG\', layout.marginLeft, 30);\n }\n\n doc.setLineWidth(0.5);\n if (NINJA.primaryColor) {\n setDocHexFill(doc, NINJA.primaryColor);\n setDocHexDraw(doc, NINJA.primaryColor);\n } else {\n doc.setFillColor(46,43,43);\n doc.setDrawColor(46,43,43);\n } \n\n // return doc.setTextColor(240,240,240);//select color Custom Report GRAY Colour\n var x1 = 0;//tableLeft-tablePadding ;\n var y1 = 750;\n var w2 = 596;\n var h2 = 94;//doc.internal.getFontSize()*length+length*1.1;//+h;//+tablePadding;\n\n doc.rect(x1, y1, w2, h2, \'FD\');\n if (!invoice.is_pro && logoImages.imageLogo2)\n {\n pageHeight=820;\n var left = 250;//headerRight ;\n y=pageHeight-logoImages.imageLogoHeight2;\n var headerRight=370;\n\n var left = headerRight - logoImages.imageLogoWidth2;\n doc.addImage(logoImages.imageLogo2, \'JPEG\', left, y, logoImages.imageLogoWidth2, logoImages.imageLogoHeight2);\n }\n\n doc.setFontSize(7);\n doc.setFontType(\'bold\');\n SetPdfColor(\'White\',doc);\n\n displayAccount(doc, invoice, 300, layout.accountTop, layout);\n\n\n var y = layout.accountTop;\n var left = layout.marginLeft;\n var headerY = layout.headerTop;\n\n SetPdfColor(\'GrayLogo\',doc); //set black color\n doc.setFontSize(7);\n\n //show left column\n SetPdfColor(\'Black\',doc); //set black color\n doc.setFontType(\'normal\');\n\n //publish filled box\n doc.setDrawColor(200,200,200);\n\n if (NINJA.secondaryColor) {\n setDocHexFill(doc, NINJA.secondaryColor);\n } else {\n doc.setFillColor(54,164,152); \n } \n\n GlobalY=190;\n doc.setLineWidth(0.5);\n\n var BlockLenght=220;\n var x1 =595-BlockLenght;\n var y1 = GlobalY-12;\n var w2 = BlockLenght;\n var h2 = getInvoiceDetailsHeight(invoice, layout) + layout.tablePadding + 2;\n\n doc.rect(x1, y1, w2, h2, \'FD\');\n\n SetPdfColor(\'SomeGreen\', doc, \'secondary\');\n doc.setFontSize(\'14\');\n doc.setFontType(\'bold\');\n doc.text(50, GlobalY, (invoice.is_quote ? invoiceLabels.your_quote : invoiceLabels.your_invoice).toUpperCase());\n\n\n var z=GlobalY;\n z=z+30;\n\n doc.setFontSize(\'8\'); \n SetPdfColor(\'Black\',doc); \n var clientHeight = displayClient(doc, invoice, layout.marginLeft, z, layout);\n layout.tableTop += Math.max(0, clientHeight - 75);\n marginLeft2=395;\n\n //publish left side information\n SetPdfColor(\'White\',doc);\n doc.setFontSize(\'8\');\n var detailsHeight = displayInvoice(doc, invoice, marginLeft2, z-25, layout) + 75;\n layout.tableTop = Math.max(layout.tableTop, layout.headerTop + detailsHeight + (2 * layout.tablePadding));\n\n y=z+60;\n x = GlobalY + 100;\n doc.setFontType(\'bold\');\n\n doc.setFontSize(12);\n doc.setFontType(\'bold\');\n SetPdfColor(\'Black\',doc);\n displayInvoiceHeader(doc, invoice, layout);\n\n var y = displayInvoiceItems(doc, invoice, layout);\n doc.setLineWidth(0.3);\n displayNotesAndTerms(doc, layout, invoice, y);\n y += displaySubtotals(doc, layout, invoice, y, layout.unitCostRight);\n\n doc.setFontType(\'bold\');\n\n doc.setFontSize(12);\n x += doc.internal.getFontSize()*4;\n Msg = invoice.is_quote ? invoiceLabels.total : invoiceLabels.balance_due;\n var TmpMsgX = layout.unitCostRight-(doc.getStringUnitWidth(Msg) * doc.internal.getFontSize());\n\n doc.text(TmpMsgX, y, Msg);\n\n //SetPdfColor(\'LightBlue\',doc);\n AmountText = formatMoney(invoice.balance_amount , currencyId);\n headerLeft=layout.headerRight+400;\n var AmountX = headerLeft - (doc.getStringUnitWidth(AmountText) * doc.internal.getFontSize());\n SetPdfColor(\'SomeGreen\', doc, \'secondary\');\n doc.text(AmountX, y, AmountText);','{\n \"content\": [\n {\n \"columns\": [\n {\n \"width\": 380,\n \"stack\": [\n {\"text\":\"$yourInvoiceLabelUC\", \"style\": \"yourInvoice\"},\n \"$clientDetails\"\n ],\n \"margin\": [60, 100, 0, 10]\n },\n {\n \"canvas\": [\n { \n \"type\": \"rect\", \n \"x\": 0, \n \"y\": 0, \n \"w\": 225, \n \"h\": \"$invoiceDetailsHeight\",\n \"r\":0, \n \"lineWidth\": 1,\n \"color\": \"$primaryColor:#36a498\"\n }\n ],\n \"width\":10,\n \"margin\":[-10,100,0,10]\n },\n { \n \"table\": { \n \"body\": \"$invoiceDetails\"\n },\n \"layout\": \"noBorders\",\n \"margin\": [0, 110, 0, 0]\n }\n ]\n },\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": [\"22%\", \"*\", \"14%\", \"$quantityWidth\", \"$taxWidth\", \"22%\"],\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:14\", \n \"paddingBottom\": \"$amount:14\"\n }\n },\n {\n \"columns\": [\n {\n \"width\": 46,\n \"text\": \" \"\n },\n \"$notesAndTerms\",\n {\n \"table\": {\n \"widths\": [\"*\", \"40%\"],\n \"body\": \"$subtotals\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:4\", \n \"paddingBottom\": \"$amount:4\" \n }\n }]\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"footer\":\n [\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 0, \"x2\": 600, \"y2\": 0,\"lineWidth\": 100,\"lineColor\":\"$secondaryColor:#292526\"}]},\n {\n \"columns\":\n [\n {\n \"text\": \"$invoiceFooter\",\n \"margin\": [40, -40, 40, 0],\n \"alignment\": \"left\",\n \"color\": \"#FFFFFF\"\n }\n ]\n }\n ],\n \"header\": [\n {\n \"canvas\": [\n {\n \"type\": \"line\",\n \"x1\": 0,\n \"y1\": 0,\n \"x2\": 600,\n \"y2\": 0,\n \"lineWidth\": 200,\n \"lineColor\": \"$secondaryColor:#292526\"\n }\n ],\n \"width\": 10\n },\n {\n \"columns\": [\n { \n \"image\": \"$accountLogo\",\n \"fit\": [120, 60],\n \"margin\": [30, 16, 0, 0]\n },\n {\n \"stack\": \"$accountDetails\",\n \"margin\": [\n 0,\n 16,\n 0,\n 0\n ],\n \"width\": 140\n },\n {\n \"stack\": \"$accountAddress\",\n \"margin\": [\n 20,\n 16,\n 0,\n 0\n ]\n }\n ]\n }\n ],\n \"defaultStyle\": {\n \"font\": \"$bodyFont\",\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"primaryColor\":{\n \"color\": \"$primaryColor:#36a498\"\n },\n \"accountName\": {\n \"bold\": true,\n \"margin\": [4, 2, 4, 1],\n \"color\": \"$primaryColor:#36a498\"\n },\n \"accountDetails\": {\n \"margin\": [4, 2, 4, 1],\n \"color\": \"#FFFFFF\"\n },\n \"accountAddress\": {\n \"margin\": [4, 2, 4, 1],\n \"color\": \"#FFFFFF\"\n },\n \"clientDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"odd\": {\n \"fillColor\": \"#ebebeb\",\n \"margin\": [0,0,0,0]\n },\n \"productKey\": {\n \"color\": \"$primaryColor:#36a498\"\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"$primaryColor:#36a498\",\n \"bold\": true\n },\n \"invoiceDetails\": {\n \"color\": \"#ffffff\"\n },\n \"invoiceNumber\": {\n \"bold\": true\n },\n \"itemTableHeader\": {\n \"margin\": [40,0,0,0]\n },\n \"totalTableHeader\": {\n \"margin\": [0,0,40,0]\n },\n \"tableHeader\": {\n \"fontSize\": 12,\n \"bold\": true\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"taxTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\",\n \"margin\": [0, 0, 40, 0]\n },\n \"productKey\": {\n \"color\": \"$primaryColor:#36a498\",\n \"margin\": [40,0,0,0],\n \"bold\": true\n },\n \"yourInvoice\": {\n \"font\": \"$headerFont\",\n \"bold\": true, \n \"fontSize\": 14, \n \"color\": \"$primaryColor:#36a498\",\n \"margin\": [0,0,0,8]\n },\n \"invoiceLineItemsTable\": {\n \"margin\": [0, 26, 0, 16]\n },\n \"clientName\": {\n \"bold\": true\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\",\n \"margin\": [0, 0, 40, 0]\n },\n \"subtotals\": {\n \"alignment\": \"right\",\n \"margin\": [0,0,40,0]\n },\n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"header\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n },\n \"invoiceDocuments\": {\n \"margin\": [47, 0, 47, 0]\n },\n \"invoiceDocument\": {\n \"margin\": [0, 10, 0, 10]\n }\n },\n \"pageMargins\": [0, 80, 0, 40]\n }'),(3,'Modern',' var client = invoice.client;\n var account = invoice.account;\n var currencyId = client.currency_id;\n\n layout.headerRight = 400;\n layout.rowHeight = 15;\n\n\n doc.setFontSize(7);\n\n // add header\n doc.setLineWidth(0.5);\n\n if (NINJA.primaryColor) {\n setDocHexFill(doc, NINJA.primaryColor);\n setDocHexDraw(doc, NINJA.primaryColor);\n } else {\n doc.setDrawColor(242,101,34);\n doc.setFillColor(242,101,34);\n } \n\n var x1 =0;\n var y1 = 0;\n var w2 = 595;\n var h2 = Math.max(110, getInvoiceDetailsHeight(invoice, layout) + 30);\n doc.rect(x1, y1, w2, h2, \'FD\');\n\n SetPdfColor(\'White\',doc);\n\n //second column\n doc.setFontType(\'bold\');\n var name = invoice.account.name; \n if (name) {\n doc.setFontSize(\'30\');\n doc.setFontType(\'bold\');\n doc.text(40, 50, name);\n }\n\n if (invoice.image)\n {\n y=130;\n var left = layout.headerRight - invoice.imageWidth;\n doc.addImage(invoice.image, \'JPEG\', layout.marginLeft, y);\n }\n\n // add footer \n doc.setLineWidth(0.5);\n\n if (NINJA.primaryColor) {\n setDocHexFill(doc, NINJA.primaryColor);\n setDocHexDraw(doc, NINJA.primaryColor);\n } else {\n doc.setDrawColor(242,101,34);\n doc.setFillColor(242,101,34);\n } \n\n var x1 = 0;//tableLeft-tablePadding ;\n var y1 = 750;\n var w2 = 596;\n var h2 = 94;//doc.internal.getFontSize()*length+length*1.1;//+h;//+tablePadding;\n\n doc.rect(x1, y1, w2, h2, \'FD\');\n\n if (!invoice.is_pro && logoImages.imageLogo3)\n {\n pageHeight=820;\n // var left = 25;//250;//headerRight ;\n y=pageHeight-logoImages.imageLogoHeight3;\n //var headerRight=370;\n\n //var left = headerRight - invoice.imageLogoWidth3;\n doc.addImage(logoImages.imageLogo3, \'JPEG\', 40, y, logoImages.imageLogoWidth3, logoImages.imageLogoHeight3);\n }\n\n doc.setFontSize(10); \n var marginLeft = 340;\n displayAccount(doc, invoice, marginLeft, 780, layout);\n\n\n SetPdfColor(\'White\',doc); \n doc.setFontSize(\'8\');\n var detailsHeight = displayInvoice(doc, invoice, layout.headerRight, layout.accountTop-10, layout);\n layout.headerTop = Math.max(layout.headerTop, detailsHeight + 50);\n layout.tableTop = Math.max(layout.tableTop, detailsHeight + 150);\n\n SetPdfColor(\'Black\',doc); //set black color\n doc.setFontSize(7);\n doc.setFontType(\'normal\');\n displayClient(doc, invoice, layout.headerRight, layout.headerTop, layout);\n\n\n \n SetPdfColor(\'White\',doc); \n doc.setFontType(\'bold\');\n\n doc.setLineWidth(0.3);\n if (NINJA.secondaryColor) {\n setDocHexFill(doc, NINJA.secondaryColor);\n setDocHexDraw(doc, NINJA.secondaryColor);\n } else {\n doc.setDrawColor(63,60,60);\n doc.setFillColor(63,60,60);\n } \n\n var left = layout.marginLeft - layout.tablePadding;\n var top = layout.tableTop - layout.tablePadding;\n var width = layout.marginRight - (2 * layout.tablePadding);\n var height = 20;\n doc.rect(left, top, width, height, \'FD\');\n \n\n displayInvoiceHeader(doc, invoice, layout);\n SetPdfColor(\'Black\',doc);\n var y = displayInvoiceItems(doc, invoice, layout);\n\n\n var height1 = displayNotesAndTerms(doc, layout, invoice, y);\n var height2 = displaySubtotals(doc, layout, invoice, y, layout.unitCostRight);\n y += Math.max(height1, height2);\n\n\n var left = layout.marginLeft - layout.tablePadding;\n var top = y - layout.tablePadding;\n var width = layout.marginRight - (2 * layout.tablePadding);\n var height = 20;\n if (NINJA.secondaryColor) {\n setDocHexFill(doc, NINJA.secondaryColor);\n setDocHexDraw(doc, NINJA.secondaryColor);\n } else {\n doc.setDrawColor(63,60,60);\n doc.setFillColor(63,60,60);\n } \n doc.rect(left, top, width, height, \'FD\');\n \n doc.setFontType(\'bold\');\n SetPdfColor(\'White\', doc);\n doc.setFontSize(12);\n \n var label = invoice.is_quote ? invoiceLabels.total : invoiceLabels.balance_due;\n var labelX = layout.unitCostRight-(doc.getStringUnitWidth(label) * doc.internal.getFontSize());\n doc.text(labelX, y+2, label);\n\n\n doc.setFontType(\'normal\');\n var amount = formatMoney(invoice.balance_amount , currencyId);\n headerLeft=layout.headerRight+400;\n var amountX = layout.lineTotalRight - (doc.getStringUnitWidth(amount) * doc.internal.getFontSize());\n doc.text(amountX, y+2, amount);','{\n \"content\": [\n {\n \"columns\": [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80],\n \"margin\": [0, 60, 0, 30]\n },\n {\n \"stack\": \"$clientDetails\",\n \"margin\": [0, 60, 0, 0]\n }\n ]\n },\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$notFirst:.5\",\n \"vLineWidth\": \"$notFirstAndLastColumn:.5\",\n \"hLineColor\": \"#888888\",\n \"vLineColor\": \"#FFFFFF\",\n \"paddingLeft\": \"$amount:8\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:8\",\n \"paddingBottom\": \"$amount:8\"\n }\n },\n {\n \"columns\": [\n \"$notesAndTerms\",\n {\n \"table\": {\n \"widths\": [\"*\", \"40%\"],\n \"body\": \"$subtotalsWithoutBalance\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:4\",\n \"paddingBottom\": \"$amount:4\"\n }\n }\n ]\n },\n {\n \"columns\": [\n {\n \"canvas\": [\n {\n \"type\": \"rect\",\n \"x\": 0,\n \"y\": 0,\n \"w\": 515,\n \"h\": 26,\n \"r\": 0,\n \"lineWidth\": 1,\n \"color\": \"$secondaryColor:#403d3d\"\n }\n ],\n \"width\": 10,\n \"margin\": [\n 0,\n 10,\n 0,\n 0\n ]\n },\n {\n \"text\": \"$balanceDueLabel\",\n \"style\": \"subtotalsBalanceDueLabel\",\n \"margin\": [0, 16, 0, 0],\n \"width\": 370\n },\n {\n \"text\": \"$balanceDue\",\n \"style\": \"subtotalsBalanceDue\",\n \"margin\": [0, 16, 8, 0]\n }\n ]\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"footer\": [\n {\n \"canvas\": [\n {\n \"type\": \"line\", \"x1\": 0, \"y1\": 0, \"x2\": 600, \"y2\": 0,\"lineWidth\": 100,\"lineColor\":\"$primaryColor:#f26621\"\n }]\n ,\"width\":10\n },\n {\n \"columns\": [\n {\n \"width\": 350,\n \"stack\": [\n {\n \"text\": \"$invoiceFooter\",\n \"margin\": [40, -40, 40, 0],\n \"alignment\": \"left\",\n \"color\": \"#FFFFFF\"\n\n }\n ]\n },\n {\n \"stack\": \"$accountDetails\",\n \"margin\": [0, -40, 0, 0],\n \"width\": \"*\"\n },\n {\n \"stack\": \"$accountAddress\",\n \"margin\": [0, -40, 0, 0],\n \"width\": \"*\"\n }\n ]\n }\n ],\n \"header\": [\n {\n \"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 0, \"x2\": 600, \"y2\": 0,\"lineWidth\": 200,\"lineColor\":\"$primaryColor:#f26621\"}],\"width\":10\n },\n {\n \"columns\": [\n {\n \"text\": \"$accountName\", \"bold\": true,\"font\":\"$headerFont\",\"fontSize\":30,\"color\":\"#ffffff\",\"margin\":[40,20,0,0],\"width\":350\n }\n ]\n },\n {\n \"width\": 300,\n \"table\": {\n \"body\": \"$invoiceDetails\"\n },\n \"layout\": \"noBorders\",\n \"margin\": [400, -40, 0, 0]\n }\n ],\n \"defaultStyle\": {\n \"font\": \"$bodyFont\",\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"primaryColor\":{\n \"color\": \"$primaryColor:#299CC2\"\n },\n \"accountName\": {\n \"margin\": [4, 2, 4, 2],\n \"color\": \"$primaryColor:#299CC2\"\n },\n \"accountDetails\": {\n \"margin\": [4, 2, 4, 2],\n \"color\": \"#FFFFFF\"\n },\n \"accountAddress\": {\n \"margin\": [4, 2, 4, 2],\n \"color\": \"#FFFFFF\"\n },\n \"clientDetails\": {\n \"margin\": [0, 2, 4, 2]\n },\n \"invoiceDetails\": {\n \"color\": \"#FFFFFF\"\n },\n \"invoiceLineItemsTable\": {\n \"margin\": [0, 0, 0, 16]\n },\n \"productKey\": {\n \"bold\": true\n },\n \"clientName\": {\n \"bold\": true\n },\n \"tableHeader\": {\n \"bold\": true,\n \"color\": \"#FFFFFF\",\n \"fontSize\": \"$fontSizeLargest\",\n \"fillColor\": \"$secondaryColor:#403d3d\"\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"taxTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\":\"#FFFFFF\",\n \"alignment\":\"right\",\n \"bold\": true\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\":\"#FFFFFF\",\n \"bold\": true,\n \"alignment\":\"right\"\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n },\n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"invoiceNumberLabel\": {\n \"bold\": true\n },\n \"invoiceNumber\": {\n \"bold\": true\n },\n \"header\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n },\n \"invoiceDocuments\": {\n \"margin\": [7, 0, 7, 0]\n },\n \"invoiceDocument\": {\n \"margin\": [0, 10, 0, 10]\n }\n },\n \"pageMargins\": [40, 120, 40, 50]\n}\n'),(4,'Plain',' var client = invoice.client;\n var account = invoice.account;\n var currencyId = client.currency_id; \n \n layout.accountTop += 25;\n layout.headerTop += 25;\n layout.tableTop += 25;\n\n if (invoice.image)\n {\n var left = layout.headerRight - invoice.imageWidth;\n doc.addImage(invoice.image, \'JPEG\', left, 50);\n } \n \n /* table header */\n doc.setDrawColor(200,200,200);\n doc.setFillColor(230,230,230);\n \n var detailsHeight = getInvoiceDetailsHeight(invoice, layout);\n var left = layout.headerLeft - layout.tablePadding;\n var top = layout.headerTop + detailsHeight - layout.rowHeight - layout.tablePadding;\n var width = layout.headerRight - layout.headerLeft + (2 * layout.tablePadding);\n var height = layout.rowHeight + 1;\n doc.rect(left, top, width, height, \'FD\'); \n\n doc.setFontSize(10);\n doc.setFontType(\'normal\');\n\n displayAccount(doc, invoice, layout.marginLeft, layout.accountTop, layout);\n displayClient(doc, invoice, layout.marginLeft, layout.headerTop, layout);\n\n displayInvoice(doc, invoice, layout.headerLeft, layout.headerTop, layout, layout.headerRight);\n layout.tableTop = Math.max(layout.tableTop, layout.headerTop + detailsHeight + (2 * layout.tablePadding));\n\n var headerY = layout.headerTop;\n var total = 0;\n\n doc.setDrawColor(200,200,200);\n doc.setFillColor(230,230,230);\n var left = layout.marginLeft - layout.tablePadding;\n var top = layout.tableTop - layout.tablePadding;\n var width = layout.headerRight - layout.marginLeft + (2 * layout.tablePadding);\n var height = layout.rowHeight + 2;\n doc.rect(left, top, width, height, \'FD\'); \n\n displayInvoiceHeader(doc, invoice, layout);\n var y = displayInvoiceItems(doc, invoice, layout);\n\n doc.setFontSize(10);\n\n displayNotesAndTerms(doc, layout, invoice, y+20);\n\n y += displaySubtotals(doc, layout, invoice, y+20, 480) + 20;\n\n doc.setDrawColor(200,200,200);\n doc.setFillColor(230,230,230);\n \n var left = layout.footerLeft - layout.tablePadding;\n var top = y - layout.tablePadding;\n var width = layout.headerRight - layout.footerLeft + (2 * layout.tablePadding);\n var height = layout.rowHeight + 2;\n doc.rect(left, top, width, height, \'FD\'); \n \n doc.setFontType(\'bold\');\n doc.text(layout.footerLeft, y, invoice.is_quote ? invoiceLabels.total : invoiceLabels.balance_due);\n\n total = formatMoney(invoice.balance_amount, currencyId);\n var totalX = layout.headerRight - (doc.getStringUnitWidth(total) * doc.internal.getFontSize());\n doc.text(totalX, y, total); \n\n if (!invoice.is_pro) {\n doc.setFontType(\'normal\');\n doc.text(layout.marginLeft, 790, \'Created by InvoiceNinja.com\');\n }','{\n \"content\": [\n {\n \"columns\": [\n {\n \"stack\": \"$accountDetails\"\n },\n {\n \"stack\": \"$accountAddress\"\n },\n [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80]\n }\n ] \n ]},\n {\n \"columns\": [\n {\n \"width\": 340,\n \"stack\": \"$clientDetails\",\n \"margin\": [0,40,0,0]\n },\n {\n \"width\":200,\n \"table\": { \n \"body\": \"$invoiceDetails\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"hLineColor\": \"#E6E6E6\",\n \"paddingLeft\": \"$amount:10\", \n \"paddingRight\": \"$amount:10\"\n }\n }\n ]\n }, \n {\n \"canvas\": [{ \"type\": \"rect\", \"x\": 0, \"y\": 0, \"w\": 515, \"h\": 25,\"r\":0, \"lineWidth\": 1,\"color\":\"#e6e6e6\"}],\"width\":10,\"margin\":[0,30,0,-43]\n },\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$notFirst:1\",\n \"vLineWidth\": \"$none\",\n \"hLineColor\": \"#e6e6e6\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:8\", \n \"paddingBottom\": \"$amount:8\" \n }\n },\n {\n \"columns\": [\n \"$notesAndTerms\",\n {\n \"width\": 160,\n \"style\": \"subtotals\",\n \"table\": {\n \"widths\": [60, 60],\n \"body\": \"$subtotals\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:10\", \n \"paddingRight\": \"$amount:10\", \n \"paddingTop\": \"$amount:4\", \n \"paddingBottom\": \"$amount:4\" \n }\n }\n ]\n }, \n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"footer\": {\n \"columns\": [\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\",\n \"margin\": [0, 0, 0, 12]\n\n }\n ],\n \"margin\": [40, -20, 40, 40]\n },\n \"defaultStyle\": {\n \"font\": \"$bodyFont\",\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"primaryColor\":{\n \"color\": \"$primaryColor:#299CC2\"\n },\n \"accountDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"accountAddress\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"clientDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"tableHeader\": {\n \"bold\": true\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n }, \n \"invoiceLineItemsTable\": {\n \"margin\": [0, 16, 0, 16]\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n }, \n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"terms\": {\n \"margin\": [0, 0, 20, 0]\n },\n \"invoiceDetailBalanceDueLabel\": {\n \"fillColor\": \"#e6e6e6\"\n },\n \"invoiceDetailBalanceDue\": {\n \"fillColor\": \"#e6e6e6\"\n },\n \"subtotalsBalanceDueLabel\": {\n \"fillColor\": \"#e6e6e6\"\n },\n \"subtotalsBalanceDue\": {\n \"fillColor\": \"#e6e6e6\"\n },\n \"header\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n },\n \"invoiceDocuments\": {\n \"margin\": [7, 0, 7, 0]\n },\n \"invoiceDocument\": {\n \"margin\": [0, 10, 0, 10]\n }\n },\n \"pageMargins\": [40, 40, 40, 60]\n}\n'),(5,'Business',NULL,'{\n \"content\": [\n {\n \"columns\":\n [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80]\n },\n {\n \"width\": 300,\n \"stack\": \"$accountDetails\",\n \"margin\": [140, 0, 0, 0]\n },\n {\n \"width\": 150,\n \"stack\": \"$accountAddress\"\n }\n ]\n },\n {\n \"columns\": [\n {\n \"width\": 120,\n \"stack\": [\n {\"text\": \"$invoiceIssuedToLabel\", \"style\":\"issuedTo\"},\n \"$clientDetails\"\n ],\n \"margin\": [0, 20, 0, 0]\n },\n {\n \"canvas\": [{ \"type\": \"rect\", \"x\": 20, \"y\": 0, \"w\": 174, \"h\": \"$invoiceDetailsHeight\",\"r\":10, \"lineWidth\": 1,\"color\":\"$primaryColor:#eb792d\"}],\n \"width\":36,\n \"margin\":[200,25,0,0]\n },\n {\n \"table\": {\n \"widths\": [64, 70],\n \"body\": \"$invoiceDetails\"\n },\n \"layout\": \"noBorders\",\n \"margin\": [200, 34, 0, 0]\n }\n ]\n },\n {\"canvas\": [{ \"type\": \"rect\", \"x\": 0, \"y\": 0, \"w\": 515, \"h\": 32,\"r\":8, \"lineWidth\": 1,\"color\":\"$secondaryColor:#374e6b\"}],\"width\":10,\"margin\":[0,20,0,-45]},\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$notFirst:1\",\n \"vLineWidth\": \"$notFirst:.5\",\n \"hLineColor\": \"#FFFFFF\",\n \"vLineColor\": \"#FFFFFF\",\n \"paddingLeft\": \"$amount:8\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:12\",\n \"paddingBottom\": \"$amount:12\"\n }\n },\n {\n \"columns\": [\n \"$notesAndTerms\",\n {\n \"stack\": [\n {\n \"style\": \"subtotals\",\n \"table\": {\n \"widths\": [\"*\", \"35%\"],\n \"body\": \"$subtotalsWithoutBalance\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:4\",\n \"paddingBottom\": \"$amount:4\"\n }\n },\n {\n \"canvas\": [\n {\n \"type\": \"rect\",\n \"x\": 76,\n \"y\": 20,\n \"w\": 182,\n \"h\": 30,\n \"r\": 7,\n \"lineWidth\": 1,\n \"color\": \"$secondaryColor:#374e6b\"\n }\n ]\n },\n {\n \"style\": \"subtotalsBalance\",\n \"table\": {\n \"widths\": [\"*\", \"35%\"],\n \"body\": \"$subtotalsBalance\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:4\",\n \"paddingBottom\": \"$amount:4\"\n }\n }\n ]\n }\n ]\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"footer\": {\n \"columns\": [\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\"\n }\n ],\n \"margin\": [40, -20, 40, 0]\n },\n \"defaultStyle\": {\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"primaryColor\":{\n \"color\": \"$primaryColor:#299CC2\"\n },\n \"accountName\": {\n \"bold\": true\n },\n \"accountDetails\": {\n \"color\": \"#AAA9A9\",\n \"margin\": [0,2,0,1]\n },\n \"accountAddress\": {\n \"color\": \"#AAA9A9\",\n \"margin\": [0,2,0,1]\n },\n \"even\": {\n \"fillColor\":\"#E8E8E8\"\n },\n \"odd\": {\n \"fillColor\":\"#F7F7F7\"\n },\n \"productKey\": {\n \"bold\": true\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"#ffffff\",\n \"bold\": true\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true,\n \"color\":\"#ffffff\",\n \"alignment\":\"right\"\n },\n \"invoiceDetails\": {\n \"color\": \"#ffffff\"\n },\n \"tableHeader\": {\n \"color\": \"#ffffff\",\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"taxTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n },\n \"issuedTo\": {\n \"margin\": [0,2,0,1],\n \"bold\": true,\n \"color\": \"#374e6b\"\n },\n \"clientDetails\": {\n \"margin\": [0,2,0,1]\n },\n \"clientName\": {\n \"color\": \"$primaryColor:#eb792d\"\n },\n \"invoiceLineItemsTable\": {\n \"margin\": [0, 10, 0, 10]\n },\n \"invoiceDetailsValue\": {\n \"alignment\": \"right\"\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n },\n \"subtotalsBalance\": {\n \"alignment\": \"right\",\n \"margin\": [0, -25, 0, 0]\n },\n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"header\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n }\n },\n \"pageMargins\": [40, 40, 40, 40]\n}\n'),(6,'Creative',NULL,'{\n \"content\": [\n {\n \"columns\": [\n {\n \"stack\": \"$clientDetails\"\n },\n {\n \"stack\": \"$accountDetails\"\n },\n {\n \"stack\": \"$accountAddress\"\n },\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80],\n \"alignment\": \"right\"\n }\n ],\n \"margin\": [0, 0, 0, 20]\n },\n {\n \"columns\": [\n {\"text\":\n [\n {\"text\": \"$entityTypeUC\", \"style\": \"header1\"},\n {\"text\": \"#\", \"style\": \"header2\"},\n {\"text\": \"$invoiceNumber\", \"style\":\"header2\"}\n ],\n \"width\": \"*\"\n },\n {\n \"width\":200,\n \"table\": {\n \"body\": \"$invoiceDetails\"\n },\n \"layout\": \"noBorders\",\n \"margin\": [16, 4, 0, 0]\n }\n ],\n \"margin\": [0, 0, 0, 20]\n },\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 5, \"x2\": 515, \"y2\": 5, \"lineWidth\": 3,\"lineColor\":\"$primaryColor:#AE1E54\"}]},\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"hLineColor\": \"$primaryColor:#E8E8E8\",\n \"paddingLeft\": \"$amount:8\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:8\",\n \"paddingBottom\": \"$amount:8\"\n }\n },\n {\n \"columns\": [\n \"$notesAndTerms\",\n {\n \"style\": \"subtotals\",\n \"table\": {\n \"widths\": [\"*\", \"40%\"],\n \"body\": \"$subtotalsWithoutBalance\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:4\",\n \"paddingBottom\": \"$amount:4\"\n }\n }\n ]\n },\n {\n \"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 20, \"x2\": 515, \"y2\": 20, \"lineWidth\": 3,\"lineColor\":\"$primaryColor:#AE1E54\"}],\n \"margin\": [0, -8, 0, -8]\n },\n {\n \"text\": \"$balanceDueLabel\",\n \"style\": \"subtotalsBalanceDueLabel\"\n },\n {\n \"text\": \"$balanceDue\",\n \"style\": \"subtotalsBalanceDue\"\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"footer\": {\n \"columns\": [\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\"\n }\n ],\n \"margin\": [40, -20, 40, 0]\n },\n \"defaultStyle\": {\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"primaryColor\":{\n \"color\": \"$primaryColor:#AE1E54\"\n },\n \"accountName\": {\n \"margin\": [4, 2, 4, 2],\n \"color\": \"$primaryColor:#AE1E54\",\n \"bold\": true\n },\n \"accountDetails\": {\n \"margin\": [4, 2, 4, 2]\n },\n \"accountAddress\": {\n \"margin\": [4, 2, 4, 2]\n },\n \"odd\": {\n \"fillColor\":\"#F4F4F4\"\n },\n \"productKey\": {\n \"bold\": true\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"margin\": [320,20,0,0]\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"$primaryColor:#AE1E54\",\n \"bold\": true,\n \"margin\":[0,-10,10,0],\n \"alignment\": \"right\"\n },\n \"invoiceDetailBalanceDue\": {\n \"bold\": true,\n \"color\": \"$primaryColor:#AE1E54\"\n },\n \"invoiceDetailBalanceDueLabel\": {\n \"bold\": true\n },\n \"tableHeader\": {\n \"bold\": true,\n \"color\": \"$primaryColor:#AE1E54\",\n \"fontSize\": \"$fontSizeLargest\"\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"taxTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n },\n \"clientName\": {\n \"bold\": true\n },\n \"clientDetails\": {\n \"margin\": [0,2,0,1]\n },\n \"header1\": {\n \"bold\": true,\n \"margin\": [0, 30, 0, 16],\n \"fontSize\": 46\n },\n \"header2\": {\n \"margin\": [0, 30, 0, 16],\n \"fontSize\": 46,\n \"italics\": true,\n \"color\": \"$primaryColor:#AE1E54\"\n },\n \"invoiceLineItemsTable\": {\n \"margin\": [0, 4, 0, 16]\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n },\n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"header\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n }\n },\n \"pageMargins\": [40, 40, 40, 40]\n}\n'),(7,'Elegant',NULL,'{\n \"content\": [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80],\n \"alignment\": \"center\",\n \"margin\": [0, 0, 0, 30]\n },\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 5, \"x2\": 515, \"y2\": 5, \"lineWidth\": 2}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 3, \"x2\": 515, \"y2\": 3, \"lineWidth\": 1}]},\n {\n \"columns\": [\n {\n \"width\": 120,\n \"stack\": [\n {\"text\": \"$invoiceToLabel\", \"style\": \"header\", \"margin\": [0, 0, 0, 6]},\n \"$clientDetails\"\n ]\n },\n {\n \"width\": 10,\n \"canvas\": [{ \"type\": \"line\", \"x1\": -2, \"y1\": 18, \"x2\": -2, \"y2\": 80, \"lineWidth\": 1,\"dash\": { \"length\": 2 }}]\n },\n {\n \"width\": 120,\n \"stack\": \"$accountDetails\",\n \"margin\": [0, 20, 0, 0]\n },\n {\n \"width\": 110,\n \"stack\": \"$accountAddress\",\n \"margin\": [0, 20, 0, 0]\n },\n {\n \"stack\": [\n {\"text\": \"$detailsLabel\", \"style\": \"header\", \"margin\": [0, 0, 0, 6]},\n {\n \"width\":180,\n \"table\": {\n \"body\": \"$invoiceDetails\"\n },\n \"layout\": \"noBorders\"\n }\n ]\n }],\n \"margin\": [0, 20, 0, 0]\n },\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$notFirst:.5\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:8\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:12\",\n \"paddingBottom\": \"$amount:12\"\n }\n },\n {\n \"columns\": [\n \"$notesAndTerms\",\n {\n \"style\": \"subtotals\",\n \"table\": {\n \"widths\": [\"*\", \"40%\"],\n \"body\": \"$subtotalsWithoutBalance\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:4\",\n \"paddingBottom\": \"$amount:4\"\n }\n }\n ]\n },\n {\n \"canvas\": [{ \"type\": \"line\", \"x1\": 270, \"y1\": 20, \"x2\": 515, \"y2\": 20, \"lineWidth\": 1,\"dash\": { \"length\": 2 }}]\n },\n {\n \"text\": \"$balanceDueLabel\",\n \"style\": \"subtotalsBalanceDueLabel\"\n },\n {\n \"text\": \"$balanceDue\",\n \"style\": \"subtotalsBalanceDue\"\n },\n {\n \"canvas\": [{ \"type\": \"line\", \"x1\": 270, \"y1\": 20, \"x2\": 515, \"y2\": 20, \"lineWidth\": 1,\"dash\": { \"length\": 2 }}]\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }],\n \"footer\": [\n {\n \"columns\": [\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\"\n }\n ],\n \"margin\": [40, -20, 40, 0]\n },\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 35, \"y1\": 5, \"x2\": 555, \"y2\": 5, \"lineWidth\": 2,\"margin\": [30,0,0,0]}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 35, \"y1\": 3, \"x2\": 555, \"y2\": 3, \"lineWidth\": 1,\"margin\": [30,0,0,0]}]}\n ],\n \"defaultStyle\": {\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"accountDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"clientDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"accountAddress\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"clientName\": {\n \"bold\": true\n },\n \"accountName\": {\n \"bold\": true\n },\n \"odd\": {\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"$primaryColor:#5a7b61\",\n \"margin\": [320,20,0,0]\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"$primaryColor:#5a7b61\",\n \"style\": true,\n \"margin\":[0,-14,8,0],\n \"alignment\":\"right\"\n },\n \"invoiceDetailBalanceDue\": {\n \"color\": \"$primaryColor:#5a7b61\",\n \"bold\": true\n },\n \"header\": {\n \"fontSize\": 14,\n \"bold\": true\n },\n \"tableHeader\": {\n \"bold\": true,\n \"color\": \"$primaryColor:#5a7b61\",\n \"fontSize\": \"$fontSizeLargest\"\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"taxTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n },\n \"invoiceLineItemsTable\": {\n \"margin\": [0, 40, 0, 16]\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n },\n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"header\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n }\n },\n \"pageMargins\": [40, 40, 40, 40]\n}\n'),(8,'Hipster',NULL,'{\n \"content\": [\n {\n \"columns\": [\n {\n \"width\":10,\n \"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 0, \"x2\": 0, \"y2\": 75, \"lineWidth\": 0.5}]\n },\n {\n \"width\":120,\n \"stack\": [\n {\"text\": \"$fromLabelUC\", \"style\": \"fromLabel\"}, \n \"$accountDetails\" \n ]\n },\n {\n \"width\":120,\n \"stack\": [\n {\"text\": \" \"},\n \"$accountAddress\"\n ],\n \"margin\": [10, 0, 0, 16]\n },\n {\n \"width\":10,\n \"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 0, \"x2\": 0, \"y2\": 75, \"lineWidth\": 0.5}]\n },\n {\n \"stack\": [\n {\"text\": \"$toLabelUC\", \"style\": \"toLabel\"}, \n \"$clientDetails\"\n ]\n },\n [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80]\n }\n ]\n ]\n },\n {\n \"text\": \"$entityTypeUC\",\n \"margin\": [0, 4, 0, 8],\n \"bold\": \"true\",\n \"fontSize\": 42\n },\n {\n \"columnGap\": 16,\n \"columns\": [\n {\n \"width\":\"auto\",\n \"text\": [\"$invoiceNoLabel\",\" \",\"$invoiceNumberValue\"],\n \"bold\": true,\n \"color\":\"$primaryColor:#bc9f2b\",\n \"fontSize\":10\n },\n {\n \"width\":\"auto\",\n \"text\": [\"$invoiceDateLabel\",\" \",\"$invoiceDateValue\"],\n \"fontSize\":10\n },\n {\n \"width\":\"auto\",\n \"text\": [\"$dueDateLabel?\",\" \",\"$dueDateValue\"],\n \"fontSize\":10\n },\n {\n \"width\":\"*\",\n \"text\": [\"$balanceDueLabel\",\" \",{\"text\":\"$balanceDue\", \"bold\":true, \"color\":\"$primaryColor:#bc9f2b\"}],\n \"fontSize\":10\n }\n ]\n },\n {\n \"margin\": [0, 26, 0, 0],\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$amount:.5\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:8\", \n \"paddingBottom\": \"$amount:8\" \n }\n },\n {\n \"columns\": [\n {\n \"stack\": \"$notesAndTerms\",\n \"width\": \"*\",\n \"margin\": [0, 12, 0, 0]\n },\n {\n \"width\": 200,\n \"style\": \"subtotals\",\n \"table\": {\n \"widths\": [\"*\", \"36%\"],\n \"body\": \"$subtotals\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$notFirst:.5\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:12\", \n \"paddingBottom\": \"$amount:4\" \n }\n }\n ]\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"footer\": {\n \"columns\": [\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\"\n }\n ],\n \"margin\": [40, -20, 40, 0]\n },\n \"defaultStyle\": {\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"accountName\": {\n \"bold\": true\n },\n \"clientName\": {\n \"bold\": true\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"$primaryColor:#bc9f2b\",\n \"bold\": true\n },\n \"tableHeader\": {\n \"bold\": true,\n \"fontSize\": \"$fontSizeLargest\"\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"taxTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n }, \n \"fromLabel\": {\n \"color\": \"$primaryColor:#bc9f2b\",\n \"bold\": true \n },\n \"toLabel\": {\n \"color\": \"$primaryColor:#bc9f2b\",\n \"bold\": true \n },\n \"accountDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"accountAddress\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"clientDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n }, \n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 16, 0, 4]\n },\n \"header\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n }\n },\n \"pageMargins\": [40, 40, 40, 40]\n}'),(9,'Playful',NULL,'{\n \"content\": [\n {\n \"columns\": [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80]\n },\n {\"canvas\": [{ \"type\": \"rect\", \"x\": 0, \"y\": 0, \"w\": 190, \"h\": \"$invoiceDetailsHeight\",\"r\":5, \"lineWidth\": 1,\"color\":\"$primaryColor:#009d91\"}],\"width\":10,\"margin\":[200,0,0,0]},\n {\n \"width\":400,\n \"table\": { \n \"body\": \"$invoiceDetails\"\n },\n \"layout\": \"noBorders\",\n \"margin\": [210, 10, 10, 0]\n }\n ] \n },\n {\n \"margin\": [0, 18, 0, 0],\n \"columnGap\": 50,\n \"columns\": [\n {\n \"width\": 212,\n \"stack\": [\n {\"text\": \"$invoiceToLabel:\", \"style\": \"toLabel\"},\n {\n \"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 4, \"x2\": 150, \"y2\": 4, \"lineWidth\": 1,\"dash\": { \"length\": 3 },\"lineColor\":\"$primaryColor:#009d91\"}],\n \"margin\": [0, 0, 0, 4]\n },\n \"$clientDetails\",\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 9, \"x2\": 150, \"y2\": 9, \"lineWidth\": 1,\"dash\": { \"length\": 3 },\"lineColor\":\"$primaryColor:#009d91\"}]}\n ]\n },\n {\n \"width\": \"*\",\n \"stack\": [\n {\"text\": \"$fromLabel:\", \"style\": \"fromLabel\"},\n {\n \"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 4, \"x2\": 250, \"y2\": 4, \"lineWidth\": 1,\"dash\": { \"length\": 3 },\"lineColor\":\"$primaryColor:#009d91\"}],\n \"margin\": [0, 0, 0, 4]\n },\n {\"columns\":[\n \"$accountDetails\",\n \"$accountAddress\" \n ], \"columnGap\": 4}, \n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 9, \"x2\": 250, \"y2\": 9, \"lineWidth\": 1,\"dash\": { \"length\": 3 },\"lineColor\":\"$primaryColor:#009d91\"}]}\n ]\n }\n ]\n },\n {\"canvas\": [{ \"type\": \"rect\", \"x\": 0, \"y\": 0, \"w\": 515, \"h\": 35,\"r\":6, \"lineWidth\": 1,\"color\":\"$primaryColor:#009d91\"}],\"width\":10,\"margin\":[0,30,0,-30]},\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$notFirst:.5\",\n \"vLineWidth\": \"$none\",\n \"hLineColor\": \"$primaryColor:#009d91\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:8\", \n \"paddingBottom\": \"$amount:8\"\n }\n }, \n {\n \"columns\": [\n \"$notesAndTerms\",\n {\n \"stack\": [\n {\n \"style\": \"subtotals\",\n \"table\": {\n \"widths\": [\"*\", \"35%\"],\n \"body\": \"$subtotalsWithoutBalance\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:4\",\n \"paddingBottom\": \"$amount:4\"\n }\n },\n {\n \"canvas\": [\n {\n \"type\": \"rect\",\n \"x\": 76,\n \"y\": 20,\n \"w\": 182,\n \"h\": 30,\n \"r\": 4,\n \"lineWidth\": 1,\n \"color\": \"$primaryColor:#009d91\"\n }\n ]\n },\n {\n \"style\": \"subtotalsBalance\",\n \"table\": {\n \"widths\": [\"*\", \"35%\"],\n \"body\": \"$subtotalsBalance\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:4\",\n \"paddingBottom\": \"$amount:4\"\n }\n }\n ]\n }\n ]\n }, \n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n], \n \"footer\": [\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 38, \"x2\": 68, \"y2\": 38, \"lineWidth\": 6,\"lineColor\":\"#009d91\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 68, \"y1\": 0, \"x2\": 135, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#1d766f\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 135, \"y1\": 0, \"x2\": 201, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#ffb800\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 201, \"y1\": 0, \"x2\": 267, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#bf9730\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 267, \"y1\": 0, \"x2\": 333, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#ac2b50\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 333, \"y1\": 0, \"x2\": 399, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#e60042\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 399, \"y1\": 0, \"x2\": 465, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#ffb800\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 465, \"y1\": 0, \"x2\": 532, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#009d91\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 532, \"y1\": 0, \"x2\": 600, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#ac2b50\"}]},\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\",\n \"margin\": [40, -60, 40, 0]\n }\n ],\n \"header\": [\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 0, \"x2\": 68, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#009d91\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 68, \"y1\": 0, \"x2\": 135, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#1d766f\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 135, \"y1\": 0, \"x2\": 201, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#ffb800\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 201, \"y1\": 0, \"x2\": 267, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#bf9730\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 267, \"y1\": 0, \"x2\": 333, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#ac2b50\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 333, \"y1\": 0, \"x2\": 399, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#e60042\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 399, \"y1\": 0, \"x2\": 465, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#ffb800\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 465, \"y1\": 0, \"x2\": 532, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#009d91\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 532, \"y1\": 0, \"x2\": 600, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#ac2b50\"}]}\n ],\n \"defaultStyle\": {\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"accountName\": {\n \"color\": \"$secondaryColor:#bb3328\"\n },\n \"accountDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"accountAddress\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"clientDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"clientName\": {\n \"color\": \"$secondaryColor:#bb3328\"\n },\n \"even\": {\n \"fillColor\":\"#E8E8E8\"\n },\n \"odd\": {\n \"fillColor\":\"#F7F7F7\"\n },\n \"productKey\": {\n \"color\": \"$secondaryColor:#bb3328\"\n },\n \"lineTotal\": {\n \"bold\": true\n },\n \"tableHeader\": {\n \"bold\": true,\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"#FFFFFF\"\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n }, \n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\":\"#FFFFFF\",\n \"bold\": true\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true,\n \"color\":\"#FFFFFF\",\n \"alignment\":\"right\"\n },\n \"invoiceDetails\": {\n \"color\": \"#FFFFFF\"\n },\n \"invoiceLineItemsTable\": {\n \"margin\": [0, 0, 0, 16]\n },\n \"invoiceDetailBalanceDueLabel\": {\n \"bold\": true\n },\n \"invoiceDetailBalanceDue\": {\n \"bold\": true\n },\n \"fromLabel\": {\n \"color\": \"$primaryColor:#009d91\"\n },\n \"toLabel\": {\n \"color\": \"$primaryColor:#009d91\"\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n }, \n \"subtotalsBalance\": {\n \"alignment\": \"right\",\n \"margin\": [0, -25, 0, 0]\n }, \n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"header\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n }\n },\n \"pageMargins\": [40, 40, 40, 40]\n}'),(10,'Photo',NULL,'{\n \"content\": [\n {\n \"columns\": [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80]\n },\n {\n \"text\": \"\",\n \"width\": \"*\"\n },\n {\n \"width\":180,\n \"table\": { \n \"body\": \"$invoiceDetails\"\n },\n \"layout\": \"noBorders\"\n }]\n },\n {\n \"image\": \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCAEZA4QDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAw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R/wAX1pF+6n0/pQAp7dCaQ4PUjPapE/1R+n+FQDqfoKAJQFyc+mc0Ke2CSfWkbt9KkH3V+tAERIz19hThg4PUUxfut9TUif6pP896AEHfnt2pyg99uT396IfvP9f8Klj/AIv9+gCuMhvQZqRSMcd+oph6r/u/1p9v/q2+tAEsibogxIHHJFV0J3A8881ZH/Hoah/5aH8aAOy8PzxtbhWxv96vahZbmVh0B/Wue8Nf6411d32/36APU/hTdCPSriHJwBkD07196/CW6W68MWbfeIjHJ+lfn98Kf9VP/uj+tfePwS/5FK2/3F/kK5avRm0D0URbucgfjRUbfeNFcxrc/9k=\",\n \"margin\": [-40, 16, 0, 0],\n \"width\": 595\n },\n {\n \"margin\": [-20, -150, 0, 0],\n \"columnGap\": 8,\n \"columns\": [\n {\n \"width\": \"auto\",\n \"text\": \"$toLabel:\",\n \"style\": \"bold\",\n \"color\":\"#cd5138\"\n },\n {\n \"width\": \"*\",\n \"stack\": \"$clientDetails\",\n \"margin\": [4, 0, 0, 0]\n }\n ]\n },\n {\n \"margin\": [-20, 10, 0, 140],\n \"columnGap\": 8,\n \"columns\": [\n {\n \"width\": \"auto\",\n \"text\": \"$fromLabel:\",\n \"style\": \"bold\",\n \"color\":\"#cd5138\"\n },\n {\n \"width\": \"*\",\n \"stack\": [\n {\n \"width\": 150,\n \"stack\": \"$accountDetails\"\n },\n {\n \"width\": 150,\n \"stack\": \"$accountAddress\"\n }\n ]\n }\n ]\n },\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 5, \"x2\": 515, \"y2\": 5, \"lineWidth\": 1.5}],\"margin\":[0,0,0,-30]},\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$notFirst:.5\",\n \"vLineWidth\": \"$none\",\n \"hLineColor\": \"#000000\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:10\", \n \"paddingBottom\": \"$amount:10\" \n }\n },\n {\n \"columns\": [\n \"$notesAndTerms\",\n {\n \"alignment\": \"right\",\n \"table\": {\n \"widths\": [\"*\", \"40%\"],\n \"body\": \"$subtotals\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:4\", \n \"paddingBottom\": \"$amount:4\" \n }\n }]\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"defaultStyle\": {\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"footer\": {\n \"columns\": [\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\"\n }\n ],\n \"margin\": [40, -20, 40, 0]\n },\n \"styles\": {\n \"accountDetails\": {\n \"margin\": [0, 0, 0, 3]\n },\n \"accountAddress\": {\n \"margin\": [0, 0, 0, 3]\n },\n \"clientDetails\": {\n \"margin\": [0, 0, 0, 3]\n },\n \"productKey\": {\n \"color\": \"$primaryColor:#cd5138\"\n },\n \"lineTotal\": {\n \"color\": \"$primaryColor:#cd5138\"\n },\n \"tableHeader\": {\n \"bold\": true,\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\"\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"$primaryColor:#cd5138\"\n },\n \"invoiceLineItemsTable\": {\n \"margin\": [0, 0, 0, 16]\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"header\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n }\n },\n \"pageMargins\": [40, 30, 40, 30]\n}\n'),(11,'Custom1',NULL,NULL),(12,'Custom2',NULL,NULL),(13,'Custom3',NULL,NULL); +INSERT INTO `invoice_designs` VALUES (1,'Clean','var GlobalY=0;//Y position of line at current page\n\n var client = invoice.client;\n var account = invoice.account;\n var currencyId = client.currency_id;\n\n layout.headerRight = 550;\n layout.rowHeight = 15;\n\n doc.setFontSize(9);\n\n if (invoice.image)\n {\n var left = layout.headerRight - invoice.imageWidth;\n doc.addImage(invoice.image, \'JPEG\', layout.marginLeft, 30);\n }\n \n if (!invoice.is_pro && logoImages.imageLogo1)\n {\n pageHeight=820;\n y=pageHeight-logoImages.imageLogoHeight1;\n doc.addImage(logoImages.imageLogo1, \'JPEG\', layout.marginLeft, y, logoImages.imageLogoWidth1, logoImages.imageLogoHeight1);\n }\n\n doc.setFontSize(9);\n SetPdfColor(\'LightBlue\', doc, \'primary\');\n displayAccount(doc, invoice, 220, layout.accountTop, layout);\n\n SetPdfColor(\'LightBlue\', doc, \'primary\');\n doc.setFontSize(\'11\');\n doc.text(50, layout.headerTop, (invoice.is_quote ? invoiceLabels.quote : invoiceLabels.invoice).toUpperCase());\n\n\n SetPdfColor(\'Black\',doc); //set black color\n doc.setFontSize(9);\n\n var invoiceHeight = displayInvoice(doc, invoice, 50, 170, layout);\n var clientHeight = displayClient(doc, invoice, 220, 170, layout);\n var detailsHeight = Math.max(invoiceHeight, clientHeight);\n layout.tableTop = Math.max(layout.tableTop, layout.headerTop + detailsHeight + (3 * layout.rowHeight));\n \n doc.setLineWidth(0.3); \n doc.setDrawColor(200,200,200);\n doc.line(layout.marginLeft - layout.tablePadding, layout.headerTop + 6, layout.marginRight + layout.tablePadding, layout.headerTop + 6);\n doc.line(layout.marginLeft - layout.tablePadding, layout.headerTop + detailsHeight + 14, layout.marginRight + layout.tablePadding, layout.headerTop + detailsHeight + 14);\n\n doc.setFontSize(10);\n doc.setFontType(\'bold\');\n displayInvoiceHeader(doc, invoice, layout);\n var y = displayInvoiceItems(doc, invoice, layout);\n\n doc.setFontSize(9);\n doc.setFontType(\'bold\');\n\n GlobalY=GlobalY+25;\n\n\n doc.setLineWidth(0.3);\n doc.setDrawColor(241,241,241);\n doc.setFillColor(241,241,241);\n var x1 = layout.marginLeft - 12;\n var y1 = GlobalY-layout.tablePadding;\n\n var w2 = 510 + 24;\n var h2 = doc.internal.getFontSize()*3+layout.tablePadding*2;\n\n if (invoice.discount) {\n h2 += doc.internal.getFontSize()*2;\n }\n if (invoice.tax_amount) {\n h2 += doc.internal.getFontSize()*2;\n }\n\n //doc.rect(x1, y1, w2, h2, \'FD\');\n\n doc.setFontSize(9);\n displayNotesAndTerms(doc, layout, invoice, y);\n y += displaySubtotals(doc, layout, invoice, y, layout.unitCostRight);\n\n\n doc.setFontSize(10);\n Msg = invoice.is_quote ? invoiceLabels.total : invoiceLabels.balance_due;\n var TmpMsgX = layout.unitCostRight-(doc.getStringUnitWidth(Msg) * doc.internal.getFontSize());\n \n doc.text(TmpMsgX, y, Msg);\n\n SetPdfColor(\'LightBlue\', doc, \'primary\');\n AmountText = formatMoney(invoice.balance_amount, currencyId);\n headerLeft=layout.headerRight+400;\n var AmountX = layout.lineTotalRight - (doc.getStringUnitWidth(AmountText) * doc.internal.getFontSize());\n doc.text(AmountX, y, AmountText);','{\n \"content\": [{\n \"columns\": [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80]\n },\n {\n \"stack\": \"$accountDetails\",\n \"margin\": [7, 0, 0, 0]\n },\n {\n \"stack\": \"$accountAddress\"\n }\n ]\n },\n {\n \"text\": \"$entityTypeUC\",\n \"margin\": [8, 30, 8, 5],\n \"style\": \"entityTypeLabel\"\n \n },\n {\n \"table\": {\n \"headerRows\": 1,\n \"widths\": [\"auto\", \"auto\", \"*\"],\n \"body\": [\n [\n {\n \"table\": { \n \"body\": \"$invoiceDetails\"\n },\n \"margin\": [0, 0, 12, 0],\n \"layout\": \"noBorders\"\n }, \n {\n \"stack\": \"$clientDetails\"\n },\n {\n \"text\": \"\"\n }\n ]\n ]\n },\n \"layout\": {\n \"hLineWidth\": \"$firstAndLast:.5\",\n \"vLineWidth\": \"$none\",\n \"hLineColor\": \"#D8D8D8\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:6\", \n \"paddingBottom\": \"$amount:6\"\n }\n },\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$notFirst:.5\",\n \"vLineWidth\": \"$none\",\n \"hLineColor\": \"#D8D8D8\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:14\", \n \"paddingBottom\": \"$amount:14\" \n }\n },\n {\n \"columns\": [ \n \"$notesAndTerms\",\n {\n \"table\": {\n \"widths\": [\"*\", \"40%\"],\n \"body\": \"$subtotals\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:4\", \n \"paddingBottom\": \"$amount:4\" \n }\n }\n ]\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"defaultStyle\": {\n \"font\": \"$bodyFont\",\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"footer\": {\n \"columns\": [\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\"\n }\n ],\n \"margin\": [40, -20, 40, 0]\n },\n \"styles\": {\n \"entityTypeLabel\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"$primaryColor:#37a3c6\"\n },\n \"primaryColor\":{\n \"color\": \"$primaryColor:#37a3c6\"\n },\n \"accountName\": {\n \"color\": \"$primaryColor:#37a3c6\",\n \"bold\": true\n },\n \"invoiceDetails\": {\n \"margin\": [0, 0, 8, 0]\n }, \n \"accountDetails\": {\n \"margin\": [0, 2, 0, 2]\n },\n \"clientDetails\": {\n \"margin\": [0, 2, 0, 2]\n },\n \"notesAndTerms\": {\n \"margin\": [0, 2, 0, 2]\n },\n \"accountAddress\": {\n \"margin\": [0, 2, 0, 2]\n },\n \"odd\": {\n \"fillColor\": \"#fbfbfb\"\n },\n \"productKey\": {\n \"color\": \"$primaryColor:#37a3c6\",\n \"bold\": true\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLarger\",\n \"color\": \"$primaryColor:#37a3c6\"\n }, \n \"invoiceNumber\": {\n \"bold\": true\n },\n \"tableHeader\": {\n \"bold\": true,\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"taxTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n }, \n \"invoiceLineItemsTable\": {\n \"margin\": [0, 16, 0, 16]\n },\n \"clientName\": {\n \"bold\": true\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n }, \n \"termsLabel\": {\n \"bold\": true\n },\n \"header\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n },\n \"invoiceDocuments\": {\n \"margin\": [7, 0, 7, 0]\n },\n \"invoiceDocument\": {\n \"margin\": [0, 10, 0, 10]\n }\n },\n \"pageMargins\": [40, 40, 40, 60]\n}\n'),(2,'Bold',' var GlobalY=0;//Y position of line at current page\n\n var client = invoice.client;\n var account = invoice.account;\n var currencyId = client.currency_id;\n\n layout.headerRight = 150;\n layout.rowHeight = 15;\n layout.headerTop = 125;\n layout.tableTop = 300;\n\n doc.setLineWidth(0.5);\n\n if (NINJA.primaryColor) {\n setDocHexFill(doc, NINJA.primaryColor);\n setDocHexDraw(doc, NINJA.primaryColor);\n } else {\n doc.setFillColor(46,43,43);\n } \n\n var x1 =0;\n var y1 = 0;\n var w2 = 595;\n var h2 = 100;\n doc.rect(x1, y1, w2, h2, \'FD\');\n\n if (invoice.image)\n {\n var left = layout.headerRight - invoice.imageWidth;\n doc.addImage(invoice.image, \'JPEG\', layout.marginLeft, 30);\n }\n\n doc.setLineWidth(0.5);\n if (NINJA.primaryColor) {\n setDocHexFill(doc, NINJA.primaryColor);\n setDocHexDraw(doc, NINJA.primaryColor);\n } else {\n doc.setFillColor(46,43,43);\n doc.setDrawColor(46,43,43);\n } \n\n // return doc.setTextColor(240,240,240);//select color Custom Report GRAY Colour\n var x1 = 0;//tableLeft-tablePadding ;\n var y1 = 750;\n var w2 = 596;\n var h2 = 94;//doc.internal.getFontSize()*length+length*1.1;//+h;//+tablePadding;\n\n doc.rect(x1, y1, w2, h2, \'FD\');\n if (!invoice.is_pro && logoImages.imageLogo2)\n {\n pageHeight=820;\n var left = 250;//headerRight ;\n y=pageHeight-logoImages.imageLogoHeight2;\n var headerRight=370;\n\n var left = headerRight - logoImages.imageLogoWidth2;\n doc.addImage(logoImages.imageLogo2, \'JPEG\', left, y, logoImages.imageLogoWidth2, logoImages.imageLogoHeight2);\n }\n\n doc.setFontSize(7);\n doc.setFontType(\'bold\');\n SetPdfColor(\'White\',doc);\n\n displayAccount(doc, invoice, 300, layout.accountTop, layout);\n\n\n var y = layout.accountTop;\n var left = layout.marginLeft;\n var headerY = layout.headerTop;\n\n SetPdfColor(\'GrayLogo\',doc); //set black color\n doc.setFontSize(7);\n\n //show left column\n SetPdfColor(\'Black\',doc); //set black color\n doc.setFontType(\'normal\');\n\n //publish filled box\n doc.setDrawColor(200,200,200);\n\n if (NINJA.secondaryColor) {\n setDocHexFill(doc, NINJA.secondaryColor);\n } else {\n doc.setFillColor(54,164,152); \n } \n\n GlobalY=190;\n doc.setLineWidth(0.5);\n\n var BlockLenght=220;\n var x1 =595-BlockLenght;\n var y1 = GlobalY-12;\n var w2 = BlockLenght;\n var h2 = getInvoiceDetailsHeight(invoice, layout) + layout.tablePadding + 2;\n\n doc.rect(x1, y1, w2, h2, \'FD\');\n\n SetPdfColor(\'SomeGreen\', doc, \'secondary\');\n doc.setFontSize(\'14\');\n doc.setFontType(\'bold\');\n doc.text(50, GlobalY, (invoice.is_quote ? invoiceLabels.your_quote : invoiceLabels.your_invoice).toUpperCase());\n\n\n var z=GlobalY;\n z=z+30;\n\n doc.setFontSize(\'8\'); \n SetPdfColor(\'Black\',doc); \n var clientHeight = displayClient(doc, invoice, layout.marginLeft, z, layout);\n layout.tableTop += Math.max(0, clientHeight - 75);\n marginLeft2=395;\n\n //publish left side information\n SetPdfColor(\'White\',doc);\n doc.setFontSize(\'8\');\n var detailsHeight = displayInvoice(doc, invoice, marginLeft2, z-25, layout) + 75;\n layout.tableTop = Math.max(layout.tableTop, layout.headerTop + detailsHeight + (2 * layout.tablePadding));\n\n y=z+60;\n x = GlobalY + 100;\n doc.setFontType(\'bold\');\n\n doc.setFontSize(12);\n doc.setFontType(\'bold\');\n SetPdfColor(\'Black\',doc);\n displayInvoiceHeader(doc, invoice, layout);\n\n var y = displayInvoiceItems(doc, invoice, layout);\n doc.setLineWidth(0.3);\n displayNotesAndTerms(doc, layout, invoice, y);\n y += displaySubtotals(doc, layout, invoice, y, layout.unitCostRight);\n\n doc.setFontType(\'bold\');\n\n doc.setFontSize(12);\n x += doc.internal.getFontSize()*4;\n Msg = invoice.is_quote ? invoiceLabels.total : invoiceLabels.balance_due;\n var TmpMsgX = layout.unitCostRight-(doc.getStringUnitWidth(Msg) * doc.internal.getFontSize());\n\n doc.text(TmpMsgX, y, Msg);\n\n //SetPdfColor(\'LightBlue\',doc);\n AmountText = formatMoney(invoice.balance_amount , currencyId);\n headerLeft=layout.headerRight+400;\n var AmountX = headerLeft - (doc.getStringUnitWidth(AmountText) * doc.internal.getFontSize());\n SetPdfColor(\'SomeGreen\', doc, \'secondary\');\n doc.text(AmountX, y, AmountText);','{\n \"content\": [\n {\n \"columns\": [\n {\n \"width\": 380,\n \"stack\": [\n {\"text\":\"$yourInvoiceLabelUC\", \"style\": \"yourInvoice\"},\n \"$clientDetails\"\n ],\n \"margin\": [60, 100, 0, 10]\n },\n {\n \"canvas\": [\n { \n \"type\": \"rect\", \n \"x\": 0, \n \"y\": 0, \n \"w\": 225, \n \"h\": \"$invoiceDetailsHeight\",\n \"r\":0, \n \"lineWidth\": 1,\n \"color\": \"$primaryColor:#36a498\"\n }\n ],\n \"width\":10,\n \"margin\":[-10,100,0,10]\n },\n { \n \"table\": { \n \"body\": \"$invoiceDetails\"\n },\n \"layout\": \"noBorders\",\n \"margin\": [0, 110, 0, 0]\n }\n ]\n },\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": [\"22%\", \"*\", \"14%\", \"$quantityWidth\", \"$taxWidth\", \"22%\"],\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:14\", \n \"paddingBottom\": \"$amount:14\"\n }\n },\n {\n \"columns\": [\n {\n \"width\": 46,\n \"text\": \" \"\n },\n \"$notesAndTerms\",\n {\n \"table\": {\n \"widths\": [\"*\", \"40%\"],\n \"body\": \"$subtotals\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:4\", \n \"paddingBottom\": \"$amount:4\" \n }\n }]\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"footer\":\n [\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 0, \"x2\": 600, \"y2\": 0,\"lineWidth\": 100,\"lineColor\":\"$secondaryColor:#292526\"}]},\n {\n \"columns\":\n [\n {\n \"text\": \"$invoiceFooter\",\n \"margin\": [40, -40, 40, 0],\n \"alignment\": \"left\",\n \"color\": \"#FFFFFF\"\n }\n ]\n }\n ],\n \"header\": [\n {\n \"canvas\": [\n {\n \"type\": \"line\",\n \"x1\": 0,\n \"y1\": 0,\n \"x2\": 600,\n \"y2\": 0,\n \"lineWidth\": 200,\n \"lineColor\": \"$secondaryColor:#292526\"\n }\n ],\n \"width\": 10\n },\n {\n \"columns\": [\n { \n \"image\": \"$accountLogo\",\n \"fit\": [120, 60],\n \"margin\": [30, 16, 0, 0]\n },\n {\n \"stack\": \"$accountDetails\",\n \"margin\": [\n 0,\n 16,\n 0,\n 0\n ],\n \"width\": 140\n },\n {\n \"stack\": \"$accountAddress\",\n \"margin\": [\n 20,\n 16,\n 0,\n 0\n ]\n }\n ]\n }\n ],\n \"defaultStyle\": {\n \"font\": \"$bodyFont\",\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"primaryColor\":{\n \"color\": \"$primaryColor:#36a498\"\n },\n \"accountName\": {\n \"bold\": true,\n \"margin\": [4, 2, 4, 1],\n \"color\": \"$primaryColor:#36a498\"\n },\n \"accountDetails\": {\n \"margin\": [4, 2, 4, 1],\n \"color\": \"#FFFFFF\"\n },\n \"accountAddress\": {\n \"margin\": [4, 2, 4, 1],\n \"color\": \"#FFFFFF\"\n },\n \"clientDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"odd\": {\n \"fillColor\": \"#ebebeb\",\n \"margin\": [0,0,0,0]\n },\n \"productKey\": {\n \"color\": \"$primaryColor:#36a498\"\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"$primaryColor:#36a498\",\n \"bold\": true\n },\n \"invoiceDetails\": {\n \"color\": \"#ffffff\"\n },\n \"invoiceNumber\": {\n \"bold\": true\n },\n \"itemTableHeader\": {\n \"margin\": [40,0,0,0]\n },\n \"totalTableHeader\": {\n \"margin\": [0,0,40,0]\n },\n \"tableHeader\": {\n \"fontSize\": 12,\n \"bold\": true\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"taxTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\",\n \"margin\": [0, 0, 40, 0]\n },\n \"productKey\": {\n \"color\": \"$primaryColor:#36a498\",\n \"margin\": [40,0,0,0],\n \"bold\": true\n },\n \"yourInvoice\": {\n \"font\": \"$headerFont\",\n \"bold\": true, \n \"fontSize\": 14, \n \"color\": \"$primaryColor:#36a498\",\n \"margin\": [0,0,0,8]\n },\n \"invoiceLineItemsTable\": {\n \"margin\": [0, 26, 0, 16]\n },\n \"clientName\": {\n \"bold\": true\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\",\n \"margin\": [0, 0, 40, 0]\n },\n \"subtotals\": {\n \"alignment\": \"right\",\n \"margin\": [0,0,40,0]\n },\n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"header\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n },\n \"invoiceDocuments\": {\n \"margin\": [47, 0, 47, 0]\n },\n \"invoiceDocument\": {\n \"margin\": [0, 10, 0, 10]\n }\n },\n \"pageMargins\": [0, 80, 0, 40]\n }'),(3,'Modern',' var client = invoice.client;\n var account = invoice.account;\n var currencyId = client.currency_id;\n\n layout.headerRight = 400;\n layout.rowHeight = 15;\n\n\n doc.setFontSize(7);\n\n // add header\n doc.setLineWidth(0.5);\n\n if (NINJA.primaryColor) {\n setDocHexFill(doc, NINJA.primaryColor);\n setDocHexDraw(doc, NINJA.primaryColor);\n } else {\n doc.setDrawColor(242,101,34);\n doc.setFillColor(242,101,34);\n } \n\n var x1 =0;\n var y1 = 0;\n var w2 = 595;\n var h2 = Math.max(110, getInvoiceDetailsHeight(invoice, layout) + 30);\n doc.rect(x1, y1, w2, h2, \'FD\');\n\n SetPdfColor(\'White\',doc);\n\n //second column\n doc.setFontType(\'bold\');\n var name = invoice.account.name; \n if (name) {\n doc.setFontSize(\'30\');\n doc.setFontType(\'bold\');\n doc.text(40, 50, name);\n }\n\n if (invoice.image)\n {\n y=130;\n var left = layout.headerRight - invoice.imageWidth;\n doc.addImage(invoice.image, \'JPEG\', layout.marginLeft, y);\n }\n\n // add footer \n doc.setLineWidth(0.5);\n\n if (NINJA.primaryColor) {\n setDocHexFill(doc, NINJA.primaryColor);\n setDocHexDraw(doc, NINJA.primaryColor);\n } else {\n doc.setDrawColor(242,101,34);\n doc.setFillColor(242,101,34);\n } \n\n var x1 = 0;//tableLeft-tablePadding ;\n var y1 = 750;\n var w2 = 596;\n var h2 = 94;//doc.internal.getFontSize()*length+length*1.1;//+h;//+tablePadding;\n\n doc.rect(x1, y1, w2, h2, \'FD\');\n\n if (!invoice.is_pro && logoImages.imageLogo3)\n {\n pageHeight=820;\n // var left = 25;//250;//headerRight ;\n y=pageHeight-logoImages.imageLogoHeight3;\n //var headerRight=370;\n\n //var left = headerRight - invoice.imageLogoWidth3;\n doc.addImage(logoImages.imageLogo3, \'JPEG\', 40, y, logoImages.imageLogoWidth3, logoImages.imageLogoHeight3);\n }\n\n doc.setFontSize(10); \n var marginLeft = 340;\n displayAccount(doc, invoice, marginLeft, 780, layout);\n\n\n SetPdfColor(\'White\',doc); \n doc.setFontSize(\'8\');\n var detailsHeight = displayInvoice(doc, invoice, layout.headerRight, layout.accountTop-10, layout);\n layout.headerTop = Math.max(layout.headerTop, detailsHeight + 50);\n layout.tableTop = Math.max(layout.tableTop, detailsHeight + 150);\n\n SetPdfColor(\'Black\',doc); //set black color\n doc.setFontSize(7);\n doc.setFontType(\'normal\');\n displayClient(doc, invoice, layout.headerRight, layout.headerTop, layout);\n\n\n \n SetPdfColor(\'White\',doc); \n doc.setFontType(\'bold\');\n\n doc.setLineWidth(0.3);\n if (NINJA.secondaryColor) {\n setDocHexFill(doc, NINJA.secondaryColor);\n setDocHexDraw(doc, NINJA.secondaryColor);\n } else {\n doc.setDrawColor(63,60,60);\n doc.setFillColor(63,60,60);\n } \n\n var left = layout.marginLeft - layout.tablePadding;\n var top = layout.tableTop - layout.tablePadding;\n var width = layout.marginRight - (2 * layout.tablePadding);\n var height = 20;\n doc.rect(left, top, width, height, \'FD\');\n \n\n displayInvoiceHeader(doc, invoice, layout);\n SetPdfColor(\'Black\',doc);\n var y = displayInvoiceItems(doc, invoice, layout);\n\n\n var height1 = displayNotesAndTerms(doc, layout, invoice, y);\n var height2 = displaySubtotals(doc, layout, invoice, y, layout.unitCostRight);\n y += Math.max(height1, height2);\n\n\n var left = layout.marginLeft - layout.tablePadding;\n var top = y - layout.tablePadding;\n var width = layout.marginRight - (2 * layout.tablePadding);\n var height = 20;\n if (NINJA.secondaryColor) {\n setDocHexFill(doc, NINJA.secondaryColor);\n setDocHexDraw(doc, NINJA.secondaryColor);\n } else {\n doc.setDrawColor(63,60,60);\n doc.setFillColor(63,60,60);\n } \n doc.rect(left, top, width, height, \'FD\');\n \n doc.setFontType(\'bold\');\n SetPdfColor(\'White\', doc);\n doc.setFontSize(12);\n \n var label = invoice.is_quote ? invoiceLabels.total : invoiceLabels.balance_due;\n var labelX = layout.unitCostRight-(doc.getStringUnitWidth(label) * doc.internal.getFontSize());\n doc.text(labelX, y+2, label);\n\n\n doc.setFontType(\'normal\');\n var amount = formatMoney(invoice.balance_amount , currencyId);\n headerLeft=layout.headerRight+400;\n var amountX = layout.lineTotalRight - (doc.getStringUnitWidth(amount) * doc.internal.getFontSize());\n doc.text(amountX, y+2, amount);','{\n \"content\": [\n {\n \"columns\": [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80],\n \"margin\": [0, 60, 0, 30]\n },\n {\n \"stack\": \"$clientDetails\",\n \"margin\": [0, 60, 0, 0]\n }\n ]\n },\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$notFirst:.5\",\n \"vLineWidth\": \"$notFirstAndLastColumn:.5\",\n \"hLineColor\": \"#888888\",\n \"vLineColor\": \"#FFFFFF\",\n \"paddingLeft\": \"$amount:8\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:8\",\n \"paddingBottom\": \"$amount:8\"\n }\n },\n {\n \"columns\": [\n \"$notesAndTerms\",\n {\n \"table\": {\n \"widths\": [\"*\", \"40%\"],\n \"body\": \"$subtotalsWithoutBalance\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:4\",\n \"paddingBottom\": \"$amount:4\"\n }\n }\n ]\n },\n {\n \"columns\": [\n {\n \"canvas\": [\n {\n \"type\": \"rect\",\n \"x\": 0,\n \"y\": 0,\n \"w\": 515,\n \"h\": 26,\n \"r\": 0,\n \"lineWidth\": 1,\n \"color\": \"$secondaryColor:#403d3d\"\n }\n ],\n \"width\": 10,\n \"margin\": [\n 0,\n 10,\n 0,\n 0\n ]\n },\n {\n \"text\": \"$balanceDueLabel\",\n \"style\": \"subtotalsBalanceDueLabel\",\n \"margin\": [0, 16, 0, 0],\n \"width\": 370\n },\n {\n \"text\": \"$balanceDue\",\n \"style\": \"subtotalsBalanceDue\",\n \"margin\": [0, 16, 8, 0]\n }\n ]\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"footer\": [\n {\n \"canvas\": [\n {\n \"type\": \"line\", \"x1\": 0, \"y1\": 0, \"x2\": 600, \"y2\": 0,\"lineWidth\": 100,\"lineColor\":\"$primaryColor:#f26621\"\n }]\n ,\"width\":10\n },\n {\n \"columns\": [\n {\n \"width\": 350,\n \"stack\": [\n {\n \"text\": \"$invoiceFooter\",\n \"margin\": [40, -40, 40, 0],\n \"alignment\": \"left\",\n \"color\": \"#FFFFFF\"\n\n }\n ]\n },\n {\n \"stack\": \"$accountDetails\",\n \"margin\": [0, -40, 0, 0],\n \"width\": \"*\"\n },\n {\n \"stack\": \"$accountAddress\",\n \"margin\": [0, -40, 0, 0],\n \"width\": \"*\"\n }\n ]\n }\n ],\n \"header\": [\n {\n \"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 0, \"x2\": 600, \"y2\": 0,\"lineWidth\": 200,\"lineColor\":\"$primaryColor:#f26621\"}],\"width\":10\n },\n {\n \"columns\": [\n {\n \"text\": \"$accountName\", \"bold\": true,\"font\":\"$headerFont\",\"fontSize\":30,\"color\":\"#ffffff\",\"margin\":[40,20,0,0],\"width\":350\n }\n ]\n },\n {\n \"width\": 300,\n \"table\": {\n \"body\": \"$invoiceDetails\"\n },\n \"layout\": \"noBorders\",\n \"margin\": [400, -40, 0, 0]\n }\n ],\n \"defaultStyle\": {\n \"font\": \"$bodyFont\",\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"primaryColor\":{\n \"color\": \"$primaryColor:#299CC2\"\n },\n \"accountName\": {\n \"margin\": [4, 2, 4, 2],\n \"color\": \"$primaryColor:#299CC2\"\n },\n \"accountDetails\": {\n \"margin\": [4, 2, 4, 2],\n \"color\": \"#FFFFFF\"\n },\n \"accountAddress\": {\n \"margin\": [4, 2, 4, 2],\n \"color\": \"#FFFFFF\"\n },\n \"clientDetails\": {\n \"margin\": [0, 2, 4, 2]\n },\n \"invoiceDetails\": {\n \"color\": \"#FFFFFF\"\n },\n \"invoiceLineItemsTable\": {\n \"margin\": [0, 0, 0, 16]\n },\n \"productKey\": {\n \"bold\": true\n },\n \"clientName\": {\n \"bold\": true\n },\n \"tableHeader\": {\n \"bold\": true,\n \"color\": \"#FFFFFF\",\n \"fontSize\": \"$fontSizeLargest\",\n \"fillColor\": \"$secondaryColor:#403d3d\"\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"taxTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\":\"#FFFFFF\",\n \"alignment\":\"right\",\n \"bold\": true\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\":\"#FFFFFF\",\n \"bold\": true,\n \"alignment\":\"right\"\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n },\n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"invoiceNumberLabel\": {\n \"bold\": true\n },\n \"invoiceNumber\": {\n \"bold\": true\n },\n \"header\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n },\n \"invoiceDocuments\": {\n \"margin\": [7, 0, 7, 0]\n },\n \"invoiceDocument\": {\n \"margin\": [0, 10, 0, 10]\n }\n },\n \"pageMargins\": [40, 120, 40, 50]\n}\n'),(4,'Plain',' var client = invoice.client;\n var account = invoice.account;\n var currencyId = client.currency_id; \n \n layout.accountTop += 25;\n layout.headerTop += 25;\n layout.tableTop += 25;\n\n if (invoice.image)\n {\n var left = layout.headerRight - invoice.imageWidth;\n doc.addImage(invoice.image, \'JPEG\', left, 50);\n } \n \n /* table header */\n doc.setDrawColor(200,200,200);\n doc.setFillColor(230,230,230);\n \n var detailsHeight = getInvoiceDetailsHeight(invoice, layout);\n var left = layout.headerLeft - layout.tablePadding;\n var top = layout.headerTop + detailsHeight - layout.rowHeight - layout.tablePadding;\n var width = layout.headerRight - layout.headerLeft + (2 * layout.tablePadding);\n var height = layout.rowHeight + 1;\n doc.rect(left, top, width, height, \'FD\'); \n\n doc.setFontSize(10);\n doc.setFontType(\'normal\');\n\n displayAccount(doc, invoice, layout.marginLeft, layout.accountTop, layout);\n displayClient(doc, invoice, layout.marginLeft, layout.headerTop, layout);\n\n displayInvoice(doc, invoice, layout.headerLeft, layout.headerTop, layout, layout.headerRight);\n layout.tableTop = Math.max(layout.tableTop, layout.headerTop + detailsHeight + (2 * layout.tablePadding));\n\n var headerY = layout.headerTop;\n var total = 0;\n\n doc.setDrawColor(200,200,200);\n doc.setFillColor(230,230,230);\n var left = layout.marginLeft - layout.tablePadding;\n var top = layout.tableTop - layout.tablePadding;\n var width = layout.headerRight - layout.marginLeft + (2 * layout.tablePadding);\n var height = layout.rowHeight + 2;\n doc.rect(left, top, width, height, \'FD\'); \n\n displayInvoiceHeader(doc, invoice, layout);\n var y = displayInvoiceItems(doc, invoice, layout);\n\n doc.setFontSize(10);\n\n displayNotesAndTerms(doc, layout, invoice, y+20);\n\n y += displaySubtotals(doc, layout, invoice, y+20, 480) + 20;\n\n doc.setDrawColor(200,200,200);\n doc.setFillColor(230,230,230);\n \n var left = layout.footerLeft - layout.tablePadding;\n var top = y - layout.tablePadding;\n var width = layout.headerRight - layout.footerLeft + (2 * layout.tablePadding);\n var height = layout.rowHeight + 2;\n doc.rect(left, top, width, height, \'FD\'); \n \n doc.setFontType(\'bold\');\n doc.text(layout.footerLeft, y, invoice.is_quote ? invoiceLabels.total : invoiceLabels.balance_due);\n\n total = formatMoney(invoice.balance_amount, currencyId);\n var totalX = layout.headerRight - (doc.getStringUnitWidth(total) * doc.internal.getFontSize());\n doc.text(totalX, y, total); \n\n if (!invoice.is_pro) {\n doc.setFontType(\'normal\');\n doc.text(layout.marginLeft, 790, \'Created by InvoiceNinja.com\');\n }','{\n \"content\": [\n {\n \"columns\": [\n {\n \"stack\": \"$accountDetails\"\n },\n {\n \"stack\": \"$accountAddress\"\n },\n [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80]\n }\n ] \n ]},\n {\n \"columns\": [\n {\n \"width\": 340,\n \"stack\": \"$clientDetails\",\n \"margin\": [0,40,0,0]\n },\n {\n \"width\":200,\n \"table\": { \n \"body\": \"$invoiceDetails\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"hLineColor\": \"#E6E6E6\",\n \"paddingLeft\": \"$amount:10\", \n \"paddingRight\": \"$amount:10\"\n }\n }\n ]\n }, \n {\n \"canvas\": [{ \"type\": \"rect\", \"x\": 0, \"y\": 0, \"w\": 515, \"h\": 25,\"r\":0, \"lineWidth\": 1,\"color\":\"#e6e6e6\"}],\"width\":10,\"margin\":[0,30,0,-43]\n },\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$notFirst:1\",\n \"vLineWidth\": \"$none\",\n \"hLineColor\": \"#e6e6e6\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:8\", \n \"paddingBottom\": \"$amount:8\" \n }\n },\n {\n \"columns\": [\n \"$notesAndTerms\",\n {\n \"width\": 160,\n \"style\": \"subtotals\",\n \"table\": {\n \"widths\": [60, 60],\n \"body\": \"$subtotals\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:10\", \n \"paddingRight\": \"$amount:10\", \n \"paddingTop\": \"$amount:4\", \n \"paddingBottom\": \"$amount:4\" \n }\n }\n ]\n }, \n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"footer\": {\n \"columns\": [\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\",\n \"margin\": [0, 0, 0, 12]\n\n }\n ],\n \"margin\": [40, -20, 40, 40]\n },\n \"defaultStyle\": {\n \"font\": \"$bodyFont\",\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"primaryColor\":{\n \"color\": \"$primaryColor:#299CC2\"\n },\n \"accountDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"accountAddress\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"clientDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"tableHeader\": {\n \"bold\": true\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n }, \n \"invoiceLineItemsTable\": {\n \"margin\": [0, 16, 0, 16]\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n }, \n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"terms\": {\n \"margin\": [0, 0, 20, 0]\n },\n \"invoiceDetailBalanceDueLabel\": {\n \"fillColor\": \"#e6e6e6\"\n },\n \"invoiceDetailBalanceDue\": {\n \"fillColor\": \"#e6e6e6\"\n },\n \"subtotalsBalanceDueLabel\": {\n \"fillColor\": \"#e6e6e6\"\n },\n \"subtotalsBalanceDue\": {\n \"fillColor\": \"#e6e6e6\"\n },\n \"header\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"font\": \"$headerFont\",\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n },\n \"invoiceDocuments\": {\n \"margin\": [7, 0, 7, 0]\n },\n \"invoiceDocument\": {\n \"margin\": [0, 10, 0, 10]\n }\n },\n \"pageMargins\": [40, 40, 40, 60]\n}\n'),(5,'Business',NULL,'{\n \"content\": [\n {\n \"columns\":\n [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80]\n },\n {\n \"width\": 300,\n \"stack\": \"$accountDetails\",\n \"margin\": [140, 0, 0, 0]\n },\n {\n \"width\": 150,\n \"stack\": \"$accountAddress\"\n }\n ]\n },\n {\n \"columns\": [\n {\n \"width\": 120,\n \"stack\": [\n {\"text\": \"$invoiceIssuedToLabel\", \"style\":\"issuedTo\"},\n \"$clientDetails\"\n ],\n \"margin\": [0, 20, 0, 0]\n },\n {\n \"canvas\": [{ \"type\": \"rect\", \"x\": 20, \"y\": 0, \"w\": 174, \"h\": \"$invoiceDetailsHeight\",\"r\":10, \"lineWidth\": 1,\"color\":\"$primaryColor:#eb792d\"}],\n \"width\":30,\n \"margin\":[200,25,0,0]\n },\n {\n \"table\": {\n \"widths\": [70, 76],\n \"body\": \"$invoiceDetails\"\n },\n \"layout\": \"noBorders\",\n \"margin\": [200, 34, 0, 0]\n }\n ]\n },\n {\"canvas\": [{ \"type\": \"rect\", \"x\": 0, \"y\": 0, \"w\": 515, \"h\": 32,\"r\":8, \"lineWidth\": 1,\"color\":\"$secondaryColor:#374e6b\"}],\"width\":10,\"margin\":[0,20,0,-45]},\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$notFirst:1\",\n \"vLineWidth\": \"$notFirst:.5\",\n \"hLineColor\": \"#FFFFFF\",\n \"vLineColor\": \"#FFFFFF\",\n \"paddingLeft\": \"$amount:8\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:12\",\n \"paddingBottom\": \"$amount:12\"\n }\n },\n {\n \"columns\": [\n \"$notesAndTerms\",\n {\n \"stack\": [\n {\n \"style\": \"subtotals\",\n \"table\": {\n \"widths\": [\"*\", \"35%\"],\n \"body\": \"$subtotalsWithoutBalance\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:4\",\n \"paddingBottom\": \"$amount:4\"\n }\n },\n {\n \"canvas\": [\n {\n \"type\": \"rect\",\n \"x\": 76,\n \"y\": 20,\n \"w\": 182,\n \"h\": 30,\n \"r\": 7,\n \"lineWidth\": 1,\n \"color\": \"$secondaryColor:#374e6b\"\n }\n ]\n },\n {\n \"style\": \"subtotalsBalance\",\n \"table\": {\n \"widths\": [\"*\", \"35%\"],\n \"body\": \"$subtotalsBalance\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:4\",\n \"paddingBottom\": \"$amount:4\"\n }\n }\n ]\n }\n ]\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"footer\": {\n \"columns\": [\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\"\n }\n ],\n \"margin\": [40, -20, 40, 0]\n },\n \"defaultStyle\": {\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"primaryColor\":{\n \"color\": \"$primaryColor:#299CC2\"\n },\n \"accountName\": {\n \"bold\": true\n },\n \"accountDetails\": {\n \"color\": \"#AAA9A9\",\n \"margin\": [0,2,0,1]\n },\n \"accountAddress\": {\n \"color\": \"#AAA9A9\",\n \"margin\": [0,2,0,1]\n },\n \"even\": {\n \"fillColor\":\"#E8E8E8\"\n },\n \"odd\": {\n \"fillColor\":\"#F7F7F7\"\n },\n \"productKey\": {\n \"bold\": true\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"#ffffff\",\n \"bold\": true\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true,\n \"color\":\"#ffffff\",\n \"alignment\":\"right\"\n },\n \"invoiceDetails\": {\n \"color\": \"#ffffff\"\n },\n \"tableHeader\": {\n \"color\": \"#ffffff\",\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"secondTableHeader\": {\n \"color\": \"$secondaryColor:#374e6b\"\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"taxTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n },\n \"issuedTo\": {\n \"margin\": [0,2,0,1],\n \"bold\": true,\n \"color\": \"#374e6b\"\n },\n \"clientDetails\": {\n \"margin\": [0,2,0,1]\n },\n \"clientName\": {\n \"color\": \"$primaryColor:#eb792d\"\n },\n \"invoiceLineItemsTable\": {\n \"margin\": [0, 10, 0, 10]\n },\n \"invoiceDetailsValue\": {\n \"alignment\": \"right\"\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n },\n \"subtotalsBalance\": {\n \"alignment\": \"right\",\n \"margin\": [0, -25, 0, 0]\n },\n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"header\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n }\n },\n \"pageMargins\": [40, 40, 40, 40]\n}\n'),(6,'Creative',NULL,'{\n \"content\": [\n {\n \"columns\": [\n {\n \"stack\": \"$clientDetails\"\n },\n {\n \"stack\": \"$accountDetails\"\n },\n {\n \"stack\": \"$accountAddress\"\n },\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80],\n \"alignment\": \"right\"\n }\n ],\n \"margin\": [0, 0, 0, 20]\n },\n {\n \"columns\": [\n {\"text\":\n [\n {\"text\": \"$entityTypeUC\", \"style\": \"header1\"},\n {\"text\": \"#\", \"style\": \"header2\"},\n {\"text\": \"$invoiceNumber\", \"style\":\"header2\"}\n ],\n \"width\": \"*\"\n },\n {\n \"width\":200,\n \"table\": {\n \"body\": \"$invoiceDetails\"\n },\n \"layout\": \"noBorders\",\n \"margin\": [16, 4, 0, 0]\n }\n ],\n \"margin\": [0, 0, 0, 20]\n },\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 5, \"x2\": 515, \"y2\": 5, \"lineWidth\": 3,\"lineColor\":\"$primaryColor:#AE1E54\"}]},\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"hLineColor\": \"$primaryColor:#E8E8E8\",\n \"paddingLeft\": \"$amount:8\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:8\",\n \"paddingBottom\": \"$amount:8\"\n }\n },\n {\n \"columns\": [\n \"$notesAndTerms\",\n {\n \"style\": \"subtotals\",\n \"table\": {\n \"widths\": [\"*\", \"40%\"],\n \"body\": \"$subtotalsWithoutBalance\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:4\",\n \"paddingBottom\": \"$amount:4\"\n }\n }\n ]\n },\n {\n \"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 20, \"x2\": 515, \"y2\": 20, \"lineWidth\": 3,\"lineColor\":\"$primaryColor:#AE1E54\"}],\n \"margin\": [0, -8, 0, -8]\n },\n {\n \"text\": \"$balanceDueLabel\",\n \"style\": \"subtotalsBalanceDueLabel\"\n },\n {\n \"text\": \"$balanceDue\",\n \"style\": \"subtotalsBalanceDue\"\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"footer\": {\n \"columns\": [\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\"\n }\n ],\n \"margin\": [40, -20, 40, 0]\n },\n \"defaultStyle\": {\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"primaryColor\":{\n \"color\": \"$primaryColor:#AE1E54\"\n },\n \"accountName\": {\n \"margin\": [4, 2, 4, 2],\n \"color\": \"$primaryColor:#AE1E54\",\n \"bold\": true\n },\n \"accountDetails\": {\n \"margin\": [4, 2, 4, 2]\n },\n \"accountAddress\": {\n \"margin\": [4, 2, 4, 2]\n },\n \"odd\": {\n \"fillColor\":\"#F4F4F4\"\n },\n \"productKey\": {\n \"bold\": true\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"margin\": [320,20,0,0]\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"$primaryColor:#AE1E54\",\n \"bold\": true,\n \"margin\":[0,-10,10,0],\n \"alignment\": \"right\"\n },\n \"invoiceDetailBalanceDue\": {\n \"bold\": true,\n \"color\": \"$primaryColor:#AE1E54\"\n },\n \"invoiceDetailBalanceDueLabel\": {\n \"bold\": true\n },\n \"tableHeader\": {\n \"bold\": true,\n \"color\": \"$primaryColor:#AE1E54\",\n \"fontSize\": \"$fontSizeLargest\"\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"taxTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n },\n \"clientName\": {\n \"bold\": true\n },\n \"clientDetails\": {\n \"margin\": [0,2,0,1]\n },\n \"header1\": {\n \"bold\": true,\n \"margin\": [0, 30, 0, 16],\n \"fontSize\": 46\n },\n \"header2\": {\n \"margin\": [0, 30, 0, 16],\n \"fontSize\": 46,\n \"italics\": true,\n \"color\": \"$primaryColor:#AE1E54\"\n },\n \"invoiceLineItemsTable\": {\n \"margin\": [0, 4, 0, 16]\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n },\n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"header\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n }\n },\n \"pageMargins\": [40, 40, 40, 40]\n}\n'),(7,'Elegant',NULL,'{\n \"content\": [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80],\n \"alignment\": \"center\",\n \"margin\": [0, 0, 0, 30]\n },\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 5, \"x2\": 515, \"y2\": 5, \"lineWidth\": 2}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 3, \"x2\": 515, \"y2\": 3, \"lineWidth\": 1}]},\n {\n \"columns\": [\n {\n \"width\": 120,\n \"stack\": [\n {\"text\": \"$invoiceToLabel\", \"style\": \"header\", \"margin\": [0, 0, 0, 6]},\n \"$clientDetails\"\n ]\n },\n {\n \"width\": 10,\n \"canvas\": [{ \"type\": \"line\", \"x1\": -2, \"y1\": 18, \"x2\": -2, \"y2\": 80, \"lineWidth\": 1,\"dash\": { \"length\": 2 }}]\n },\n {\n \"width\": 120,\n \"stack\": \"$accountDetails\",\n \"margin\": [0, 20, 0, 0]\n },\n {\n \"width\": 110,\n \"stack\": \"$accountAddress\",\n \"margin\": [0, 20, 0, 0]\n },\n {\n \"stack\": [\n {\"text\": \"$detailsLabel\", \"style\": \"header\", \"margin\": [0, 0, 0, 6]},\n {\n \"width\":180,\n \"table\": {\n \"body\": \"$invoiceDetails\"\n },\n \"layout\": \"noBorders\"\n }\n ]\n }],\n \"margin\": [0, 20, 0, 0]\n },\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$notFirst:.5\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:8\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:12\",\n \"paddingBottom\": \"$amount:12\"\n }\n },\n {\n \"columns\": [\n \"$notesAndTerms\",\n {\n \"style\": \"subtotals\",\n \"table\": {\n \"widths\": [\"*\", \"40%\"],\n \"body\": \"$subtotalsWithoutBalance\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:4\",\n \"paddingBottom\": \"$amount:4\"\n }\n }\n ]\n },\n {\n \"canvas\": [{ \"type\": \"line\", \"x1\": 270, \"y1\": 20, \"x2\": 515, \"y2\": 20, \"lineWidth\": 1,\"dash\": { \"length\": 2 }}]\n },\n {\n \"text\": \"$balanceDueLabel\",\n \"style\": \"subtotalsBalanceDueLabel\"\n },\n {\n \"text\": \"$balanceDue\",\n \"style\": \"subtotalsBalanceDue\"\n },\n {\n \"canvas\": [{ \"type\": \"line\", \"x1\": 270, \"y1\": 20, \"x2\": 515, \"y2\": 20, \"lineWidth\": 1,\"dash\": { \"length\": 2 }}]\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }],\n \"footer\": [\n {\n \"columns\": [\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\"\n }\n ],\n \"margin\": [40, -20, 40, 0]\n },\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 35, \"y1\": 5, \"x2\": 555, \"y2\": 5, \"lineWidth\": 2,\"margin\": [30,0,0,0]}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 35, \"y1\": 3, \"x2\": 555, \"y2\": 3, \"lineWidth\": 1,\"margin\": [30,0,0,0]}]}\n ],\n \"defaultStyle\": {\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"accountDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"clientDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"accountAddress\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"clientName\": {\n \"bold\": true\n },\n \"accountName\": {\n \"bold\": true\n },\n \"odd\": {\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"$primaryColor:#5a7b61\",\n \"margin\": [320,20,0,0]\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"$primaryColor:#5a7b61\",\n \"style\": true,\n \"margin\":[0,-14,8,0],\n \"alignment\":\"right\"\n },\n \"invoiceDetailBalanceDue\": {\n \"color\": \"$primaryColor:#5a7b61\",\n \"bold\": true\n },\n \"header\": {\n \"fontSize\": 14,\n \"bold\": true\n },\n \"tableHeader\": {\n \"bold\": true,\n \"color\": \"$primaryColor:#5a7b61\",\n \"fontSize\": \"$fontSizeLargest\"\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"taxTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n },\n \"invoiceLineItemsTable\": {\n \"margin\": [0, 40, 0, 16]\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n },\n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"header\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n }\n },\n \"pageMargins\": [40, 40, 40, 40]\n}\n'),(8,'Hipster',NULL,'{\n \"content\": [\n {\n \"columns\": [\n {\n \"width\":10,\n \"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 0, \"x2\": 0, \"y2\": 75, \"lineWidth\": 0.5}]\n },\n {\n \"width\":120,\n \"stack\": [\n {\"text\": \"$fromLabelUC\", \"style\": \"fromLabel\"}, \n \"$accountDetails\" \n ]\n },\n {\n \"width\":120,\n \"stack\": [\n {\"text\": \" \"},\n \"$accountAddress\"\n ],\n \"margin\": [10, 0, 0, 16]\n },\n {\n \"width\":10,\n \"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 0, \"x2\": 0, \"y2\": 75, \"lineWidth\": 0.5}]\n },\n {\n \"stack\": [\n {\"text\": \"$toLabelUC\", \"style\": \"toLabel\"}, \n \"$clientDetails\"\n ]\n },\n [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80]\n }\n ]\n ]\n },\n {\n \"text\": \"$entityTypeUC\",\n \"margin\": [0, 4, 0, 8],\n \"bold\": \"true\",\n \"fontSize\": 42\n },\n {\n \"columnGap\": 16,\n \"columns\": [\n {\n \"width\":\"auto\",\n \"text\": [\"$invoiceNoLabel\",\" \",\"$invoiceNumberValue\"],\n \"bold\": true,\n \"color\":\"$primaryColor:#bc9f2b\",\n \"fontSize\":10\n },\n {\n \"width\":\"auto\",\n \"text\": [\"$invoiceDateLabel\",\" \",\"$invoiceDateValue\"],\n \"fontSize\":10\n },\n {\n \"width\":\"auto\",\n \"text\": [\"$dueDateLabel?\",\" \",\"$dueDateValue\"],\n \"fontSize\":10\n },\n {\n \"width\":\"*\",\n \"text\": [\"$balanceDueLabel\",\" \",{\"text\":\"$balanceDue\", \"bold\":true, \"color\":\"$primaryColor:#bc9f2b\"}],\n \"fontSize\":10\n }\n ]\n },\n {\n \"margin\": [0, 26, 0, 0],\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$amount:.5\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:8\", \n \"paddingBottom\": \"$amount:8\" \n }\n },\n {\n \"columns\": [\n {\n \"stack\": \"$notesAndTerms\",\n \"width\": \"*\",\n \"margin\": [0, 12, 0, 0]\n },\n {\n \"width\": 200,\n \"style\": \"subtotals\",\n \"table\": {\n \"widths\": [\"*\", \"36%\"],\n \"body\": \"$subtotals\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$notFirst:.5\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:12\", \n \"paddingBottom\": \"$amount:4\" \n }\n }\n ]\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"footer\": {\n \"columns\": [\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\"\n }\n ],\n \"margin\": [40, -20, 40, 0]\n },\n \"defaultStyle\": {\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"accountName\": {\n \"bold\": true\n },\n \"clientName\": {\n \"bold\": true\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"$primaryColor:#bc9f2b\",\n \"bold\": true\n },\n \"tableHeader\": {\n \"bold\": true,\n \"fontSize\": \"$fontSizeLargest\"\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"taxTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n }, \n \"fromLabel\": {\n \"color\": \"$primaryColor:#bc9f2b\",\n \"bold\": true \n },\n \"toLabel\": {\n \"color\": \"$primaryColor:#bc9f2b\",\n \"bold\": true \n },\n \"accountDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"accountAddress\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"clientDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n }, \n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 16, 0, 4]\n },\n \"header\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n }\n },\n \"pageMargins\": [40, 40, 40, 40]\n}\n'),(9,'Playful',NULL,'{\n \"content\": [\n {\n \"columns\": [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80]\n },\n {\"canvas\": [{ \"type\": \"rect\", \"x\": 0, \"y\": 0, \"w\": 190, \"h\": \"$invoiceDetailsHeight\",\"r\":5, \"lineWidth\": 1,\"color\":\"$primaryColor:#009d91\"}],\"width\":10,\"margin\":[200,0,0,0]},\n {\n \"width\":400,\n \"table\": { \n \"body\": \"$invoiceDetails\"\n },\n \"layout\": \"noBorders\",\n \"margin\": [210, 10, 10, 0]\n }\n ] \n },\n {\n \"margin\": [0, 18, 0, 0],\n \"columnGap\": 50,\n \"columns\": [\n {\n \"width\": 212,\n \"stack\": [\n {\"text\": \"$invoiceToLabel:\", \"style\": \"toLabel\"},\n {\n \"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 4, \"x2\": 150, \"y2\": 4, \"lineWidth\": 1,\"dash\": { \"length\": 3 },\"lineColor\":\"$primaryColor:#009d91\"}],\n \"margin\": [0, 0, 0, 4]\n },\n \"$clientDetails\",\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 9, \"x2\": 150, \"y2\": 9, \"lineWidth\": 1,\"dash\": { \"length\": 3 },\"lineColor\":\"$primaryColor:#009d91\"}]}\n ]\n },\n {\n \"width\": \"*\",\n \"stack\": [\n {\"text\": \"$fromLabel:\", \"style\": \"fromLabel\"},\n {\n \"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 4, \"x2\": 250, \"y2\": 4, \"lineWidth\": 1,\"dash\": { \"length\": 3 },\"lineColor\":\"$primaryColor:#009d91\"}],\n \"margin\": [0, 0, 0, 4]\n },\n {\"columns\":[\n \"$accountDetails\",\n \"$accountAddress\" \n ], \"columnGap\": 4}, \n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 9, \"x2\": 250, \"y2\": 9, \"lineWidth\": 1,\"dash\": { \"length\": 3 },\"lineColor\":\"$primaryColor:#009d91\"}]}\n ]\n }\n ]\n },\n {\"canvas\": [{ \"type\": \"rect\", \"x\": 0, \"y\": 0, \"w\": 515, \"h\": 35,\"r\":6, \"lineWidth\": 1,\"color\":\"$primaryColor:#009d91\"}],\"width\":10,\"margin\":[0,30,0,-30]},\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$notFirst:.5\",\n \"vLineWidth\": \"$none\",\n \"hLineColor\": \"$primaryColor:#009d91\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:8\", \n \"paddingBottom\": \"$amount:8\"\n }\n }, \n {\n \"columns\": [\n \"$notesAndTerms\",\n {\n \"stack\": [\n {\n \"style\": \"subtotals\",\n \"table\": {\n \"widths\": [\"*\", \"35%\"],\n \"body\": \"$subtotalsWithoutBalance\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:4\",\n \"paddingBottom\": \"$amount:4\"\n }\n },\n {\n \"canvas\": [\n {\n \"type\": \"rect\",\n \"x\": 76,\n \"y\": 20,\n \"w\": 182,\n \"h\": 30,\n \"r\": 4,\n \"lineWidth\": 1,\n \"color\": \"$primaryColor:#009d91\"\n }\n ]\n },\n {\n \"style\": \"subtotalsBalance\",\n \"table\": {\n \"widths\": [\"*\", \"35%\"],\n \"body\": \"$subtotalsBalance\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\",\n \"paddingRight\": \"$amount:8\",\n \"paddingTop\": \"$amount:4\",\n \"paddingBottom\": \"$amount:4\"\n }\n }\n ]\n }\n ]\n }, \n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n], \n \"footer\": [\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 38, \"x2\": 68, \"y2\": 38, \"lineWidth\": 6,\"lineColor\":\"#009d91\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 68, \"y1\": 0, \"x2\": 135, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#1d766f\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 135, \"y1\": 0, \"x2\": 201, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#ffb800\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 201, \"y1\": 0, \"x2\": 267, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#bf9730\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 267, \"y1\": 0, \"x2\": 333, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#ac2b50\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 333, \"y1\": 0, \"x2\": 399, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#e60042\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 399, \"y1\": 0, \"x2\": 465, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#ffb800\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 465, \"y1\": 0, \"x2\": 532, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#009d91\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 532, \"y1\": 0, \"x2\": 600, \"y2\": 0, \"lineWidth\": 6,\"lineColor\":\"#ac2b50\"}]},\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\",\n \"margin\": [40, -60, 40, 0]\n }\n ],\n \"header\": [\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 0, \"x2\": 68, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#009d91\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 68, \"y1\": 0, \"x2\": 135, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#1d766f\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 135, \"y1\": 0, \"x2\": 201, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#ffb800\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 201, \"y1\": 0, \"x2\": 267, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#bf9730\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 267, \"y1\": 0, \"x2\": 333, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#ac2b50\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 333, \"y1\": 0, \"x2\": 399, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#e60042\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 399, \"y1\": 0, \"x2\": 465, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#ffb800\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 465, \"y1\": 0, \"x2\": 532, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#009d91\"}]},\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 532, \"y1\": 0, \"x2\": 600, \"y2\": 0, \"lineWidth\": 9,\"lineColor\":\"#ac2b50\"}]}\n ],\n \"defaultStyle\": {\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"styles\": {\n \"accountName\": {\n \"color\": \"$secondaryColor:#bb3328\"\n },\n \"accountDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"accountAddress\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"clientDetails\": {\n \"margin\": [0, 2, 0, 1]\n },\n \"clientName\": {\n \"color\": \"$secondaryColor:#bb3328\"\n },\n \"even\": {\n \"fillColor\":\"#E8E8E8\"\n },\n \"odd\": {\n \"fillColor\":\"#F7F7F7\"\n },\n \"productKey\": {\n \"color\": \"$secondaryColor:#bb3328\"\n },\n \"lineTotal\": {\n \"bold\": true\n },\n \"tableHeader\": {\n \"bold\": true,\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"#FFFFFF\"\n },\n \"secondTableHeader\": {\n \"color\": \"$primaryColor:#009d91\"\n },\n \"costTableHeader\": {\n \"alignment\": \"right\"\n },\n \"qtyTableHeader\": {\n \"alignment\": \"right\"\n },\n \"lineTotalTableHeader\": {\n \"alignment\": \"right\"\n }, \n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\":\"#FFFFFF\",\n \"bold\": true\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true,\n \"color\":\"#FFFFFF\",\n \"alignment\":\"right\"\n },\n \"invoiceDetails\": {\n \"color\": \"#FFFFFF\"\n },\n \"invoiceLineItemsTable\": {\n \"margin\": [0, 0, 0, 16]\n },\n \"invoiceDetailBalanceDueLabel\": {\n \"bold\": true\n },\n \"invoiceDetailBalanceDue\": {\n \"bold\": true\n },\n \"fromLabel\": {\n \"color\": \"$primaryColor:#009d91\"\n },\n \"toLabel\": {\n \"color\": \"$primaryColor:#009d91\"\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"subtotals\": {\n \"alignment\": \"right\"\n }, \n \"subtotalsBalance\": {\n \"alignment\": \"right\",\n \"margin\": [0, -25, 0, 0]\n }, \n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"header\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"subheader\": {\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n }\n },\n \"pageMargins\": [40, 40, 40, 40]\n}\n'),(10,'Photo',NULL,'{\n \"content\": [\n {\n \"columns\": [\n {\n \"image\": \"$accountLogo\",\n \"fit\": [120, 80]\n },\n {\n \"text\": \"\",\n \"width\": \"*\"\n },\n {\n \"width\":180,\n \"table\": { \n \"body\": \"$invoiceDetails\"\n },\n \"layout\": \"noBorders\"\n }]\n },\n {\n \"image\": \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQ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/woA7DxX44i8S+H7G0ltib62AHnsckgVxgwA3XpUz/AH3+pqB/utQA4Z7dugpSdx6A/WiP7zf71NX/AFRoAVBxjdjNBAXnrnj6Ui9D9aaPvPQBICe/b8BSEgEUkP8Aqm+n+NK33Y/92gA6ZBwTU0UZJxkHnAJqKTr/AMCP8qsfwxUAV5TukLYzRjpnIB5pF7fj/OkXt9aAHA8E9R3NNbOBhvwpZP8AGkfr+VAChRjII4PSjbk5J59qdH99Poak7r9KAIQCM59PWgjBHPFKP9bSS/w/73+FAAM5PqfT2pV9DwfY0qfeP+e1MX7rfUUAOLYIPB9c0NkdecUR/wAX1pF+6n0/pQAp7dCaQ4PUjPapE/1R+n+FQDqfoKAJQFyc+mc0Ke2CSfWkbt9KkH3V+tAERIz19hThg4PUUxfut9TUif6pP896AEHfnt2pyg99uT396IfvP9f8Klj/AIv9+gCuMhvQZqRSMcd+oph6r/u/1p9v/q2+tAEsibogxIHHJFV0J3A8881ZH/Hoah/5aH8aAOy8PzxtbhWxv96vahZbmVh0B/Wue8Nf6411d32/36APU/hTdCPSriHJwBkD07196/CW6W68MWbfeIjHJ+lfn98Kf9VP/uj+tfePwS/5FK2/3F/kK5avRm0D0URbucgfjRUbfeNFcxrc/9k=\",\n \"margin\": [-40, 16, 0, 0],\n \"width\": 595\n },\n {\n \"margin\": [-20, -150, 0, 0],\n \"columnGap\": 8,\n \"columns\": [\n {\n \"width\": \"auto\",\n \"text\": \"$toLabel:\",\n \"style\": \"bold\",\n \"color\":\"#cd5138\"\n },\n {\n \"width\": \"*\",\n \"stack\": \"$clientDetails\",\n \"margin\": [4, 0, 0, 0]\n }\n ]\n },\n {\n \"margin\": [-20, 10, 0, 140],\n \"columnGap\": 8,\n \"columns\": [\n {\n \"width\": \"auto\",\n \"text\": \"$fromLabel:\",\n \"style\": \"bold\",\n \"color\":\"#cd5138\"\n },\n {\n \"width\": \"*\",\n \"stack\": [\n {\n \"width\": 150,\n \"stack\": \"$accountDetails\"\n },\n {\n \"width\": 150,\n \"stack\": \"$accountAddress\"\n }\n ]\n }\n ]\n },\n {\"canvas\": [{ \"type\": \"line\", \"x1\": 0, \"y1\": 5, \"x2\": 515, \"y2\": 5, \"lineWidth\": 1.5}],\"margin\":[0,0,0,-30]},\n {\n \"style\": \"invoiceLineItemsTable\",\n \"table\": {\n \"headerRows\": 1,\n \"widths\": \"$invoiceLineItemColumns\",\n \"body\": \"$invoiceLineItems\"\n },\n \"layout\": {\n \"hLineWidth\": \"$notFirst:.5\",\n \"vLineWidth\": \"$none\",\n \"hLineColor\": \"#000000\",\n \"paddingLeft\": \"$amount:8\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:10\", \n \"paddingBottom\": \"$amount:10\" \n }\n },\n {\n \"columns\": [\n \"$notesAndTerms\",\n {\n \"alignment\": \"right\",\n \"table\": {\n \"widths\": [\"*\", \"40%\"],\n \"body\": \"$subtotals\"\n },\n \"layout\": {\n \"hLineWidth\": \"$none\",\n \"vLineWidth\": \"$none\",\n \"paddingLeft\": \"$amount:34\", \n \"paddingRight\": \"$amount:8\", \n \"paddingTop\": \"$amount:4\", \n \"paddingBottom\": \"$amount:4\" \n }\n }]\n },\n {\n \"stack\": [\n \"$invoiceDocuments\"\n ],\n \"style\": \"invoiceDocuments\"\n }\n ],\n \"defaultStyle\": {\n \"fontSize\": \"$fontSize\",\n \"margin\": [8, 4, 8, 4]\n },\n \"footer\": {\n \"columns\": [\n {\n \"text\": \"$invoiceFooter\",\n \"alignment\": \"left\"\n }\n ],\n \"margin\": [40, -20, 40, 0]\n },\n \"styles\": {\n \"accountDetails\": {\n \"margin\": [0, 0, 0, 3]\n },\n \"accountAddress\": {\n \"margin\": [0, 0, 0, 3]\n },\n \"clientDetails\": {\n \"margin\": [0, 0, 0, 3]\n },\n \"productKey\": {\n \"color\": \"$primaryColor:#cd5138\"\n },\n \"lineTotal\": {\n \"color\": \"$primaryColor:#cd5138\"\n },\n \"tableHeader\": {\n \"bold\": true,\n \"fontSize\": \"$fontSizeLarger\"\n },\n \"subtotalsBalanceDueLabel\": {\n \"fontSize\": \"$fontSizeLargest\"\n },\n \"subtotalsBalanceDue\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"color\": \"$primaryColor:#cd5138\"\n },\n \"invoiceLineItemsTable\": {\n \"margin\": [0, 0, 0, 16]\n },\n \"cost\": {\n \"alignment\": \"right\"\n },\n \"quantity\": {\n \"alignment\": \"right\"\n },\n \"tax\": {\n \"alignment\": \"right\"\n },\n \"lineTotal\": {\n \"alignment\": \"right\"\n },\n \"termsLabel\": {\n \"bold\": true,\n \"margin\": [0, 0, 0, 4]\n },\n \"header\": {\n \"fontSize\": \"$fontSizeLargest\",\n \"bold\": true\n },\n \"help\": {\n \"fontSize\": \"$fontSizeSmaller\",\n \"color\": \"#737373\"\n }\n },\n \"pageMargins\": [40, 30, 40, 30]\n}\n'),(11,'Custom1',NULL,NULL),(12,'Custom2',NULL,NULL),(13,'Custom3',NULL,NULL); /*!40000 ALTER TABLE `invoice_designs` ENABLE KEYS */; UNLOCK TABLES; @@ -1759,7 +1765,7 @@ CREATE TABLE `migrations` ( LOCK TABLES `migrations` WRITE; /*!40000 ALTER TABLE `migrations` DISABLE KEYS */; -INSERT INTO `migrations` VALUES ('2013_11_05_180133_confide_setup_users_table',1),('2013_11_28_195703_setup_countries_table',1),('2014_02_13_151500_add_cascase_drops',1),('2014_02_19_151817_add_support_for_invoice_designs',1),('2014_03_03_155556_add_phone_to_account',1),('2014_03_19_201454_add_language_support',1),('2014_03_20_200300_create_payment_libraries',1),('2014_03_23_051736_enable_forcing_jspdf',1),('2014_03_25_102200_add_sort_and_recommended_to_gateways',1),('2014_04_03_191105_add_pro_plan',1),('2014_04_17_100523_add_remember_token',1),('2014_04_17_145108_add_custom_fields',1),('2014_04_23_170909_add_products_settings',1),('2014_04_29_174315_add_advanced_settings',1),('2014_05_17_175626_add_quotes',1),('2014_06_17_131940_add_accepted_credit_cards_to_account_gateways',1),('2014_07_13_142654_one_click_install',1),('2014_07_17_205900_support_hiding_quantity',1),('2014_07_24_171214_add_zapier_support',1),('2014_10_01_141248_add_company_vat_number',1),('2014_10_05_141856_track_last_seen_message',1),('2014_10_06_103529_add_timesheets',1),('2014_10_06_195330_add_invoice_design_table',1),('2014_10_13_054100_add_invoice_number_settings',1),('2014_10_14_225227_add_danish_translation',1),('2014_10_22_174452_add_affiliate_price',1),('2014_10_30_184126_add_company_id_number',1),('2014_11_04_200406_allow_null_client_currency',1),('2014_12_03_154119_add_discount_type',1),('2015_02_12_102940_add_email_templates',1),('2015_02_17_131714_support_token_billing',1),('2015_02_27_081836_add_invoice_footer',1),('2015_03_03_140259_add_tokens',1),('2015_03_09_151011_add_ip_to_activity',1),('2015_03_15_174122_add_pdf_email_attachment_option',1),('2015_03_30_100000_create_password_resets_table',1),('2015_04_12_093447_add_sv_language',1),('2015_04_13_100333_add_notify_approved',1),('2015_04_16_122647_add_partial_amount_to_invoices',1),('2015_05_21_184104_add_font_size',1),('2015_05_27_121828_add_tasks',1),('2015_05_27_170808_add_custom_invoice_labels',1),('2015_06_09_134208_add_has_tasks_to_invoices',1),('2015_06_14_093410_enable_resuming_tasks',1),('2015_06_14_173025_multi_company_support',1),('2015_07_07_160257_support_locking_account',1),('2015_07_08_114333_simplify_tasks',1),('2015_07_19_081332_add_custom_design',1),('2015_07_27_183830_add_pdfmake_support',1),('2015_08_13_084041_add_formats_to_datetime_formats_table',1),('2015_09_04_080604_add_swap_postal_code',1),('2015_09_07_135935_add_account_domain',1),('2015_09_10_185135_add_reminder_emails',1),('2015_10_07_135651_add_social_login',1),('2015_10_21_075058_add_default_tax_rates',1),('2015_10_21_185724_add_invoice_number_pattern',1),('2015_10_27_180214_add_is_system_to_activities',1),('2015_10_29_133747_add_default_quote_terms',1),('2015_11_01_080417_encrypt_tokens',1),('2015_11_03_181318_improve_currency_localization',1),('2015_11_30_133206_add_email_designs',1),('2015_12_27_154513_add_reminder_settings',1),('2015_12_30_042035_add_client_view_css',1),('2016_01_04_175228_create_vendors_table',1),('2016_01_06_153144_add_invoice_font_support',1),('2016_01_17_155725_add_quote_to_invoice_option',1),('2016_01_18_195351_add_bank_accounts',1),('2016_01_24_112646_add_bank_subaccounts',1),('2016_01_27_173015_add_header_footer_option',1),('2016_02_01_135956_add_source_currency_to_expenses',1),('2016_02_25_152948_add_client_password',1),('2016_02_28_081424_add_custom_invoice_fields',1),('2016_03_14_066181_add_user_permissions',1),('2016_03_14_214710_add_support_three_decimal_taxes',1),('2016_03_22_168362_add_documents',1),('2016_03_23_215049_support_multiple_tax_rates',1),('2016_04_16_103943_enterprise_plan',1),('2016_04_18_174135_add_page_size',1),('2016_04_23_182223_payments_changes',1),('2016_05_16_102925_add_swap_currency_symbol_to_currency',1),('2016_05_18_085739_add_invoice_type_support',1),('2016_05_24_164847_wepay_ach',1),('2016_07_08_083802_support_new_pricing',1),('2016_07_13_083821_add_buy_now_buttons',1),('2016_08_10_184027_add_support_for_bots',1),('2016_09_05_150625_create_gateway_types',1),('2016_10_20_191150_add_expense_to_activities',1),('2016_11_03_113316_add_invoice_signature',1),('2016_11_03_161149_add_bluevine_fields',1),('2016_11_28_092904_add_task_projects',1),('2016_12_13_113955_add_pro_plan_discount',1),('2017_01_01_214241_add_inclusive_taxes',1),('2017_02_23_095934_add_custom_product_fields',1),('2017_03_16_085702_add_gateway_fee_location',1),('2017_04_16_101744_add_custom_contact_fields',1),('2017_04_30_174702_add_multiple_database_support',1),('2017_05_10_144928_add_oauth_to_lookups',1),('2017_05_16_101715_add_default_note_to_client',1); +INSERT INTO `migrations` VALUES ('2013_11_05_180133_confide_setup_users_table',1),('2013_11_28_195703_setup_countries_table',1),('2014_02_13_151500_add_cascase_drops',1),('2014_02_19_151817_add_support_for_invoice_designs',1),('2014_03_03_155556_add_phone_to_account',1),('2014_03_19_201454_add_language_support',1),('2014_03_20_200300_create_payment_libraries',1),('2014_03_23_051736_enable_forcing_jspdf',1),('2014_03_25_102200_add_sort_and_recommended_to_gateways',1),('2014_04_03_191105_add_pro_plan',1),('2014_04_17_100523_add_remember_token',1),('2014_04_17_145108_add_custom_fields',1),('2014_04_23_170909_add_products_settings',1),('2014_04_29_174315_add_advanced_settings',1),('2014_05_17_175626_add_quotes',1),('2014_06_17_131940_add_accepted_credit_cards_to_account_gateways',1),('2014_07_13_142654_one_click_install',1),('2014_07_17_205900_support_hiding_quantity',1),('2014_07_24_171214_add_zapier_support',1),('2014_10_01_141248_add_company_vat_number',1),('2014_10_05_141856_track_last_seen_message',1),('2014_10_06_103529_add_timesheets',1),('2014_10_06_195330_add_invoice_design_table',1),('2014_10_13_054100_add_invoice_number_settings',1),('2014_10_14_225227_add_danish_translation',1),('2014_10_22_174452_add_affiliate_price',1),('2014_10_30_184126_add_company_id_number',1),('2014_11_04_200406_allow_null_client_currency',1),('2014_12_03_154119_add_discount_type',1),('2015_02_12_102940_add_email_templates',1),('2015_02_17_131714_support_token_billing',1),('2015_02_27_081836_add_invoice_footer',1),('2015_03_03_140259_add_tokens',1),('2015_03_09_151011_add_ip_to_activity',1),('2015_03_15_174122_add_pdf_email_attachment_option',1),('2015_03_30_100000_create_password_resets_table',1),('2015_04_12_093447_add_sv_language',1),('2015_04_13_100333_add_notify_approved',1),('2015_04_16_122647_add_partial_amount_to_invoices',1),('2015_05_21_184104_add_font_size',1),('2015_05_27_121828_add_tasks',1),('2015_05_27_170808_add_custom_invoice_labels',1),('2015_06_09_134208_add_has_tasks_to_invoices',1),('2015_06_14_093410_enable_resuming_tasks',1),('2015_06_14_173025_multi_company_support',1),('2015_07_07_160257_support_locking_account',1),('2015_07_08_114333_simplify_tasks',1),('2015_07_19_081332_add_custom_design',1),('2015_07_27_183830_add_pdfmake_support',1),('2015_08_13_084041_add_formats_to_datetime_formats_table',1),('2015_09_04_080604_add_swap_postal_code',1),('2015_09_07_135935_add_account_domain',1),('2015_09_10_185135_add_reminder_emails',1),('2015_10_07_135651_add_social_login',1),('2015_10_21_075058_add_default_tax_rates',1),('2015_10_21_185724_add_invoice_number_pattern',1),('2015_10_27_180214_add_is_system_to_activities',1),('2015_10_29_133747_add_default_quote_terms',1),('2015_11_01_080417_encrypt_tokens',1),('2015_11_03_181318_improve_currency_localization',1),('2015_11_30_133206_add_email_designs',1),('2015_12_27_154513_add_reminder_settings',1),('2015_12_30_042035_add_client_view_css',1),('2016_01_04_175228_create_vendors_table',1),('2016_01_06_153144_add_invoice_font_support',1),('2016_01_17_155725_add_quote_to_invoice_option',1),('2016_01_18_195351_add_bank_accounts',1),('2016_01_24_112646_add_bank_subaccounts',1),('2016_01_27_173015_add_header_footer_option',1),('2016_02_01_135956_add_source_currency_to_expenses',1),('2016_02_25_152948_add_client_password',1),('2016_02_28_081424_add_custom_invoice_fields',1),('2016_03_14_066181_add_user_permissions',1),('2016_03_14_214710_add_support_three_decimal_taxes',1),('2016_03_22_168362_add_documents',1),('2016_03_23_215049_support_multiple_tax_rates',1),('2016_04_16_103943_enterprise_plan',1),('2016_04_18_174135_add_page_size',1),('2016_04_23_182223_payments_changes',1),('2016_05_16_102925_add_swap_currency_symbol_to_currency',1),('2016_05_18_085739_add_invoice_type_support',1),('2016_05_24_164847_wepay_ach',1),('2016_07_08_083802_support_new_pricing',1),('2016_07_13_083821_add_buy_now_buttons',1),('2016_08_10_184027_add_support_for_bots',1),('2016_09_05_150625_create_gateway_types',1),('2016_10_20_191150_add_expense_to_activities',1),('2016_11_03_113316_add_invoice_signature',1),('2016_11_03_161149_add_bluevine_fields',1),('2016_11_28_092904_add_task_projects',1),('2016_12_13_113955_add_pro_plan_discount',1),('2017_01_01_214241_add_inclusive_taxes',1),('2017_02_23_095934_add_custom_product_fields',1),('2017_03_16_085702_add_gateway_fee_location',1),('2017_04_16_101744_add_custom_contact_fields',1),('2017_04_30_174702_add_multiple_database_support',1),('2017_05_10_144928_add_oauth_to_lookups',1),('2017_05_16_101715_add_default_note_to_client',1),('2017_06_19_111515_update_dark_mode',1); /*!40000 ALTER TABLE `migrations` ENABLE KEYS */; UNLOCK TABLES; @@ -1810,7 +1816,7 @@ CREATE TABLE `payment_libraries` ( LOCK TABLES `payment_libraries` WRITE; /*!40000 ALTER TABLE `payment_libraries` DISABLE KEYS */; -INSERT INTO `payment_libraries` VALUES (1,'2017-06-15 04:43:56','2017-06-15 04:43:56','Omnipay',1),(2,'2017-06-15 04:43:56','2017-06-15 04:43:56','PHP-Payments [Deprecated]',1); +INSERT INTO `payment_libraries` VALUES (1,'2017-07-17 14:14:37','2017-07-17 14:14:37','Omnipay',1),(2,'2017-07-17 14:14:37','2017-07-17 14:14:37','PHP-Payments [Deprecated]',1); /*!40000 ALTER TABLE `payment_libraries` ENABLE KEYS */; UNLOCK TABLES; @@ -1920,7 +1926,7 @@ CREATE TABLE `payment_terms` ( LOCK TABLES `payment_terms` WRITE; /*!40000 ALTER TABLE `payment_terms` DISABLE KEYS */; -INSERT INTO `payment_terms` VALUES (1,7,'Net 7','2017-06-15 04:43:56','2017-06-15 04:43:56',NULL,0,0,1),(2,10,'Net 10','2017-06-15 04:43:56','2017-06-15 04:43:56',NULL,0,0,2),(3,14,'Net 14','2017-06-15 04:43:56','2017-06-15 04:43:56',NULL,0,0,3),(4,15,'Net 15','2017-06-15 04:43:56','2017-06-15 04:43:56',NULL,0,0,4),(5,30,'Net 30','2017-06-15 04:43:56','2017-06-15 04:43:56',NULL,0,0,5),(6,60,'Net 60','2017-06-15 04:43:56','2017-06-15 04:43:56',NULL,0,0,6),(7,90,'Net 90','2017-06-15 04:43:56','2017-06-15 04:43:56',NULL,0,0,7),(8,-1,'Net 0','2017-06-15 04:44:00','2017-06-15 04:44:00',NULL,0,0,0); +INSERT INTO `payment_terms` VALUES (1,7,'Net 7','2017-07-17 14:14:37','2017-07-17 14:14:37',NULL,0,0,1),(2,10,'Net 10','2017-07-17 14:14:37','2017-07-17 14:14:37',NULL,0,0,2),(3,14,'Net 14','2017-07-17 14:14:37','2017-07-17 14:14:37',NULL,0,0,3),(4,15,'Net 15','2017-07-17 14:14:37','2017-07-17 14:14:37',NULL,0,0,4),(5,30,'Net 30','2017-07-17 14:14:37','2017-07-17 14:14:37',NULL,0,0,5),(6,60,'Net 60','2017-07-17 14:14:37','2017-07-17 14:14:37',NULL,0,0,6),(7,90,'Net 90','2017-07-17 14:14:37','2017-07-17 14:14:37',NULL,0,0,7),(8,-1,'Net 0','2017-07-17 14:14:40','2017-07-17 14:14:40',NULL,0,0,0); /*!40000 ALTER TABLE `payment_terms` ENABLE KEYS */; UNLOCK TABLES; @@ -2105,6 +2111,64 @@ LOCK TABLES `projects` WRITE; /*!40000 ALTER TABLE `projects` ENABLE KEYS */; UNLOCK TABLES; +-- +-- Table structure for table `recurring_expenses` +-- + +DROP TABLE IF EXISTS `recurring_expenses`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `recurring_expenses` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + `deleted_at` timestamp NULL DEFAULT NULL, + `account_id` int(10) unsigned NOT NULL, + `vendor_id` int(10) unsigned DEFAULT NULL, + `user_id` int(10) unsigned NOT NULL, + `client_id` int(10) unsigned DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT '0', + `amount` decimal(13,2) NOT NULL, + `private_notes` text COLLATE utf8_unicode_ci NOT NULL, + `public_notes` text COLLATE utf8_unicode_ci NOT NULL, + `invoice_currency_id` int(10) unsigned DEFAULT NULL, + `expense_currency_id` int(10) unsigned DEFAULT NULL, + `should_be_invoiced` tinyint(1) NOT NULL DEFAULT '1', + `expense_category_id` int(10) unsigned DEFAULT NULL, + `tax_name1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `tax_rate1` decimal(13,3) NOT NULL, + `tax_name2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `tax_rate2` decimal(13,3) NOT NULL, + `frequency_id` int(10) unsigned NOT NULL, + `start_date` date DEFAULT NULL, + `end_date` date DEFAULT NULL, + `last_sent_date` timestamp NULL DEFAULT NULL, + `public_id` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `recurring_expenses_account_id_public_id_unique` (`account_id`,`public_id`), + KEY `recurring_expenses_user_id_foreign` (`user_id`), + KEY `recurring_expenses_account_id_index` (`account_id`), + KEY `recurring_expenses_invoice_currency_id_index` (`invoice_currency_id`), + KEY `recurring_expenses_expense_currency_id_index` (`expense_currency_id`), + KEY `recurring_expenses_expense_category_id_index` (`expense_category_id`), + KEY `recurring_expenses_public_id_index` (`public_id`), + CONSTRAINT `recurring_expenses_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE, + CONSTRAINT `recurring_expenses_expense_category_id_foreign` FOREIGN KEY (`expense_category_id`) REFERENCES `expense_categories` (`id`) ON DELETE CASCADE, + CONSTRAINT `recurring_expenses_expense_currency_id_foreign` FOREIGN KEY (`expense_currency_id`) REFERENCES `currencies` (`id`), + CONSTRAINT `recurring_expenses_invoice_currency_id_foreign` FOREIGN KEY (`invoice_currency_id`) REFERENCES `currencies` (`id`), + CONSTRAINT `recurring_expenses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `recurring_expenses` +-- + +LOCK TABLES `recurring_expenses` WRITE; +/*!40000 ALTER TABLE `recurring_expenses` DISABLE KEYS */; +/*!40000 ALTER TABLE `recurring_expenses` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `security_codes` -- @@ -2395,7 +2459,7 @@ CREATE TABLE `users` ( `news_feed_id` int(10) unsigned DEFAULT NULL, `notify_approved` tinyint(1) NOT NULL DEFAULT '1', `failed_logins` smallint(6) DEFAULT NULL, - `dark_mode` tinyint(1) DEFAULT '0', + `dark_mode` tinyint(1) DEFAULT '1', `referral_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `oauth_user_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `oauth_provider_id` int(10) unsigned DEFAULT NULL, @@ -2520,4 +2584,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2017-06-15 10:44:00 +-- Dump completed on 2017-07-17 20:14:41 diff --git a/docs/conf.py b/docs/conf.py index 401eae71c56c..27790ecf26d3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -57,9 +57,9 @@ author = u'Invoice Ninja' # built documents. # # The short X.Y version. -version = u'3.4' +version = u'3.5' # The full version, including alpha/beta/rc tags. -release = u'3.4.2' +release = u'3.5.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/update.rst b/docs/update.rst index 70cefed7f662..067700b8daf2 100644 --- a/docs/update.rst +++ b/docs/update.rst @@ -5,6 +5,8 @@ Update To update the app you just need to copy over the latest code. The app tracks the current version in a file called version.txt, if it notices a change it loads ``/update`` to run the database migrations. +.. TIP:: You can use this `shell script `_ to automate the update process, consider running it as a daily cron to automatically keep your app up to date. + If you're moving servers make sure to copy over the .env file. If the auto-update fails you can manually run the update with the following commands. Once completed add ``?clear_cache=true`` to the end of the URL to clear the application cache. diff --git a/public/built.js b/public/built.js index 3ec2f51cabac..bb1e257fe51a 100644 --- a/public/built.js +++ b/public/built.js @@ -1,27 +1,27 @@ -function generatePDF(t,e,n,i){if(t&&e){if(!n)return refreshTimer&&clearTimeout(refreshTimer),void(refreshTimer=setTimeout(function(){generatePDF(t,e,!0,i)},500));refreshTimer=null,t=calculateAmounts(t);var o=GetPdfMake(t,e,i);return i&&o.getDataUrl(i),o}}function copyObject(t){return!!t&&JSON.parse(JSON.stringify(t))}function processVariables(t){if(!t)return"";for(var e=["MONTH","QUARTER","YEAR"],n=0;n1?c=r.split("+")[1]:r.split("-").length>1&&(c=parseInt(r.split("-")[1])*-1),t=t.replace(r,getDatePart(i,c))}}return t}function getDatePart(t,e){return e=parseInt(e),e||(e=0),"MONTH"==t?getMonth(e):"QUARTER"==t?getQuarter(e):"YEAR"==t?getYear(e):void 0}function getMonth(t){var e=new Date,n=["January","February","March","April","May","June","July","August","September","October","November","December"],i=e.getMonth();return i=parseInt(i)+t,i%=12,i<0&&(i+=12),n[i]}function getYear(t){var e=new Date,n=e.getFullYear();return parseInt(n)+t}function getQuarter(t){var e=new Date,n=Math.floor((e.getMonth()+3)/3);return n+=t,n%=4,0==n&&(n=4),"Q"+n}function isStorageSupported(){try{return"localStorage"in window&&null!==window.localStorage}catch(t){return!1}}function isValidEmailAddress(t){var e=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return e.test(t)}function enableHoverClick(t,e,n){}function setAsLink(t,e){e?(t.css("text-decoration","underline"),t.css("cursor","pointer")):(t.css("text-decoration","none"),t.css("cursor","text"))}function setComboboxValue(t,e,n){t.find("input").val(e),t.find("input.form-control").val(n),e&&n?(t.find("select").combobox("setSelected"),t.find(".combobox-container").addClass("combobox-selected")):t.find(".combobox-container").removeClass("combobox-selected")}function convertDataURIToBinary(t){var e=t.indexOf(BASE64_MARKER)+BASE64_MARKER.length,n=t.substring(e);return base64DecToArr(n)}function comboboxHighlighter(t){var e=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),n=t.replace(new RegExp("
","g"),"\n");return n=stripHtmlTags(n),n=n.replace(new RegExp("("+e+")","ig"),function(t,n){return n?""+n+"":e}),n.replace(new RegExp("\n","g"),"
")}function comboboxMatcher(t){return~stripHtmlTags(t).toLowerCase().indexOf(this.query.toLowerCase())}function stripHtmlTags(t){var e=document.createElement("div");return e.innerHTML=t,e.textContent||e.innerText||""}function getContactDisplayName(t){return t.first_name||t.last_name?$.trim((t.first_name||"")+" "+(t.last_name||"")):t.email}function getContactDisplayNameWithEmail(t){var e="";return(t.first_name||t.last_name)&&(e+=$.trim((t.first_name||"")+" "+(t.last_name||""))),t.email&&(e&&(e+=" - "),e+=t.email),$.trim(e)}function getClientDisplayName(t){var e=!!t.contacts&&t.contacts[0];return t.name?t.name:e?getContactDisplayName(e):""}function populateInvoiceComboboxes(t,e){for(var n={},i={},o={},a=$("select#client"),s=0;s1?t+=", ":n64&&t<91?t-65:t>96&&t<123?t-71:t>47&&t<58?t+4:43===t?62:47===t?63:0}function base64DecToArr(t,e){for(var n,i,o=t.replace(/[^A-Za-z0-9\+\/]/g,""),a=o.length,s=e?Math.ceil((3*a+1>>2)/e)*e:3*a+1>>2,r=new Uint8Array(s),c=0,l=0,u=0;u>>(16>>>n&24)&255;c=0}return r}function uint6ToB64(t){return t<26?t+65:t<52?t+71:t<62?t-4:62===t?43:63===t?47:65}function base64EncArr(t){for(var e=2,n="",i=t.length,o=0,a=0;a0&&4*a/3%76===0&&(n+="\r\n"),o|=t[a]<<(16>>>e&24),2!==e&&t.length-a!==1||(n+=String.fromCharCode(uint6ToB64(o>>>18&63),uint6ToB64(o>>>12&63),uint6ToB64(o>>>6&63),uint6ToB64(63&o)),o=0);return n.substr(0,n.length-2+e)+(2===e?"":1===e?"=":"==")}function UTF8ArrToStr(t){for(var e,n="",i=t.length,o=0;o251&&e<254&&o+5247&&e<252&&o+4239&&e<248&&o+3223&&e<240&&o+2191&&e<224&&o+1>>6),e[s++]=128+(63&n)):n<65536?(e[s++]=224+(n>>>12),e[s++]=128+(n>>>6&63),e[s++]=128+(63&n)):n<2097152?(e[s++]=240+(n>>>18),e[s++]=128+(n>>>12&63),e[s++]=128+(n>>>6&63),e[s++]=128+(63&n)):n<67108864?(e[s++]=248+(n>>>24),e[s++]=128+(n>>>18&63),e[s++]=128+(n>>>12&63),e[s++]=128+(n>>>6&63),e[s++]=128+(63&n)):(e[s++]=252+n/1073741824,e[s++]=128+(n>>>24&63),e[s++]=128+(n>>>18&63),e[s++]=128+(n>>>12&63),e[s++]=128+(n>>>6&63),e[s++]=128+(63&n));return e}function hexToR(t){return parseInt(cutHex(t).substring(0,2),16)}function hexToG(t){return parseInt(cutHex(t).substring(2,4),16)}function hexToB(t){return parseInt(cutHex(t).substring(4,6),16)}function cutHex(t){return"#"==t.charAt(0)?t.substring(1,7):t}function setDocHexColor(t,e){var n=hexToR(e),i=hexToG(e),o=hexToB(e);return t.setTextColor(n,i,o)}function setDocHexFill(t,e){var n=hexToR(e),i=hexToG(e),o=hexToB(e);return t.setFillColor(n,i,o)}function setDocHexDraw(t,e){var n=hexToR(e),i=hexToG(e),o=hexToB(e);return t.setDrawColor(n,i,o)}function toggleDatePicker(t){$("#"+t).datepicker("show")}function roundToTwo(t,e){var n=+(Math.round(t+"e+2")+"e-2");return e?n.toFixed(2):n||0}function roundToFour(t,e){var n=+(Math.round(t+"e+4")+"e-4");return e?n.toFixed(4):n||0}function truncate(t,e){return t&&t.length>e?t.substr(0,e-1)+"...":t}function endsWith(t,e){return t.indexOf(e,t.length-e.length)!==-1}function secondsToTime(t){t=Math.round(t);var e=Math.floor(t/3600),n=t%3600,i=Math.floor(n/60),o=n%60,a=Math.ceil(o),s={h:e,m:i,s:a};return s}function twoDigits(t){return t<10?"0"+t:t}function toSnakeCase(t){return t?t.replace(/([A-Z])/g,function(t){return"_"+t.toLowerCase()}):""}function snakeToCamel(t){return t.replace(/_([a-z])/g,function(t){return t[1].toUpperCase()})}function getDescendantProp(t,e){for(var n=e.split(".");n.length&&(t=t[n.shift()]););return t}function doubleDollarSign(t){return t?t.replace?t.replace(/\$/g,"$$$"):t:""}function truncate(t,e){return t.length>e?t.substring(0,e)+"...":t}function actionListHandler(){$("tbody tr .tr-action").closest("tr").mouseover(function(){$(this).closest("tr").find(".tr-action").show(),$(this).closest("tr").find(".tr-status").hide()}).mouseout(function(){$dropdown=$(this).closest("tr").find(".tr-action"),$dropdown.hasClass("open")||($dropdown.hide(),$(this).closest("tr").find(".tr-status").show())})}function loadImages(t){$(t+" img").each(function(t,e){var n=$(e).attr("data-src");$(e).attr("src",n),$(e).attr("data-src",n)})}function prettyJson(t){return"string"!=typeof t&&(t=JSON.stringify(t,void 0,2)),t=t.replace(/&/g,"&").replace(//g,">"),t.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,function(t){var e="number";return/^"/.test(t)?e=/:$/.test(t)?"key":"string":/true|false/.test(t)?e="boolean":/null/.test(t)&&(e="null"),t=snakeToCamel(t),''+t+""})}function searchData(t,e,n){return function(i,o){var a;if(n){var s={keys:[e]},r=new Fuse(t,s);a=r.search(i)}else a=[],substrRegex=new RegExp(escapeRegExp(i),"i"),$.each(t,function(t,n){substrRegex.test(n[e])&&a.push(n)});o(a)}}function escapeRegExp(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function firstJSONError(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];for(var i in n)if(n.hasOwnProperty(i))return n[i]}return!1}function pad(t,e,n){return n=n||"0",t+="",t.length>=e?t:new Array(e-t.length+1).join(n)+t}function GetPdfMake(t,e,n){function i(e,n){if("string"==typeof n){if(0===n.indexOf("$firstAndLast")){var i=n.split(":");return function(t,e){return 0===t||t===e.table.body.length?parseFloat(i[1]):0}}if(0===n.indexOf("$none"))return function(t,e){return 0};if(0===n.indexOf("$notFirstAndLastColumn")){var i=n.split(":");return function(t,e){return 0===t||t===e.table.widths.length?0:parseFloat(i[1])}}if(0===n.indexOf("$notFirst")){var i=n.split(":");return function(t,e){return 0===t?0:parseFloat(i[1])}}if(0===n.indexOf("$amount")){var i=n.split(":");return function(t,e){return parseFloat(i[1])}}if(0===n.indexOf("$primaryColor")){var i=n.split(":");return NINJA.primaryColor||i[1]}if(0===n.indexOf("$secondaryColor")){var i=n.split(":");return NINJA.secondaryColor||i[1]}}if(t.features.customize_invoice_design){if("header"===e)return function(e,i){return 1===e||"1"==t.account.all_pages_header?t.features.remove_created_by?NINJA.updatePageCount(JSON.parse(JSON.stringify(n)),e,i):n:""};if("footer"===e)return function(e,i){return e===i||"1"==t.account.all_pages_footer?t.features.remove_created_by?NINJA.updatePageCount(JSON.parse(JSON.stringify(n)),e,i):n:""}}return"text"===e&&(n=NINJA.parseMarkdownText(n,!0)),n}function o(t){window.ninjaFontVfs[t.folder]&&(folder="fonts/"+t.folder,pdfMake.fonts[t.name]={normal:folder+"/"+t.normal,italics:folder+"/"+t.italics,bold:folder+"/"+t.bold,bolditalics:folder+"/"+t.bolditalics})}e=NINJA.decodeJavascript(t,e);var a=JSON.parse(e,i);t.invoice_design_id;if(!t.features.remove_created_by&&!isEdge){var s="function"==typeof a.footer?a.footer():a.footer;if(s)if(s.hasOwnProperty("columns"))s.columns.push({image:logoImages.imageLogo1,alignment:"right",width:130,margin:[0,0,0,0]});else{for(var r,c=0;c0&&e-1 in t))}function i(t,e,n){if(ot.isFunction(e))return ot.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return ot.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(dt.test(e))return ot.filter(e,t,n);e=ot.filter(e,t)}return ot.grep(t,function(t){return ot.inArray(t,e)>=0!==n})}function o(t,e){do t=t[e];while(t&&1!==t.nodeType);return t}function a(t){var e=yt[t]={};return ot.each(t.match(Mt)||[],function(t,n){e[n]=!0}),e}function s(){ft.addEventListener?(ft.removeEventListener("DOMContentLoaded",r,!1),t.removeEventListener("load",r,!1)):(ft.detachEvent("onreadystatechange",r),t.detachEvent("onload",r))}function r(){(ft.addEventListener||"load"===event.type||"complete"===ft.readyState)&&(s(),ot.ready())}function c(t,e,n){if(void 0===n&&1===t.nodeType){var i="data-"+e.replace(wt,"-$1").toLowerCase();if(n=t.getAttribute(i),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Tt.test(n)?ot.parseJSON(n):n)}catch(o){}ot.data(t,e,n)}else n=void 0}return n}function l(t){var e;for(e in t)if(("data"!==e||!ot.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function u(t,e,n,i){if(ot.acceptData(t)){var o,a,s=ot.expando,r=t.nodeType,c=r?ot.cache:t,l=r?t[s]:t[s]&&s;if(l&&c[l]&&(i||c[l].data)||void 0!==n||"string"!=typeof e)return l||(l=r?t[s]=Y.pop()||ot.guid++:s),c[l]||(c[l]=r?{}:{toJSON:ot.noop}),"object"!=typeof e&&"function"!=typeof e||(i?c[l]=ot.extend(c[l],e):c[l].data=ot.extend(c[l].data,e)),a=c[l],i||(a.data||(a.data={}),a=a.data),void 0!==n&&(a[ot.camelCase(e)]=n),"string"==typeof e?(o=a[e],null==o&&(o=a[ot.camelCase(e)])):o=a,o}}function h(t,e,n){if(ot.acceptData(t)){var i,o,a=t.nodeType,s=a?ot.cache:t,r=a?t[ot.expando]:ot.expando;if(s[r]){if(e&&(i=n?s[r]:s[r].data)){ot.isArray(e)?e=e.concat(ot.map(e,ot.camelCase)):e in i?e=[e]:(e=ot.camelCase(e),e=e in i?[e]:e.split(" ")),o=e.length;for(;o--;)delete i[e[o]];if(n?!l(i):!ot.isEmptyObject(i))return}(n||(delete s[r].data,l(s[r])))&&(a?ot.cleanData([t],!0):nt.deleteExpando||s!=s.window?delete s[r]:s[r]=null)}}}function d(){return!0}function p(){return!1}function f(){try{return ft.activeElement}catch(t){}}function m(t){var e=Et.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function g(t,e){var n,i,o=0,a=typeof t.getElementsByTagName!==_t?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==_t?t.querySelectorAll(e||"*"):void 0;if(!a)for(a=[],n=t.childNodes||t;null!=(i=n[o]);o++)!e||ot.nodeName(i,e)?a.push(i):ot.merge(a,g(i,e));return void 0===e||e&&ot.nodeName(t,e)?ot.merge([t],a):a}function b(t){xt.test(t.type)&&(t.defaultChecked=t.checked)}function v(t,e){return ot.nodeName(t,"table")&&ot.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function M(t){return t.type=(null!==ot.find.attr(t,"type"))+"/"+t.type,t}function y(t){var e=Vt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function A(t,e){for(var n,i=0;null!=(n=t[i]);i++)ot._data(n,"globalEval",!e||ot._data(e[i],"globalEval"))}function z(t,e){if(1===e.nodeType&&ot.hasData(t)){var n,i,o,a=ot._data(t),s=ot._data(e,a),r=a.events;if(r){delete s.handle,s.events={};for(n in r)for(i=0,o=r[n].length;i")).appendTo(e.documentElement),e=(Qt[0].contentWindow||Qt[0].contentDocument).document,e.write(),e.close(),n=T(t,e),Qt.detach()),Zt[t]=n),n}function C(t,e){return{get:function(){var n=t();if(null!=n)return n?void delete this.get:(this.get=e).apply(this,arguments)}}}function O(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,o=de.length;o--;)if(e=de[o]+n,e in t)return e;return i}function N(t,e){for(var n,i,o,a=[],s=0,r=t.length;s=0&&n=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==ot.type(t)||t.nodeType||ot.isWindow(t))return!1;try{if(t.constructor&&!et.call(t,"constructor")&&!et.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(nt.ownLast)for(e in t)return et.call(t,e);for(e in t);return void 0===e||et.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?Z[tt.call(t)]||"object":typeof t},globalEval:function(e){e&&ot.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(st,"ms-").replace(rt,ct)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var o,a=0,s=t.length,r=n(t);if(i){if(r)for(;az.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[X]=!0,t}function o(t){var e=D.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function a(t,e){for(var n=t.split("|"),i=t.length;i--;)z.attrHandle[n[i]]=e}function s(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~t.sourceIndex||V);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function r(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function c(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function l(t){return i(function(e){return e=+e,i(function(n,i){for(var o,a=t([],n.length,e),s=a.length;s--;)n[o=a[s]]&&(n[o]=!(i[o]=n[o]))})})}function u(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function h(){}function d(t){for(var e=0,n=t.length,i="";e1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function m(t,n,i){for(var o=0,a=n.length;o-1&&(i[l]=!(s[l]=h))}}else M=g(M===s?M.splice(f,M.length):M),a?a(null,s,M,c):Q.apply(s,M)})}function v(t){for(var e,n,i,o=t.length,a=z.relative[t[0].type],s=a||z.relative[" "],r=a?1:0,c=p(function(t){return t===e},s,!0),l=p(function(t){return tt(e,t)>-1},s,!0),u=[function(t,n,i){var o=!a&&(i||n!==N)||((e=n).nodeType?c(t,n,i):l(t,n,i));return e=null,o}];r1&&f(u),r>1&&d(t.slice(0,r-1).concat({value:" "===t[r-2].type?"*":""})).replace(ct,"$1"),n,r0,a=t.length>0,s=function(i,s,r,c,l){var u,h,d,p=0,f="0",m=i&&[],b=[],v=N,M=i||a&&z.find.TAG("*",l),y=R+=null==v?1:Math.random()||.1,A=M.length;for(l&&(N=s!==D&&s);f!==A&&null!=(u=M[f]);f++){if(a&&u){for(h=0;d=t[h++];)if(d(u,s,r)){c.push(u);break}l&&(R=y)}o&&((u=!d&&u)&&p--,i&&m.push(u))}if(p+=f,o&&f!==p){for(h=0;d=n[h++];)d(m,b,s,r);if(i){if(p>0)for(;f--;)m[f]||b[f]||(b[f]=K.call(c));b=g(b)}Q.apply(c,b),l&&!i&&b.length>0&&p+n.length>1&&e.uniqueSort(c)}return l&&(R=y,N=v),m};return o?i(s):s}var y,A,z,_,T,w,C,O,N,S,x,L,D,k,q,W,E,B,I,X="sizzle"+1*new Date,P=t.document,R=0,F=0,H=n(),j=n(),U=n(),$=function(t,e){return t===e&&(x=!0),0},V=1<<31,Y={}.hasOwnProperty,J=[],K=J.pop,G=J.push,Q=J.push,Z=J.slice,tt=function(t,e){for(var n=0,i=t.length;n+~]|"+nt+")"+nt+"*"),ht=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),dt=new RegExp(st),pt=new RegExp("^"+ot+"$"),ft={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it.replace("w","w*")+")"),ATTR:new RegExp("^"+at),PSEUDO:new RegExp("^"+st),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},mt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,bt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Mt=/[+~]/,yt=/'|\\/g,At=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),zt=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},_t=function(){L()};try{Q.apply(J=Z.call(P.childNodes),P.childNodes),J[P.childNodes.length].nodeType}catch(Tt){Q={apply:J.length?function(t,e){G.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}A=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},L=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:P;return i!==D&&9===i.nodeType&&i.documentElement?(D=i,k=i.documentElement,n=i.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",_t,!1):n.attachEvent&&n.attachEvent("onunload",_t)),q=!T(i),A.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),A.getElementsByTagName=o(function(t){return t.appendChild(i.createComment("")),!t.getElementsByTagName("*").length}),A.getElementsByClassName=bt.test(i.getElementsByClassName),A.getById=o(function(t){return k.appendChild(t).id=X,!i.getElementsByName||!i.getElementsByName(X).length}),A.getById?(z.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&q){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},z.filter.ID=function(t){var e=t.replace(At,zt);return function(t){return t.getAttribute("id")===e}}):(delete z.find.ID,z.filter.ID=function(t){var e=t.replace(At,zt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),z.find.TAG=A.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):A.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,a=e.getElementsByTagName(t);if("*"===t){for(;n=a[o++];)1===n.nodeType&&i.push(n);return i}return a},z.find.CLASS=A.getElementsByClassName&&function(t,e){if(q)return e.getElementsByClassName(t)},E=[],W=[],(A.qsa=bt.test(i.querySelectorAll))&&(o(function(t){k.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&W.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||W.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+X+"-]").length||W.push("~="),t.querySelectorAll(":checked").length||W.push(":checked"),t.querySelectorAll("a#"+X+"+*").length||W.push(".#.+[+~]")}),o(function(t){var e=i.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&W.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||W.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),W.push(",.*:")})),(A.matchesSelector=bt.test(B=k.matches||k.webkitMatchesSelector||k.mozMatchesSelector||k.oMatchesSelector||k.msMatchesSelector))&&o(function(t){A.disconnectedMatch=B.call(t,"div"),B.call(t,"[s!='']:x"),E.push("!=",st)}),W=W.length&&new RegExp(W.join("|")),E=E.length&&new RegExp(E.join("|")),e=bt.test(k.compareDocumentPosition),I=e||bt.test(k.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},$=e?function(t,e){if(t===e)return x=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!A.sortDetached&&e.compareDocumentPosition(t)===n?t===i||t.ownerDocument===P&&I(P,t)?-1:e===i||e.ownerDocument===P&&I(P,e)?1:S?tt(S,t)-tt(S,e):0:4&n?-1:1)}:function(t,e){if(t===e)return x=!0,0;var n,o=0,a=t.parentNode,r=e.parentNode,c=[t],l=[e];if(!a||!r)return t===i?-1:e===i?1:a?-1:r?1:S?tt(S,t)-tt(S,e):0;if(a===r)return s(t,e);for(n=t;n=n.parentNode;)c.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;c[o]===l[o];)o++;return o?s(c[o],l[o]):c[o]===P?-1:l[o]===P?1:0},i):D},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==D&&L(t),n=n.replace(ht,"='$1']"),A.matchesSelector&&q&&(!E||!E.test(n))&&(!W||!W.test(n)))try{var i=B.call(t,n);if(i||A.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(o){}return e(n,D,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==D&&L(t),I(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==D&&L(t);var n=z.attrHandle[e.toLowerCase()],i=n&&Y.call(z.attrHandle,e.toLowerCase())?n(t,e,!q):void 0;return void 0!==i?i:A.attributes||!q?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,o=0;if(x=!A.detectDuplicates,S=!A.sortStable&&t.slice(0),t.sort($),x){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return S=null,t},_=e.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=_(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=_(e);return n},z=e.selectors={cacheLength:50,createPseudo:i,match:ft,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(At,zt),t[3]=(t[3]||t[4]||t[5]||"").replace(At,zt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&dt.test(n)&&(e=w(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(At,zt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=H[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&H(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(o){var a=e.attr(o,t);return null==a?"!="===n:!n||(a+="","="===n?a===i:"!="===n?a!==i:"^="===n?i&&0===a.indexOf(i):"*="===n?i&&a.indexOf(i)>-1:"$="===n?i&&a.slice(-i.length)===i:"~="===n?(" "+a.replace(rt," ")+" ").indexOf(i)>-1:"|="===n&&(a===i||a.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,o){var a="nth"!==t.slice(0,3),s="last"!==t.slice(-4),r="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,c){var l,u,h,d,p,f,m=a!==s?"nextSibling":"previousSibling",g=e.parentNode,b=r&&e.nodeName.toLowerCase(),v=!c&&!r;if(g){if(a){for(;m;){for(h=e;h=h[m];)if(r?h.nodeName.toLowerCase()===b:1===h.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&v){for(u=g[X]||(g[X]={}),l=u[t]||[],p=l[0]===R&&l[1],d=l[0]===R&&l[2],h=p&&g.childNodes[p];h=++p&&h&&h[m]||(d=p=0)||f.pop();)if(1===h.nodeType&&++d&&h===e){u[t]=[R,p,d];break}}else if(v&&(l=(e[X]||(e[X]={}))[t])&&l[0]===R)d=l[1];else for(;(h=++p&&h&&h[m]||(d=p=0)||f.pop())&&((r?h.nodeName.toLowerCase()!==b:1!==h.nodeType)||!++d||(v&&((h[X]||(h[X]={}))[t]=[R,d]),h!==e)););return d-=o,d===i||d%i===0&&d/i>=0}}},PSEUDO:function(t,n){var o,a=z.pseudos[t]||z.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return a[X]?a(n):a.length>1?(o=[t,t,"",n],z.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,o=a(t,n),s=o.length;s--;)i=tt(t,o[s]),t[i]=!(e[i]=o[s])}):function(t){return a(t,0,o)}):a}},pseudos:{not:i(function(t){var e=[],n=[],o=C(t.replace(ct,"$1"));return o[X]?i(function(t,e,n,i){for(var a,s=o(t,null,i,[]),r=t.length;r--;)(a=s[r])&&(t[r]=!(e[r]=a))}):function(t,i,a){return e[0]=t,o(e,null,a,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(At,zt),function(e){return(e.textContent||e.innerText||_(e)).indexOf(t)>-1}}),lang:i(function(t){return pt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(At,zt).toLowerCase(),function(e){var n;do if(n=q?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===k},focus:function(t){return t===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!z.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return mt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[n<0?n+e:n]}),even:l(function(t,e){for(var n=0;n=0;)t.push(i);return t}),gt:l(function(t,e,n){for(var i=n<0?n+e:n;++i2&&"ID"===(s=a[0]).type&&A.getById&&9===e.nodeType&&q&&z.relative[a[1].type]){if(e=(z.find.ID(s.matches[0].replace(At,zt),e)||[])[0],!e)return n;l&&(e=e.parentNode),t=t.slice(a.shift().value.length)}for(o=ft.needsContext.test(t)?0:a.length;o--&&(s=a[o],!z.relative[r=s.type]);)if((c=z.find[r])&&(i=c(s.matches[0].replace(At,zt),Mt.test(a[0].type)&&u(e.parentNode)||e))){if(a.splice(o,1),t=i.length&&d(a),!t)return Q.apply(n,i),n;break}}return(l||C(t,h))(i,e,!q,n,Mt.test(t)&&u(e.parentNode)||e),n},A.sortStable=X.split("").sort($).join("")===X,A.detectDuplicates=!!x,L(),A.sortDetached=o(function(t){return 1&t.compareDocumentPosition(D.createElement("div"))}),o(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||a("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),A.attributes&&o(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||a("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||a(et,function(t,e,n){var i;if(!n)return t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);ot.find=lt,ot.expr=lt.selectors,ot.expr[":"]=ot.expr.pseudos,ot.unique=lt.uniqueSort,ot.text=lt.getText,ot.isXMLDoc=lt.isXML,ot.contains=lt.contains;var ut=ot.expr.match.needsContext,ht=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,dt=/^.[^:#\[\.,]*$/;ot.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?ot.find.matchesSelector(i,t)?[i]:[]:ot.find.matches(t,ot.grep(e,function(t){return 1===t.nodeType}))},ot.fn.extend({find:function(t){var e,n=[],i=this,o=i.length;if("string"!=typeof t)return this.pushStack(ot(t).filter(function(){for(e=0;e1?ot.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(i(this,t||[],!1))},not:function(t){return this.pushStack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&ut.test(t)?ot(t):t||[],!1).length}});var pt,ft=t.document,mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,gt=ot.fn.init=function(t,e){var n,i;if(!t)return this;if("string"==typeof t){if(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:mt.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||pt).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof ot?e[0]:e,ot.merge(this,ot.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:ft,!0)),ht.test(n[1])&&ot.isPlainObject(e))for(n in e)ot.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if(i=ft.getElementById(n[2]),i&&i.parentNode){if(i.id!==n[2])return pt.find(t);this.length=1,this[0]=i}return this.context=ft,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ot.isFunction(t)?"undefined"!=typeof pt.ready?pt.ready(t):t(ot):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ot.makeArray(t,this))};gt.prototype=ot.fn,pt=ot(ft);var bt=/^(?:parents|prev(?:Until|All))/,vt={children:!0,contents:!0,next:!0,prev:!0};ot.extend({dir:function(t,e,n){for(var i=[],o=t[e];o&&9!==o.nodeType&&(void 0===n||1!==o.nodeType||!ot(o).is(n));)1===o.nodeType&&i.push(o),o=o[e];return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),ot.fn.extend({has:function(t){var e,n=ot(t,this),i=n.length;return this.filter(function(){for(e=0;e-1:1===n.nodeType&&ot.find.matchesSelector(n,t))){a.push(n);break}return this.pushStack(a.length>1?ot.unique(a):a)},index:function(t){return t?"string"==typeof t?ot.inArray(this[0],ot(t)):ot.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ot.unique(ot.merge(this.get(),ot(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ot.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return ot.dir(t,"parentNode")},parentsUntil:function(t,e,n){return ot.dir(t,"parentNode",n)},next:function(t){return o(t,"nextSibling")},prev:function(t){return o(t,"previousSibling")},nextAll:function(t){return ot.dir(t,"nextSibling")},prevAll:function(t){return ot.dir(t,"previousSibling")},nextUntil:function(t,e,n){return ot.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return ot.dir(t,"previousSibling",n)},siblings:function(t){return ot.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return ot.sibling(t.firstChild)},contents:function(t){return ot.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:ot.merge([],t.childNodes)}},function(t,e){ot.fn[t]=function(n,i){var o=ot.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=ot.filter(i,o)),this.length>1&&(vt[t]||(o=ot.unique(o)),bt.test(t)&&(o=o.reverse())),this.pushStack(o)}});var Mt=/\S+/g,yt={};ot.Callbacks=function(t){t="string"==typeof t?yt[t]||a(t):ot.extend({},t);var e,n,i,o,s,r,c=[],l=!t.once&&[],u=function(a){for(n=t.memory&&a,i=!0,s=r||0,r=0,o=c.length,e=!0;c&&s-1;)c.splice(i,1),e&&(i<=o&&o--,i<=s&&s--)}),this},has:function(t){return t?ot.inArray(t,c)>-1:!(!c||!c.length)},empty:function(){return c=[],o=0,this},disable:function(){return c=l=n=void 0,this},disabled:function(){return!c},lock:function(){return l=void 0,n||h.disable(),this},locked:function(){return!l},fireWith:function(t,n){return!c||i&&!l||(n=n||[],n=[t,n.slice?n.slice():n],e?l.push(n):u(n)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!i}};return h},ot.extend({Deferred:function(t){var e=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ot.Deferred(function(n){ot.each(e,function(e,a){var s=ot.isFunction(t[e])&&t[e];o[a[1]](function(){var t=s&&s.apply(this,arguments);t&&ot.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a[0]+"With"](this===i?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ot.extend(t,i):i}},o={};return i.pipe=i.then,ot.each(e,function(t,a){var s=a[2],r=a[3];i[a[1]]=s.add,r&&s.add(function(){n=r},e[1^t][2].disable,e[2][2].lock),o[a[0]]=function(){return o[a[0]+"With"](this===o?i:this,arguments),this},o[a[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e,n,i,o=0,a=J.call(arguments),s=a.length,r=1!==s||t&&ot.isFunction(t.promise)?s:0,c=1===r?t:ot.Deferred(),l=function(t,n,i){return function(o){n[t]=this,i[t]=arguments.length>1?J.call(arguments):o,i===e?c.notifyWith(n,i):--r||c.resolveWith(n,i)}};if(s>1)for(e=new Array(s),n=new Array(s),i=new Array(s);o0||(At.resolveWith(ft,[ot]),ot.fn.triggerHandler&&(ot(ft).triggerHandler("ready"),ot(ft).off("ready")))}}}),ot.ready.promise=function(e){if(!At)if(At=ot.Deferred(),"complete"===ft.readyState)setTimeout(ot.ready);else if(ft.addEventListener)ft.addEventListener("DOMContentLoaded",r,!1),t.addEventListener("load",r,!1);else{ft.attachEvent("onreadystatechange",r),t.attachEvent("onload",r);var n=!1;try{n=null==t.frameElement&&ft.documentElement}catch(i){}n&&n.doScroll&&!function o(){if(!ot.isReady){try{n.doScroll("left")}catch(t){return setTimeout(o,50)}s(),ot.ready()}}()}return At.promise(e)};var zt,_t="undefined";for(zt in ot(nt))break;nt.ownLast="0"!==zt,nt.inlineBlockNeedsLayout=!1,ot(function(){var t,e,n,i;n=ft.getElementsByTagName("body")[0],n&&n.style&&(e=ft.createElement("div"),i=ft.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),typeof e.style.zoom!==_t&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",nt.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(i))}),function(){var t=ft.createElement("div");if(null==nt.deleteExpando){nt.deleteExpando=!0;try{delete t.test}catch(e){nt.deleteExpando=!1}}t=null}(),ot.acceptData=function(t){var e=ot.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||e!==!0&&t.getAttribute("classid")===e)};var Tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,wt=/([A-Z])/g;ot.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return t=t.nodeType?ot.cache[t[ot.expando]]:t[ot.expando],!!t&&!l(t)},data:function(t,e,n){return u(t,e,n)},removeData:function(t,e){return h(t,e)},_data:function(t,e,n){return u(t,e,n,!0)},_removeData:function(t,e){return h(t,e,!0)}}),ot.fn.extend({data:function(t,e){var n,i,o,a=this[0],s=a&&a.attributes;if(void 0===t){if(this.length&&(o=ot.data(a),1===a.nodeType&&!ot._data(a,"parsedAttrs"))){for(n=s.length;n--;)s[n]&&(i=s[n].name,0===i.indexOf("data-")&&(i=ot.camelCase(i.slice(5)),c(a,i,o[i])));ot._data(a,"parsedAttrs",!0)}return o}return"object"==typeof t?this.each(function(){ot.data(this,t)}):arguments.length>1?this.each(function(){ot.data(this,t,e)}):a?c(a,t,ot.data(a,t)):void 0},removeData:function(t){return this.each(function(){ot.removeData(this,t)})}}),ot.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=ot._data(t,e),n&&(!i||ot.isArray(n)?i=ot._data(t,e,ot.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=ot.queue(t,e),i=n.length,o=n.shift(),a=ot._queueHooks(t,e),s=function(){ot.dequeue(t,e)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete a.stop,o.call(t,s,a)),!i&&a&&a.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return ot._data(t,n)||ot._data(t,n,{empty:ot.Callbacks("once memory").add(function(){ot._removeData(t,e+"queue"),ot._removeData(t,n)})})}}),ot.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length
a",nt.leadingWhitespace=3===e.firstChild.nodeType,nt.tbody=!e.getElementsByTagName("tbody").length,nt.htmlSerialize=!!e.getElementsByTagName("link").length,nt.html5Clone="<:nav>"!==ft.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),nt.appendChecked=t.checked,e.innerHTML="",nt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="",nt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,nt.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){nt.noCloneEvent=!1}),e.cloneNode(!0).click()),null==nt.deleteExpando){nt.deleteExpando=!0;try{delete e.test}catch(i){nt.deleteExpando=!1}}}(),function(){var e,n,i=ft.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(nt[e+"Bubbles"]=n in t)||(i.setAttribute(n,"t"),nt[e+"Bubbles"]=i.attributes[n].expando===!1);i=null}();var Lt=/^(?:input|select|textarea)$/i,Dt=/^key/,kt=/^(?:mouse|pointer|contextmenu)|click/,qt=/^(?:focusinfocus|focusoutblur)$/,Wt=/^([^.]*)(?:\.(.+)|)$/;ot.event={global:{},add:function(t,e,n,i,o){var a,s,r,c,l,u,h,d,p,f,m,g=ot._data(t);if(g){for(n.handler&&(c=n,n=c.handler,o=c.selector),n.guid||(n.guid=ot.guid++),(s=g.events)||(s=g.events={}),(u=g.handle)||(u=g.handle=function(t){return typeof ot===_t||t&&ot.event.triggered===t.type?void 0:ot.event.dispatch.apply(u.elem,arguments)},u.elem=t),e=(e||"").match(Mt)||[""],r=e.length;r--;)a=Wt.exec(e[r])||[],p=m=a[1],f=(a[2]||"").split(".").sort(),p&&(l=ot.event.special[p]||{},p=(o?l.delegateType:l.bindType)||p,l=ot.event.special[p]||{},h=ot.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&ot.expr.match.needsContext.test(o),namespace:f.join(".")},c),(d=s[p])||(d=s[p]=[],d.delegateCount=0,l.setup&&l.setup.call(t,i,f,u)!==!1||(t.addEventListener?t.addEventListener(p,u,!1):t.attachEvent&&t.attachEvent("on"+p,u))),l.add&&(l.add.call(t,h),h.handler.guid||(h.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,h):d.push(h),ot.event.global[p]=!0);t=null}},remove:function(t,e,n,i,o){var a,s,r,c,l,u,h,d,p,f,m,g=ot.hasData(t)&&ot._data(t);if(g&&(u=g.events)){for(e=(e||"").match(Mt)||[""],l=e.length;l--;)if(r=Wt.exec(e[l])||[],p=m=r[1],f=(r[2]||"").split(".").sort(),p){for(h=ot.event.special[p]||{},p=(i?h.delegateType:h.bindType)||p,d=u[p]||[],r=r[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),c=a=d.length;a--;)s=d[a],!o&&m!==s.origType||n&&n.guid!==s.guid||r&&!r.test(s.namespace)||i&&i!==s.selector&&("**"!==i||!s.selector)||(d.splice(a,1),s.selector&&d.delegateCount--,h.remove&&h.remove.call(t,s));c&&!d.length&&(h.teardown&&h.teardown.call(t,f,g.handle)!==!1||ot.removeEvent(t,p,g.handle),delete u[p])}else for(p in u)ot.event.remove(t,p+e[l],n,i,!0);ot.isEmptyObject(u)&&(delete g.handle,ot._removeData(t,"events"))}},trigger:function(e,n,i,o){var a,s,r,c,l,u,h,d=[i||ft],p=et.call(e,"type")?e.type:e,f=et.call(e,"namespace")?e.namespace.split("."):[]; -if(r=u=i=i||ft,3!==i.nodeType&&8!==i.nodeType&&!qt.test(p+ot.event.triggered)&&(p.indexOf(".")>=0&&(f=p.split("."),p=f.shift(),f.sort()),s=p.indexOf(":")<0&&"on"+p,e=e[ot.expando]?e:new ot.Event(p,"object"==typeof e&&e),e.isTrigger=o?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:ot.makeArray(n,[e]),l=ot.event.special[p]||{},o||!l.trigger||l.trigger.apply(i,n)!==!1)){if(!o&&!l.noBubble&&!ot.isWindow(i)){for(c=l.delegateType||p,qt.test(c+p)||(r=r.parentNode);r;r=r.parentNode)d.push(r),u=r;u===(i.ownerDocument||ft)&&d.push(u.defaultView||u.parentWindow||t)}for(h=0;(r=d[h++])&&!e.isPropagationStopped();)e.type=h>1?c:l.bindType||p,a=(ot._data(r,"events")||{})[e.type]&&ot._data(r,"handle"),a&&a.apply(r,n),a=s&&r[s],a&&a.apply&&ot.acceptData(r)&&(e.result=a.apply(r,n),e.result===!1&&e.preventDefault());if(e.type=p,!o&&!e.isDefaultPrevented()&&(!l._default||l._default.apply(d.pop(),n)===!1)&&ot.acceptData(i)&&s&&i[p]&&!ot.isWindow(i)){u=i[s],u&&(i[s]=null),ot.event.triggered=p;try{i[p]()}catch(m){}ot.event.triggered=void 0,u&&(i[s]=u)}return e.result}},dispatch:function(t){t=ot.event.fix(t);var e,n,i,o,a,s=[],r=J.call(arguments),c=(ot._data(this,"events")||{})[t.type]||[],l=ot.event.special[t.type]||{};if(r[0]=t,t.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,t)!==!1){for(s=ot.event.handlers.call(this,t,c),e=0;(o=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,a=0;(i=o.handlers[a++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(i.namespace)||(t.handleObj=i,t.data=i.data,n=((ot.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,r),void 0!==n&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,o,a,s=[],r=e.delegateCount,c=t.target;if(r&&c.nodeType&&(!t.button||"click"!==t.type))for(;c!=this;c=c.parentNode||this)if(1===c.nodeType&&(c.disabled!==!0||"click"!==t.type)){for(o=[],a=0;a=0:ot.find(n,this,null,[c]).length),o[n]&&o.push(i);o.length&&s.push({elem:c,handlers:o})}return r]","i"),Xt=/^\s+/,Pt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Rt=/<([\w:]+)/,Ft=/\s*$/g,Jt={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:nt.htmlSerialize?[0,"",""]:[1,"X
","
"]},Kt=m(ft),Gt=Kt.appendChild(ft.createElement("div"));Jt.optgroup=Jt.option,Jt.tbody=Jt.tfoot=Jt.colgroup=Jt.caption=Jt.thead,Jt.th=Jt.td,ot.extend({clone:function(t,e,n){var i,o,a,s,r,c=ot.contains(t.ownerDocument,t);if(nt.html5Clone||ot.isXMLDoc(t)||!It.test("<"+t.nodeName+">")?a=t.cloneNode(!0):(Gt.innerHTML=t.outerHTML,Gt.removeChild(a=Gt.firstChild)),!(nt.noCloneEvent&&nt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ot.isXMLDoc(t)))for(i=g(a),r=g(t),s=0;null!=(o=r[s]);++s)i[s]&&_(o,i[s]);if(e)if(n)for(r=r||g(t),i=i||g(a),s=0;null!=(o=r[s]);s++)z(o,i[s]);else z(t,a);return i=g(a,"script"),i.length>0&&A(i,!c&&g(t,"script")),i=r=o=null,a},buildFragment:function(t,e,n,i){for(var o,a,s,r,c,l,u,h=t.length,d=m(e),p=[],f=0;f")+u[2],o=u[0];o--;)r=r.lastChild;if(!nt.leadingWhitespace&&Xt.test(a)&&p.push(e.createTextNode(Xt.exec(a)[0])),!nt.tbody)for(a="table"!==c||Ft.test(a)?""!==u[1]||Ft.test(a)?0:r:r.firstChild,o=a&&a.childNodes.length;o--;)ot.nodeName(l=a.childNodes[o],"tbody")&&!l.childNodes.length&&a.removeChild(l);for(ot.merge(p,r.childNodes),r.textContent="";r.firstChild;)r.removeChild(r.firstChild);r=d.lastChild}else p.push(e.createTextNode(a));for(r&&d.removeChild(r),nt.appendChecked||ot.grep(g(p,"input"),b),f=0;a=p[f++];)if((!i||ot.inArray(a,i)===-1)&&(s=ot.contains(a.ownerDocument,a),r=g(d.appendChild(a),"script"),s&&A(r),n))for(o=0;a=r[o++];)$t.test(a.type||"")&&n.push(a);return r=null,d},cleanData:function(t,e){for(var n,i,o,a,s=0,r=ot.expando,c=ot.cache,l=nt.deleteExpando,u=ot.event.special;null!=(n=t[s]);s++)if((e||ot.acceptData(n))&&(o=n[r],a=o&&c[o])){if(a.events)for(i in a.events)u[i]?ot.event.remove(n,i):ot.removeEvent(n,i,a.handle);c[o]&&(delete c[o],l?delete n[r]:typeof n.removeAttribute!==_t?n.removeAttribute(r):n[r]=null,Y.push(o))}}}),ot.fn.extend({text:function(t){return St(this,function(t){return void 0===t?ot.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ft).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?ot.filter(t,this):this,o=0;null!=(n=i[o]);o++)e||1!==n.nodeType||ot.cleanData(g(n)),n.parentNode&&(e&&ot.contains(n.ownerDocument,n)&&A(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&ot.cleanData(g(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&ot.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ot.clone(this,t,e)})},html:function(t){return St(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Bt,""):void 0;if("string"==typeof t&&!jt.test(t)&&(nt.htmlSerialize||!It.test(t))&&(nt.leadingWhitespace||!Xt.test(t))&&!Jt[(Rt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Pt,"<$1>");try{for(;n1&&"string"==typeof d&&!nt.checkClone&&Ut.test(d))return this.each(function(n){var i=u.eq(n);p&&(t[0]=d.call(this,n,i.html())),i.domManip(t,e)});if(l&&(r=ot.buildFragment(t,this[0].ownerDocument,!1,this),n=r.firstChild,1===r.childNodes.length&&(r=n),n)){for(a=ot.map(g(r,"script"),M),o=a.length;c
t
",o=e.getElementsByTagName("td"),o[0].style.cssText="margin:0;border:0;padding:0;display:none",r=0===o[0].offsetHeight,r&&(o[0].style.display="",o[1].style.display="none",r=0===o[0].offsetHeight),n.removeChild(i))}var n,i,o,a,s,r,c;n=ft.createElement("div"),n.innerHTML="
a",o=n.getElementsByTagName("a")[0],i=o&&o.style,i&&(i.cssText="float:left;opacity:.5",nt.opacity="0.5"===i.opacity,nt.cssFloat=!!i.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",nt.clearCloneStyle="content-box"===n.style.backgroundClip,nt.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,ot.extend(nt,{reliableHiddenOffsets:function(){return null==r&&e(),r},boxSizingReliable:function(){return null==s&&e(),s},pixelPosition:function(){return null==a&&e(),a},reliableMarginRight:function(){return null==c&&e(),c}}))}(),ot.swap=function(t,e,n,i){var o,a,s={};for(a in e)s[a]=t.style[a],t.style[a]=e[a];o=n.apply(t,i||[]);for(a in e)t.style[a]=s[a];return o};var ae=/alpha\([^)]*\)/i,se=/opacity\s*=\s*([^)]*)/,re=/^(none|table(?!-c[ea]).+)/,ce=new RegExp("^("+Ct+")(.*)$","i"),le=new RegExp("^([+-])=("+Ct+")","i"),ue={position:"absolute",visibility:"hidden",display:"block"},he={letterSpacing:"0",fontWeight:"400"},de=["Webkit","O","Moz","ms"];ot.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=ee(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":nt.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,a,s,r=ot.camelCase(e),c=t.style;if(e=ot.cssProps[r]||(ot.cssProps[r]=O(c,r)),s=ot.cssHooks[e]||ot.cssHooks[r],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(t,!1,i))?o:c[e];if(a=typeof n,"string"===a&&(o=le.exec(n))&&(n=(o[1]+1)*o[2]+parseFloat(ot.css(t,e)),a="number"),null!=n&&n===n&&("number"!==a||ot.cssNumber[r]||(n+="px"),nt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),!(s&&"set"in s&&void 0===(n=s.set(t,n,i)))))try{c[e]=n}catch(l){}}},css:function(t,e,n,i){var o,a,s,r=ot.camelCase(e);return e=ot.cssProps[r]||(ot.cssProps[r]=O(t.style,r)),s=ot.cssHooks[e]||ot.cssHooks[r],s&&"get"in s&&(a=s.get(t,!0,n)),void 0===a&&(a=ee(t,e,i)),"normal"===a&&e in he&&(a=he[e]),""===n||n?(o=parseFloat(a),n===!0||ot.isNumeric(o)?o||0:a):a}}),ot.each(["height","width"],function(t,e){ot.cssHooks[e]={get:function(t,n,i){if(n)return re.test(ot.css(t,"display"))&&0===t.offsetWidth?ot.swap(t,ue,function(){return L(t,e,i)}):L(t,e,i)},set:function(t,n,i){var o=i&&te(t);return S(t,n,i?x(t,e,i,nt.boxSizing&&"border-box"===ot.css(t,"boxSizing",!1,o),o):0)}}}),nt.opacity||(ot.cssHooks.opacity={get:function(t,e){return se.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,o=ot.isNumeric(e)?"alpha(opacity="+100*e+")":"",a=i&&i.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===ot.trim(a.replace(ae,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||i&&!i.filter)||(n.filter=ae.test(a)?a.replace(ae,o):a+" "+o)}}),ot.cssHooks.marginRight=C(nt.reliableMarginRight,function(t,e){if(e)return ot.swap(t,{display:"inline-block"},ee,[t,"marginRight"])}),ot.each({margin:"",padding:"",border:"Width"},function(t,e){ot.cssHooks[t+e]={expand:function(n){for(var i=0,o={},a="string"==typeof n?n.split(" "):[n];i<4;i++)o[t+Ot[i]+e]=a[i]||a[i-2]||a[0];return o}},ne.test(t)||(ot.cssHooks[t+e].set=S)}),ot.fn.extend({css:function(t,e){return St(this,function(t,e,n){var i,o,a={},s=0;if(ot.isArray(e)){for(i=te(t),o=e.length;s1)},show:function(){return N(this,!0)},hide:function(){return N(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Nt(this)?ot(this).show():ot(this).hide()})}}),ot.Tween=D,D.prototype={constructor:D,init:function(t,e,n,i,o,a){this.elem=t,this.prop=n,this.easing=o||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=a||(ot.cssNumber[n]?"":"px")},cur:function(){var t=D.propHooks[this.prop];return t&&t.get?t.get(this):D.propHooks._default.get(this)},run:function(t){var e,n=D.propHooks[this.prop];return this.options.duration?this.pos=e=ot.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=ot.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){ot.fx.step[t.prop]?ot.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[ot.cssProps[t.prop]]||ot.cssHooks[t.prop])?ot.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ot.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},ot.fx=D.prototype.init,ot.fx.step={};var pe,fe,me=/^(?:toggle|show|hide)$/,ge=new RegExp("^(?:([+-])=|)("+Ct+")([a-z%]*)$","i"),be=/queueHooks$/,ve=[E],Me={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),o=ge.exec(e),a=o&&o[3]||(ot.cssNumber[t]?"":"px"),s=(ot.cssNumber[t]||"px"!==a&&+i)&&ge.exec(ot.css(n.elem,t)),r=1,c=20;if(s&&s[3]!==a){a=a||s[3],o=o||[],s=+i||1;do r=r||".5",s/=r,ot.style(n.elem,t,s+a);while(r!==(r=n.cur()/i)&&1!==r&&--c)}return o&&(s=n.start=+s||+i||0,n.unit=a,n.end=o[1]?s+(o[1]+1)*o[2]:+o[2]),n}]};ot.Animation=ot.extend(I,{tweener:function(t,e){ot.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,o=t.length;i
a",i=e.getElementsByTagName("a")[0],n=ft.createElement("select"),o=n.appendChild(ft.createElement("option")),t=e.getElementsByTagName("input")[0],i.style.cssText="top:1px",nt.getSetAttribute="t"!==e.className,nt.style=/top/.test(i.getAttribute("style")),nt.hrefNormalized="/a"===i.getAttribute("href"),nt.checkOn=!!t.value,nt.optSelected=o.selected,nt.enctype=!!ft.createElement("form").enctype,n.disabled=!0,nt.optDisabled=!o.disabled,t=ft.createElement("input"),t.setAttribute("value",""),nt.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),nt.radioValue="t"===t.value}();var ye=/\r/g;ot.fn.extend({val:function(t){var e,n,i,o=this[0];{if(arguments.length)return i=ot.isFunction(t),this.each(function(n){var o;1===this.nodeType&&(o=i?t.call(this,n,ot(this).val()):t,null==o?o="":"number"==typeof o?o+="":ot.isArray(o)&&(o=ot.map(o,function(t){return null==t?"":t+""})),e=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))});if(o)return e=ot.valHooks[o.type]||ot.valHooks[o.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(ye,""):null==n?"":n)}}}),ot.extend({valHooks:{option:{get:function(t){var e=ot.find.attr(t,"value");return null!=e?e:ot.trim(ot.text(t))}},select:{get:function(t){for(var e,n,i=t.options,o=t.selectedIndex,a="select-one"===t.type||o<0,s=a?null:[],r=a?o+1:i.length,c=o<0?r:a?o:0;c=0)try{i.selected=n=!0}catch(r){i.scrollHeight}else i.selected=!1;return n||(t.selectedIndex=-1),o}}}}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(t,e){if(ot.isArray(e))return t.checked=ot.inArray(ot(t).val(),e)>=0}},nt.checkOn||(ot.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ae,ze,_e=ot.expr.attrHandle,Te=/^(?:checked|selected)$/i,we=nt.getSetAttribute,Ce=nt.input;ot.fn.extend({attr:function(t,e){return St(this,ot.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ot.removeAttr(this,t)})}}),ot.extend({attr:function(t,e,n){var i,o,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return typeof t.getAttribute===_t?ot.prop(t,e,n):(1===a&&ot.isXMLDoc(t)||(e=e.toLowerCase(),i=ot.attrHooks[e]||(ot.expr.match.bool.test(e)?ze:Ae)),void 0===n?i&&"get"in i&&null!==(o=i.get(t,e))?o:(o=ot.find.attr(t,e),null==o?void 0:o):null!==n?i&&"set"in i&&void 0!==(o=i.set(t,n,e))?o:(t.setAttribute(e,n+""),n):void ot.removeAttr(t,e))},removeAttr:function(t,e){var n,i,o=0,a=e&&e.match(Mt);if(a&&1===t.nodeType)for(;n=a[o++];)i=ot.propFix[n]||n,ot.expr.match.bool.test(n)?Ce&&we||!Te.test(n)?t[i]=!1:t[ot.camelCase("default-"+n)]=t[i]=!1:ot.attr(t,n,""),t.removeAttribute(we?n:i)},attrHooks:{type:{set:function(t,e){if(!nt.radioValue&&"radio"===e&&ot.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),ze={set:function(t,e,n){return e===!1?ot.removeAttr(t,n):Ce&&we||!Te.test(n)?t.setAttribute(!we&&ot.propFix[n]||n,n):t[ot.camelCase("default-"+n)]=t[n]=!0,n}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(t,e){var n=_e[e]||ot.find.attr;_e[e]=Ce&&we||!Te.test(e)?function(t,e,i){var o,a;return i||(a=_e[e],_e[e]=o,o=null!=n(t,e,i)?e.toLowerCase():null,_e[e]=a),o}:function(t,e,n){if(!n)return t[ot.camelCase("default-"+e)]?e.toLowerCase():null}}),Ce&&we||(ot.attrHooks.value={set:function(t,e,n){return ot.nodeName(t,"input")?void(t.defaultValue=e):Ae&&Ae.set(t,e,n)}}),we||(Ae={set:function(t,e,n){var i=t.getAttributeNode(n);if(i||t.setAttributeNode(i=t.ownerDocument.createAttribute(n)),i.value=e+="","value"===n||e===t.getAttribute(n))return e}},_e.id=_e.name=_e.coords=function(t,e,n){var i;if(!n)return(i=t.getAttributeNode(e))&&""!==i.value?i.value:null},ot.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:Ae.set},ot.attrHooks.contenteditable={set:function(t,e,n){Ae.set(t,""!==e&&e,n)}},ot.each(["width","height"],function(t,e){ot.attrHooks[e]={set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}}})),nt.style||(ot.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Oe=/^(?:input|select|textarea|button|object)$/i,Ne=/^(?:a|area)$/i;ot.fn.extend({prop:function(t,e){return St(this,ot.prop,t,e,arguments.length>1)},removeProp:function(t){return t=ot.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(e){}})}}),ot.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var i,o,a,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return a=1!==s||!ot.isXMLDoc(t),a&&(e=ot.propFix[e]||e,o=ot.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=ot.find.attr(t,"tabindex");return e?parseInt(e,10):Oe.test(t.nodeName)||Ne.test(t.nodeName)&&t.href?0:-1}}}}),nt.hrefNormalized||ot.each(["href","src"],function(t,e){ot.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),nt.optSelected||(ot.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ -ot.propFix[this.toLowerCase()]=this}),nt.enctype||(ot.propFix.enctype="encoding");var Se=/[\t\r\n\f]/g;ot.fn.extend({addClass:function(t){var e,n,i,o,a,s,r=0,c=this.length,l="string"==typeof t&&t;if(ot.isFunction(t))return this.each(function(e){ot(this).addClass(t.call(this,e,this.className))});if(l)for(e=(t||"").match(Mt)||[];r=0;)i=i.replace(" "+o+" "," ");s=t?ot.trim(i):"",n.className!==s&&(n.className=s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):ot.isFunction(t)?this.each(function(n){ot(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,i=0,o=ot(this),a=t.match(Mt)||[];e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else n!==_t&&"boolean"!==n||(this.className&&ot._data(this,"__className__",this.className),this.className=this.className||t===!1?"":ot._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;n=0)return!0;return!1}}),ot.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ot.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ot.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var xe=ot.now(),Le=/\?/,De=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ot.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var n,i=null,o=ot.trim(e+"");return o&&!ot.trim(o.replace(De,function(t,e,o,a){return n&&e&&(i=0),0===i?t:(n=o||e,i+=!a-!o,"")}))?Function("return "+o)():ot.error("Invalid JSON: "+e)},ot.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(i=new DOMParser,n=i.parseFromString(e,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(e))}catch(o){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ot.error("Invalid XML: "+e),n};var ke,qe,We=/#.*$/,Ee=/([?&])_=[^&]*/,Be=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ie=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Xe=/^(?:GET|HEAD)$/,Pe=/^\/\//,Re=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Fe={},He={},je="*/".concat("*");try{qe=location.href}catch(Ue){qe=ft.createElement("a"),qe.href="",qe=qe.href}ke=Re.exec(qe.toLowerCase())||[],ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:qe,type:"GET",isLocal:Ie.test(ke[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":je,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?R(R(t,ot.ajaxSettings),e):R(ot.ajaxSettings,t)},ajaxPrefilter:X(Fe),ajaxTransport:X(He),ajax:function(t,e){function n(t,e,n,i){var o,u,b,v,y,z=e;2!==M&&(M=2,r&&clearTimeout(r),l=void 0,s=i||"",A.readyState=t>0?4:0,o=t>=200&&t<300||304===t,n&&(v=F(h,A,n)),v=H(h,v,A,o),o?(h.ifModified&&(y=A.getResponseHeader("Last-Modified"),y&&(ot.lastModified[a]=y),y=A.getResponseHeader("etag"),y&&(ot.etag[a]=y)),204===t||"HEAD"===h.type?z="nocontent":304===t?z="notmodified":(z=v.state,u=v.data,b=v.error,o=!b)):(b=z,!t&&z||(z="error",t<0&&(t=0))),A.status=t,A.statusText=(e||z)+"",o?f.resolveWith(d,[u,z,A]):f.rejectWith(d,[A,z,b]),A.statusCode(g),g=void 0,c&&p.trigger(o?"ajaxSuccess":"ajaxError",[A,h,o?u:b]),m.fireWith(d,[A,z]),c&&(p.trigger("ajaxComplete",[A,h]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,o,a,s,r,c,l,u,h=ot.ajaxSetup({},e),d=h.context||h,p=h.context&&(d.nodeType||d.jquery)?ot(d):ot.event,f=ot.Deferred(),m=ot.Callbacks("once memory"),g=h.statusCode||{},b={},v={},M=0,y="canceled",A={readyState:0,getResponseHeader:function(t){var e;if(2===M){if(!u)for(u={};e=Be.exec(s);)u[e[1].toLowerCase()]=e[2];e=u[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===M?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return M||(t=v[n]=v[n]||t,b[t]=e),this},overrideMimeType:function(t){return M||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(M<2)for(e in t)g[e]=[g[e],t[e]];else A.always(t[A.status]);return this},abort:function(t){var e=t||y;return l&&l.abort(e),n(0,e),this}};if(f.promise(A).complete=m.add,A.success=A.done,A.error=A.fail,h.url=((t||h.url||qe)+"").replace(We,"").replace(Pe,ke[1]+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=ot.trim(h.dataType||"*").toLowerCase().match(Mt)||[""],null==h.crossDomain&&(i=Re.exec(h.url.toLowerCase()),h.crossDomain=!(!i||i[1]===ke[1]&&i[2]===ke[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(ke[3]||("http:"===ke[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ot.param(h.data,h.traditional)),P(Fe,h,e,A),2===M)return A;c=ot.event&&h.global,c&&0===ot.active++&&ot.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Xe.test(h.type),a=h.url,h.hasContent||(h.data&&(a=h.url+=(Le.test(a)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=Ee.test(a)?a.replace(Ee,"$1_="+xe++):a+(Le.test(a)?"&":"?")+"_="+xe++)),h.ifModified&&(ot.lastModified[a]&&A.setRequestHeader("If-Modified-Since",ot.lastModified[a]),ot.etag[a]&&A.setRequestHeader("If-None-Match",ot.etag[a])),(h.data&&h.hasContent&&h.contentType!==!1||e.contentType)&&A.setRequestHeader("Content-Type",h.contentType),A.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+je+"; q=0.01":""):h.accepts["*"]);for(o in h.headers)A.setRequestHeader(o,h.headers[o]);if(h.beforeSend&&(h.beforeSend.call(d,A,h)===!1||2===M))return A.abort();y="abort";for(o in{success:1,error:1,complete:1})A[o](h[o]);if(l=P(He,h,e,A)){A.readyState=1,c&&p.trigger("ajaxSend",[A,h]),h.async&&h.timeout>0&&(r=setTimeout(function(){A.abort("timeout")},h.timeout));try{M=1,l.send(b,n)}catch(z){if(!(M<2))throw z;n(-1,z)}}else n(-1,"No Transport");return A},getJSON:function(t,e,n){return ot.get(t,e,n,"json")},getScript:function(t,e){return ot.get(t,void 0,e,"script")}}),ot.each(["get","post"],function(t,e){ot[e]=function(t,n,i,o){return ot.isFunction(n)&&(o=o||i,i=n,n=void 0),ot.ajax({url:t,type:e,dataType:o,data:n,success:i})}}),ot._evalUrl=function(t){return ot.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},ot.fn.extend({wrapAll:function(t){if(ot.isFunction(t))return this.each(function(e){ot(this).wrapAll(t.call(this,e))});if(this[0]){var e=ot(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return ot.isFunction(t)?this.each(function(e){ot(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ot(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ot.isFunction(t);return this.each(function(n){ot(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}}),ot.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!nt.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||ot.css(t,"display"))},ot.expr.filters.visible=function(t){return!ot.expr.filters.hidden(t)};var $e=/%20/g,Ve=/\[\]$/,Ye=/\r?\n/g,Je=/^(?:submit|button|image|reset|file)$/i,Ke=/^(?:input|select|textarea|keygen)/i;ot.param=function(t,e){var n,i=[],o=function(t,e){e=ot.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(t)||t.jquery&&!ot.isPlainObject(t))ot.each(t,function(){o(this.name,this.value)});else for(n in t)j(n,t[n],e,o);return i.join("&").replace($e,"+")},ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ot.prop(this,"elements");return t?ot.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ot(this).is(":disabled")&&Ke.test(this.nodeName)&&!Je.test(t)&&(this.checked||!xt.test(t))}).map(function(t,e){var n=ot(this).val();return null==n?null:ot.isArray(n)?ot.map(n,function(t){return{name:e.name,value:t.replace(Ye,"\r\n")}}):{name:e.name,value:n.replace(Ye,"\r\n")}}).get()}}),ot.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&U()||$()}:U;var Ge=0,Qe={},Ze=ot.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in Qe)Qe[t](void 0,!0)}),nt.cors=!!Ze&&"withCredentials"in Ze,Ze=nt.ajax=!!Ze,Ze&&ot.ajaxTransport(function(t){if(!t.crossDomain||nt.cors){var e;return{send:function(n,i){var o,a=t.xhr(),s=++Ge;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(o in n)void 0!==n[o]&&a.setRequestHeader(o,n[o]+"");a.send(t.hasContent&&t.data||null),e=function(n,o){var r,c,l;if(e&&(o||4===a.readyState))if(delete Qe[s],e=void 0,a.onreadystatechange=ot.noop,o)4!==a.readyState&&a.abort();else{l={},r=a.status,"string"==typeof a.responseText&&(l.text=a.responseText);try{c=a.statusText}catch(u){c=""}r||!t.isLocal||t.crossDomain?1223===r&&(r=204):r=l.text?200:404}l&&i(r,c,l,a.getAllResponseHeaders())},t.async?4===a.readyState?setTimeout(e):a.onreadystatechange=Qe[s]=e:e()},abort:function(){e&&e(void 0,!0)}}}}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return ot.globalEval(t),t}}}),ot.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),ot.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=ft.head||ot("head")[0]||ft.documentElement;return{send:function(i,o){e=ft.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||o(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var tn=[],en=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=tn.pop()||ot.expando+"_"+xe++;return this[t]=!0,t}}),ot.ajaxPrefilter("json jsonp",function(e,n,i){var o,a,s,r=e.jsonp!==!1&&(en.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&en.test(e.data)&&"data");if(r||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=ot.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(en,"$1"+o):e.jsonp!==!1&&(e.url+=(Le.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return s||ot.error(o+" was not called"),s[0]},e.dataTypes[0]="json",a=t[o],t[o]=function(){s=arguments},i.always(function(){t[o]=a,e[o]&&(e.jsonpCallback=n.jsonpCallback,tn.push(o)),s&&ot.isFunction(a)&&a(s[0]),s=a=void 0}),"script"}),ot.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||ft;var i=ht.exec(t),o=!n&&[];return i?[e.createElement(i[1])]:(i=ot.buildFragment([t],e,o),o&&o.length&&ot(o).remove(),ot.merge([],i.childNodes))};var nn=ot.fn.load;ot.fn.load=function(t,e,n){if("string"!=typeof t&&nn)return nn.apply(this,arguments);var i,o,a,s=this,r=t.indexOf(" ");return r>=0&&(i=ot.trim(t.slice(r,t.length)),t=t.slice(0,r)),ot.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(a="POST"),s.length>0&&ot.ajax({url:t,type:a,dataType:"html",data:e}).done(function(t){o=arguments,s.html(i?ot("
").append(ot.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){s.each(n,o||[t.responseText,e,t])}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ot.fn[e]=function(t){return this.on(e,t)}}),ot.expr.filters.animated=function(t){return ot.grep(ot.timers,function(e){return t===e.elem}).length};var on=t.document.documentElement;ot.offset={setOffset:function(t,e,n){var i,o,a,s,r,c,l,u=ot.css(t,"position"),h=ot(t),d={};"static"===u&&(t.style.position="relative"),r=h.offset(),a=ot.css(t,"top"),c=ot.css(t,"left"),l=("absolute"===u||"fixed"===u)&&ot.inArray("auto",[a,c])>-1,l?(i=h.position(),s=i.top,o=i.left):(s=parseFloat(a)||0,o=parseFloat(c)||0),ot.isFunction(e)&&(e=e.call(t,n,r)),null!=e.top&&(d.top=e.top-r.top+s),null!=e.left&&(d.left=e.left-r.left+o),"using"in e?e.using.call(t,d):h.css(d)}},ot.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ot.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},o=this[0],a=o&&o.ownerDocument;if(a)return e=a.documentElement,ot.contains(e,o)?(typeof o.getBoundingClientRect!==_t&&(i=o.getBoundingClientRect()),n=V(a),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i},position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===ot.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ot.nodeName(t[0],"html")||(n=t.offset()),n.top+=ot.css(t[0],"borderTopWidth",!0),n.left+=ot.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-ot.css(i,"marginTop",!0),left:e.left-n.left-ot.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||on;t&&!ot.nodeName(t,"html")&&"static"===ot.css(t,"position");)t=t.offsetParent;return t||on})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);ot.fn[t]=function(i){return St(this,function(t,i,o){var a=V(t);return void 0===o?a?e in a?a[e]:a.document.documentElement[i]:t[i]:void(a?a.scrollTo(n?ot(a).scrollLeft():o,n?o:ot(a).scrollTop()):t[i]=o)},t,i,arguments.length,null)}}),ot.each(["top","left"],function(t,e){ot.cssHooks[e]=C(nt.pixelPosition,function(t,n){if(n)return n=ee(t,e),ie.test(n)?ot(t).position()[e]+"px":n})}),ot.each({Height:"height",Width:"width"},function(t,e){ot.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){ot.fn[i]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||o===!0?"margin":"border");return St(this,function(e,n,i){var o;return ot.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?ot.css(e,n,s):ot.style(e,n,i,s)},e,a?i:void 0,a,null)}})}),ot.fn.size=function(){return this.length},ot.fn.andSelf=ot.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot});var an=t.jQuery,sn=t.$;return ot.noConflict=function(e){return t.$===ot&&(t.$=sn),e&&t.jQuery===ot&&(t.jQuery=an),ot},typeof e===_t&&(t.jQuery=t.$=ot),ot}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(e,i){var o,a,s,r=e.nodeName.toLowerCase();return"area"===r?(o=e.parentNode,a=o.name,!(!e.href||!a||"map"!==o.nodeName.toLowerCase())&&(s=t("img[usemap='#"+a+"']")[0],!!s&&n(s))):(/input|select|textarea|button|object/.test(r)?!e.disabled:"a"===r?e.href||i:i)&&n(e)}function n(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}function i(t){for(var e,n;t.length&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(n=parseInt(t.css("zIndex"),10),!isNaN(n)&&0!==n))return n;t=t.parent()}return 0}function o(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=a(t("
"))}function a(e){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(n,"mouseout",function(){t(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&t(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&t(this).removeClass("ui-datepicker-next-hover")}).delegate(n,"mouseover",s)}function s(){t.datepicker._isDisabledDatepicker(b.inline?b.dpDiv.parent()[0]:b.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&t(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&t(this).addClass("ui-datepicker-next-hover"))}function r(e,n){t.extend(e,n);for(var i in n)null==n[i]&&(e[i]=n[i]);return e}function c(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.extend(t.ui,{version:"1.11.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({scrollParent:function(e){var n=this.css("position"),i="absolute"===n,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter(function(){var e=t(this);return(!i||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==n&&a.length?a:t(this[0].ownerDocument||document)},uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(n){return!!t.data(n,e)}}):function(e,n,i){return!!t.data(e,i[3])},focusable:function(n){return e(n,!isNaN(t.attr(n,"tabindex")))},tabbable:function(n){var i=t.attr(n,"tabindex"),o=isNaN(i);return(o||i>=0)&&e(n,!o)}}),t("").outerWidth(1).jquery||t.each(["Width","Height"],function(e,n){function i(e,n,i,a){return t.each(o,function(){n-=parseFloat(t.css(e,"padding"+this))||0,i&&(n-=parseFloat(t.css(e,"border"+this+"Width"))||0),a&&(n-=parseFloat(t.css(e,"margin"+this))||0)}),n}var o="Width"===n?["Left","Right"]:["Top","Bottom"],a=n.toLowerCase(),s={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(e){return void 0===e?s["inner"+n].call(this):this.each(function(){t(this).css(a,i(this,e)+"px")})},t.fn["outer"+n]=function(e,o){return"number"!=typeof e?s["outer"+n].call(this,e):this.each(function(){t(this).css(a,i(this,e,!0,o)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(n){return arguments.length?e.call(this,t.camelCase(n)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn.extend({focus:function(e){return function(n,i){return"number"==typeof n?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),i&&i.call(e)},n)}):e.apply(this,arguments)}}(t.fn.focus),disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var n,i,o=t(this[0]);o.length&&o[0]!==document;){if(n=o.css("position"),("absolute"===n||"relative"===n||"fixed"===n)&&(i=parseInt(o.css("zIndex"),10),!isNaN(i)&&0!==i))return i;o=o.parent()}return 0}}),t.ui.plugin={add:function(e,n,i){var o,a=t.ui[e].prototype;for(o in i)a.plugins[o]=a.plugins[o]||[],a.plugins[o].push([n,i[o]])},call:function(t,e,n,i){var o,a=t.plugins[e];if(a&&(i||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=l++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var i,o,a,s=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(s={},i=e.split("."),e=i.shift(),i.length){for(o=s[e]=t.widget.extend({},this.options[e]),a=0;a=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});!function(){function e(t,e,n){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?n/100:1)]}function n(e,n){return parseInt(t.css(e,n),10)||0}function i(e){var n=e[0];return 9===n.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(n)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:n.preventDefault?{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var o,a,s=Math.max,r=Math.abs,c=Math.round,l=/left|center|right/,u=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==o)return o;var e,n,i=t("
"),a=i.children()[0];return t("body").append(i),e=a.offsetWidth,i.css("overflow","scroll"),n=a.offsetWidth,e===n&&(n=i[0].clientWidth),i.remove(),o=e-n},getScrollInfo:function(e){var n=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),o="scroll"===n||"auto"===n&&e.width0?"right":"center",vertical:a<0?"top":i>0?"bottom":"middle"};ms(r(i),r(a))?c.important="horizontal":c.important="vertical",o.using.call(this,t,c)}),u.offset(t.extend(O,{using:l}))})},t.ui.position={fit:{left:function(t,e){var n,i=e.within,o=i.isWindow?i.scrollLeft:i.offset.left,a=i.width,r=t.left-e.collisionPosition.marginLeft,c=o-r,l=r+e.collisionWidth-a-o;e.collisionWidth>a?c>0&&l<=0?(n=t.left+c+e.collisionWidth-a-o,t.left+=c-n):l>0&&c<=0?t.left=o:c>l?t.left=o+a-e.collisionWidth:t.left=o:c>0?t.left+=c:l>0?t.left-=l:t.left=s(t.left-r,t.left)},top:function(t,e){var n,i=e.within,o=i.isWindow?i.scrollTop:i.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,c=o-r,l=r+e.collisionHeight-a-o;e.collisionHeight>a?c>0&&l<=0?(n=t.top+c+e.collisionHeight-a-o,t.top+=c-n):l>0&&c<=0?t.top=o:c>l?t.top=o+a-e.collisionHeight:t.top=o:c>0?t.top+=c:l>0?t.top-=l:t.top=s(t.top-r,t.top)}},flip:{left:function(t,e){var n,i,o=e.within,a=o.offset.left+o.scrollLeft,s=o.width,c=o.isWindow?o.scrollLeft:o.offset.left,l=t.left-e.collisionPosition.marginLeft,u=l-c,h=l+e.collisionWidth-s-c,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];u<0?(n=t.left+d+p+f+e.collisionWidth-s-a,(n<0||n0&&(i=t.left-e.collisionPosition.marginLeft+d+p+f-c,(i>0||r(i)u&&(i<0||i0&&(n=t.top-e.collisionPosition.marginTop+p+f+m-c,t.top+p+f+m>h&&(n>0||r(n)10&&o<11,e.innerHTML="",n.removeChild(e)}()}();t.ui.position,t.widget("ui.accordion",{version:"1.11.2",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||e.active!==!1&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void("disabled"===t&&(this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e))))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var n=t.ui.keyCode,i=this.headers.length,o=this.headers.index(e.target),a=!1;switch(e.keyCode){case n.RIGHT:case n.DOWN:a=this.headers[(o+1)%i];break;case n.LEFT:case n.UP:a=this.headers[(o-1+i)%i];break;case n.SPACE:case n.ENTER:this._eventHandler(e);break;case n.HOME:a=this.headers[0];break;case n.END:a=this.headers[i-1]}a&&(t(e.target).attr("tabIndex",-1),t(a).attr("tabIndex",0),a.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide(),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,n=this.options,i=n.heightStyle,o=this.element.parent();this.active=this._findActive(n.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(){var e=t(this),n=e.uniqueId().attr("id"),i=e.next(),o=i.uniqueId().attr("id");e.attr("aria-controls",o),i.attr("aria-labelledby",n)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),"fill"===i?(e=o.height(),this.element.siblings(":visible").each(function(){var n=t(this),i=n.css("position");"absolute"!==i&&"fixed"!==i&&(e-=n.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===i&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).css("height","").height())}).height(e))},_activate:function(e){var n=this._findActive(e)[0];n!==this.active[0]&&(n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var n={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var n=this.options,i=this.active,o=t(e.currentTarget),a=o[0]===i[0],s=a&&n.collapsible,r=s?t():o.next(),c=i.next(),l={oldHeader:i,oldPanel:c,newHeader:s?t():o,newPanel:r};e.preventDefault(),a&&!n.collapsible||this._trigger("beforeActivate",e,l)===!1||(n.active=!s&&this.headers.index(o),this.active=a?t():o,this._toggle(l),i.removeClass("ui-accordion-header-active ui-state-active"),n.icons&&i.children(".ui-accordion-header-icon").removeClass(n.icons.activeHeader).addClass(n.icons.header),a||(o.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),n.icons&&o.children(".ui-accordion-header-icon").removeClass(n.icons.header).addClass(n.icons.activeHeader),o.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var n=e.newPanel,i=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=n,this.prevHide=i,this.options.animate?this._animate(n,i,e):(i.hide(),n.show(),this._toggleComplete(e)),i.attr({"aria-hidden":"true"}),i.prev().attr("aria-selected","false"),n.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):n.length&&this.headers.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),n.attr("aria-hidden","false").prev().attr({"aria-selected":"true",tabIndex:0,"aria-expanded":"true"})},_animate:function(t,e,n){var i,o,a,s=this,r=0,c=t.length&&(!e.length||t.index()",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var n=t(e.target);!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&t(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var n=t(e.currentTarget);n.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(e,n)}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,n)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){var n,i,o,a,s=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:s=!1,i=this.previousFilter||"",o=String.fromCharCode(e.keyCode),a=!1,clearTimeout(this.filterTimer),o===i?a=!0:o=i+o,n=this._filterMenuItems(o),n=a&&n.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):n,n.length||(o=String.fromCharCode(e.keyCode),n=this._filterMenuItems(o)),n.length?(this.focus(e,n),this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}s&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(t):this.select(t))},refresh:function(){var e,n,i=this,o=this.options.icons.submenu,a=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),a.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),n=e.parent(),i=t("").addClass("ui-menu-icon ui-icon "+o).data("ui-menu-submenu-carat",!0);n.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",n.attr("id"))}),e=a.add(this.element),n=e.find(this.options.items),n.not(".ui-menu-item").each(function(){var e=t(this);i._isDivider(e)&&e.addClass("ui-widget-content ui-menu-divider")}),n.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),n.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},focus:function(t,e){var n,i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),n=e.children(".ui-menu"),n.length&&t&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var n,i,o,a,s,r;this._hasScroll()&&(n=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,o=e.offset().top-this.activeMenu.offset().top-n-i,a=this.activeMenu.scrollTop(),s=this.activeMenu.height(),r=e.outerHeight(),o<0?this.activeMenu.scrollTop(a+o):o+r>s&&this.activeMenu.scrollTop(a+o-s+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var n=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay(function(){var i=n?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));i.length||(i=this.element),this._close(i),this.blur(e),this.activeMenu=i},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,n){var i;this.active&&(i="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),i&&i.length&&this.active||(i=this.activeMenu.find(this.options.items)[e]()),this.focus(n,i)},nextPage:function(e){var n,i,o;return this.active?void(this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-i-o<0}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var n,i,o;return this.active?void(this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-i+o>0}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,n,i,o=this.element[0].nodeName.toLowerCase(),a="textarea"===o,s="input"===o;this.isMultiLine=!!a||!s&&this.element.prop("isContentEditable"),this.valueMethod=this.element[a||s?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return e=!0,i=!0,void(n=!0);e=!1,i=!1,n=!1;var a=t.ui.keyCode;switch(o.keyCode){case a.PAGE_UP:e=!0,this._move("previousPage",o);break;case a.PAGE_DOWN:e=!0,this._move("nextPage",o);break;case a.UP:e=!0,this._keyEvent("previous",o);break;case a.DOWN:e=!0,this._keyEvent("next",o);break;case a.ENTER:this.menu.active&&(e=!0,o.preventDefault(),this.menu.select(o));break;case a.TAB:this.menu.active&&this.menu.select(o);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(o),o.preventDefault());break;default:n=!0,this._searchTimeout(o)}},keypress:function(i){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||i.preventDefault());if(!n){var o=t.ui.keyCode;switch(i.keyCode){case o.PAGE_UP:this._move("previousPage",i);break;case o.PAGE_DOWN:this._move("nextPage",i);break;case o.UP:this._keyEvent("previous",i);break;case o.DOWN:this._keyEvent("next",i)}}},input:function(t){return i?(i=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("
");var r=t("a",n),c=r[0],l=r[1],u=r[2],h=r[3];e.oApi._fnBindAction(c,{action:"first"},s),e.oApi._fnBindAction(l,{action:"previous"},s),e.oApi._fnBindAction(u,{action:"next"},s),e.oApi._fnBindAction(h,{action:"last"},s),e.aanFeatures.p||(n.id=e.sTableId+"_paginate",c.id=e.sTableId+"_first",l.id=e.sTableId+"_previous",u.id=e.sTableId+"_next",h.id=e.sTableId+"_last")},fnUpdate:function(e,n){if(e.aanFeatures.p){var i,o,a,s,r,c=e.oInstance.fnPagingInfo(),l=t.fn.dataTableExt.oPagination.iFullNumbersShowPages,u=Math.floor(l/2),h=Math.ceil(e.fnRecordsDisplay()/e._iDisplayLength),d=Math.ceil(e._iDisplayStart/e._iDisplayLength)+1,p="",f=(e.oClasses,e.aanFeatures.p);for(e._iDisplayLength===-1?(i=1,o=1,d=1):h=h-u?(i=h-l+1,o=h):(i=d-Math.ceil(l/2)+1,o=i+l-1),a=i;a<=o;a++)p+=d!==a?'
  • '+e.fnFormatNumber(a)+"
  • ":'
  • '+e.fnFormatNumber(a)+"
  • ";for(a=0,s=f.length;a",o[0];);return 4h.a.l(e,t[n])&&e.push(t[n]);return e},ya:function(t,e){t=t||[];for(var n=[],i=0,o=t.length;ii?n&&t.push(e):n||t.splice(i,1)},na:l,extend:r,ra:c,sa:l?c:r,A:s,Oa:function(t,e){if(!t)return t;var n,i={};for(n in t)t.hasOwnProperty(n)&&(i[n]=e(t[n],n,t));return i},Fa:function(t){for(;t.firstChild;)h.removeNode(t.firstChild)},ec:function(t){t=h.a.R(t);for(var e=n.createElement("div"),i=0,o=t.length;if?t.setAttribute("selected",e):t.selected=e},ta:function(e){return null===e||e===t?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},oc:function(t,e){for(var n=[],i=(t||"").split(e),o=0,a=i.length;ot.length)&&t.substring(0,e.length)===e},Sb:function(t,e){if(t===e)return!0;if(11===t.nodeType)return!1;if(e.contains)return e.contains(3===t.nodeType?t.parentNode:t);if(e.compareDocumentPosition)return 16==(16&e.compareDocumentPosition(t));for(;t&&t!=e;)t=t.parentNode;return!!t},Ea:function(t){return h.a.Sb(t,t.ownerDocument.documentElement)},eb:function(t){return!!h.a.hb(t,h.a.Ea)},B:function(t){return t&&t.tagName&&t.tagName.toLowerCase()},q:function(t,e,n){var i=f&&p[e];if(!i&&o)o(t).bind(e,n);else if(i||"function"!=typeof t.addEventListener){if("undefined"==typeof t.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var a=function(e){n.call(t,e)},s="on"+e;t.attachEvent(s,a),h.a.u.ja(t,function(){t.detachEvent(s,a)})}else t.addEventListener(e,n,!1)},ha:function(t,i){if(!t||!t.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var a;if("input"===h.a.B(t)&&t.type&&"click"==i.toLowerCase()?(a=t.type,a="checkbox"==a||"radio"==a):a=!1,o&&!a)o(t).trigger(i);else if("function"==typeof n.createEvent){if("function"!=typeof t.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");a=n.createEvent(d[i]||"HTMLEvents"),a.initEvent(i,!0,!0,e,0,0,0,0,0,!1,!1,!1,!1,0,t),t.dispatchEvent(a)}else if(a&&t.click)t.click();else{if("undefined"==typeof t.fireEvent)throw Error("Browser doesn't support triggering events");t.fireEvent("on"+i)}},c:function(t){return h.v(t)?t():t},Sa:function(t){return h.v(t)?t.o():t},ua:function(t,e,n){if(e){var i=/\S+/g,o=t.className.match(i)||[];h.a.r(e.match(i),function(t){h.a.Y(o,t,n)}),t.className=o.join(" ")}},Xa:function(e,n){var i=h.a.c(n);null!==i&&i!==t||(i="");var o=h.e.firstChild(e);!o||3!=o.nodeType||h.e.nextSibling(o)?h.e.U(e,[e.ownerDocument.createTextNode(i)]):o.data=i,h.a.Vb(e)},Cb:function(t,e){if(t.name=e,7>=f)try{t.mergeAttributes(n.createElement(""),!1)}catch(i){}},Vb:function(t){9<=f&&(t=1==t.nodeType?t:t.parentNode,t.style&&(t.style.zoom=t.style.zoom))},Tb:function(t){if(f){var e=t.style.width;t.style.width=0,t.style.width=e}},ic:function(t,e){t=h.a.c(t),e=h.a.c(e);for(var n=[],i=t;i<=e;i++)n.push(i);return n},R:function(t){for(var e=[],n=0,i=t.length;n",""]||!a.indexOf("",""]||(!a.indexOf("",""]||[0,"",""],t="ignored
    "+a[1]+t+a[2]+"
    ","function"==typeof e.innerShiv?i.appendChild(e.innerShiv(t)):i.innerHTML=t;a[0]--;)i=i.lastChild;i=h.a.R(i.lastChild.childNodes)}return i},h.a.Va=function(e,n){if(h.a.Fa(e),n=h.a.c(n),null!==n&&n!==t)if("string"!=typeof n&&(n=n.toString()),o)o(e).html(n);else for(var i=h.a.Qa(n),a=0;a"},Hb:function(e,i){var o=n[e];if(o===t)throw Error("Couldn't find any memo with ID "+e+". Perhaps it's already been unmemoized.");try{return o.apply(null,i||[]),!0}finally{delete n[e]}},Ib:function(t,n){var i=[];e(t,i);for(var o=0,a=i.length;oa[0]?c+a[0]:a[0]),c);for(var c=1===l?c:Math.min(e+(a[1]||0),c),l=e+l-2,u=Math.max(c,l),d=[],p=[],f=2;ee;e++)t=t();return t})},h.toJSON=function(t,e,n){return t=h.Gb(t),h.a.Ya(t,e,n)},i.prototype={save:function(t,e){var n=h.a.l(this.keys,t);0<=n?this.ab[n]=e:(this.keys.push(t),this.ab.push(e))},get:function(e){return e=h.a.l(this.keys,e),0<=e?this.ab[e]:t}}}(),h.b("toJS",h.Gb),h.b("toJSON",h.toJSON),function(){h.i={p:function(e){switch(h.a.B(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?h.a.f.get(e,h.d.options.Pa):7>=h.a.oa?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?h.i.p(e.options[e.selectedIndex]):t;default:return e.value}},X:function(e,n,i){switch(h.a.B(e)){case"option":switch(typeof n){case"string":h.a.f.set(e,h.d.options.Pa,t),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=n;break;default:h.a.f.set(e,h.d.options.Pa,n),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof n?n:""}break;case"select":""!==n&&null!==n||(n=t);for(var o,a=-1,s=0,r=e.options.length;s=c){e&&s.push(n?{key:e,value:n.join("")}:{unknown:e}),e=n=c=0;continue}}else if(58===d){if(!n)continue}else if(47===d&&u&&1"===n.createComment("test").text,s=a?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,r=a?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,c={ul:!0,ol:!0};h.e={Q:{},childNodes:function(e){return t(e)?i(e):e.childNodes},da:function(e){if(t(e)){e=h.e.childNodes(e);for(var n=0,i=e.length;n=h.a.oa&&n in g?(n=g[n],o?e.removeAttribute(n):e[n]=i):o||e.setAttribute(n,i.toString()),"name"===n&&h.a.Cb(e,o?"":i.toString())})}},function(){h.d.checked={after:["value","attr"],init:function(e,n,i){function o(){return i.has("checkedValue")?h.a.c(i.get("checkedValue")):e.value}function a(){var t=e.checked,a=d?o():t;if(!h.ca.pa()&&(!c||t)){var s=h.k.t(n);l?u!==a?(t&&(h.a.Y(s,a,!0),h.a.Y(s,u,!1)),u=a):h.a.Y(s,a,t):h.g.va(s,i,"checked",a,!0)}}function s(){var t=h.a.c(n());e.checked=l?0<=h.a.l(t,o()):r?t:o()===t}var r="checkbox"==e.type,c="radio"==e.type;if(r||c){var l=r&&h.a.c(n())instanceof Array,u=l?o():t,d=c||l;c&&!e.name&&h.d.uniqueName.init(e,function(){return!0}),h.ba(a,null,{G:e}),h.a.q(e,"click",a),h.ba(s,null,{G:e})}}},h.g.W.checked=!0,h.d.checkedValue={update:function(t,e){t.value=h.a.c(e())}}}(),h.d.css={update:function(t,e){var n=h.a.c(e());"object"==typeof n?h.a.A(n,function(e,n){n=h.a.c(n),h.a.ua(t,e,n)}):(n=String(n||""),h.a.ua(t,t.__ko__cssValue,!1),t.__ko__cssValue=n,h.a.ua(t,n,!0))}},h.d.enable={update:function(t,e){var n=h.a.c(e());n&&t.disabled?t.removeAttribute("disabled"):n||t.disabled||(t.disabled=!0)}},h.d.disable={update:function(t,e){h.d.enable.update(t,function(){return!h.a.c(e())})}},h.d.event={init:function(t,e,n,i,o){var a=e()||{};h.a.A(a,function(a){"string"==typeof a&&h.a.q(t,a,function(t){var s,r=e()[a];if(r){try{var c=h.a.R(arguments);i=o.$data,c.unshift(i),s=r.apply(i,c)}finally{!0!==s&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}!1===n.get(a+"Bubble")&&(t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation())}})})}},h.d.foreach={vb:function(t){return function(){var e=t(),n=h.a.Sa(e);return n&&"number"!=typeof n.length?(h.a.c(e),{foreach:n.data,as:n.as,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:h.K.Ja}):{foreach:e,templateEngine:h.K.Ja}}},init:function(t,e){return h.d.template.init(t,h.d.foreach.vb(e))},update:function(t,e,n,i,o){return h.d.template.update(t,h.d.foreach.vb(e),n,i,o)}},h.g.aa.foreach=!1,h.e.Q.foreach=!0,h.d.hasfocus={init:function(t,e,n){function i(i){t.__ko_hasfocusUpdating=!0;var o=t.ownerDocument;if("activeElement"in o){var a;try{a=o.activeElement}catch(s){a=o.body}i=a===t}o=e(),h.g.va(o,n,"hasfocus",i,!0),t.__ko_hasfocusLastValue=i,t.__ko_hasfocusUpdating=!1}var o=i.bind(null,!0),a=i.bind(null,!1);h.a.q(t,"focus",o),h.a.q(t,"focusin",o),h.a.q(t,"blur",a),h.a.q(t,"focusout",a)},update:function(t,e){var n=!!h.a.c(e());t.__ko_hasfocusUpdating||t.__ko_hasfocusLastValue===n||(n?t.focus():t.blur(),h.k.t(h.a.ha,null,[t,n?"focusin":"focusout"]))}},h.g.W.hasfocus=!0,h.d.hasFocus=h.d.hasfocus,h.g.W.hasFocus=!0,h.d.html={init:function(){return{controlsDescendantBindings:!0}},update:function(t,e){h.a.Va(t,e())}},u("if"),u("ifnot",!1,!0),u("with",!0,!1,function(t,e){return t.createChildContext(e)});var b={};h.d.options={init:function(t){if("select"!==h.a.B(t))throw Error("options binding applies only to SELECT elements");for(;0","#comment",o)})},Mb:function(t,e){return h.w.Na(function(n,i){var o=n.nextSibling;o&&o.nodeName.toLowerCase()===e&&h.xa(o,t,i)})}}}(),h.b("__tr_ambtns",h.Za.Mb),function(){h.n={},h.n.j=function(t){this.j=t},h.n.j.prototype.text=function(){var t=h.a.B(this.j),t="script"===t?"text":"textarea"===t?"value":"innerHTML";if(0==arguments.length)return this.j[t];var e=arguments[0];"innerHTML"===t?h.a.Va(this.j,e):this.j[t]=e};var e=h.a.f.L()+"_";h.n.j.prototype.data=function(t){return 1===arguments.length?h.a.f.get(this.j,e+t):void h.a.f.set(this.j,e+t,arguments[1])};var n=h.a.f.L();h.n.Z=function(t){this.j=t},h.n.Z.prototype=new h.n.j,h.n.Z.prototype.text=function(){if(0==arguments.length){var e=h.a.f.get(this.j,n)||{};return e.$a===t&&e.Ba&&(e.$a=e.Ba.innerHTML),e.$a}h.a.f.set(this.j,n,{$a:arguments[0]})},h.n.j.prototype.nodes=function(){return 0==arguments.length?(h.a.f.get(this.j,n)||{}).Ba:void h.a.f.set(this.j,n,{Ba:arguments[0]})},h.b("templateSources",h.n),h.b("templateSources.domElement",h.n.j),h.b("templateSources.anonymousTemplate",h.n.Z)}(),function(){function e(t,e,n){var i;for(e=h.e.nextSibling(e);t&&(i=t)!==e;)t=h.e.nextSibling(i),n(i,t)}function n(t,n){if(t.length){var i=t[0],o=t[t.length-1],a=i.parentNode,s=h.J.instance,r=s.preprocessNode;if(r){if(e(i,o,function(t,e){var n=t.previousSibling,a=r.call(s,t);a&&(t===i&&(i=a[0]||e),t===o&&(o=a[a.length-1]||n))}),t.length=0,!i)return;i===o?t.push(i):(t.push(i,o),h.a.ea(t,a))}e(i,o,function(t){1!==t.nodeType&&8!==t.nodeType||h.fb(n,t)}),e(i,o,function(t){1!==t.nodeType&&8!==t.nodeType||h.w.Ib(t,[n])}),h.a.ea(t,a)}}function i(t){return t.nodeType?t:0h.a.oa?0:t.nodes)?t.nodes():null;return e?h.a.R(e.cloneNode(!0).childNodes):(t=t.text(),h.a.Qa(t))},h.K.Ja=new h.K,h.Wa(h.K.Ja),h.b("nativeTemplateEngine",h.K),function(){h.La=function(){var t=this.ac=function(){if(!o||!o.tmpl)return 0;try{if(0<=o.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(t){}return 1}();this.renderTemplateSource=function(e,i,a){if(a=a||{},2>t)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var s=e.data("precompiled");return s||(s=e.text()||"",s=o.template(null,"{{ko_with $item.koBindingContext}}"+s+"{{/ko_with}}"),e.data("precompiled",s)),e=[i.$data],i=o.extend({koBindingContext:i},a.templateOptions),i=o.tmpl(s,e,i),i.appendTo(n.createElement("div")),o.fragments={},i},this.createJavaScriptEvaluatorBlock=function(t){return"{{ko_code ((function() { return "+t+" })()) }}"},this.addTemplate=function(t,e){n.write("")},0=0&&(u&&(u.splice(m,1),t.processAllDeferredBindingUpdates&&t.processAllDeferredBindingUpdates()),p.splice(g,0,A)),l(v,n,null),t.processAllDeferredBindingUpdates&&t.processAllDeferredBindingUpdates(),T.afterMove&&T.afterMove.call(this,b,s,r)}y&&y.apply(this,arguments)},connectWith:!!T.connectClass&&"."+T.connectClass})),void 0!==T.isEnabled&&t.computed({read:function(){A.sortable(r(T.isEnabled)?"enable":"disable")},disposeWhenNodeIsRemoved:u})},0);return t.utils.domNodeDisposal.addDisposeCallback(u,function(){(A.data("ui-sortable")||A.data("sortable"))&&A.sortable("destroy"),clearTimeout(w)}),{controlsDescendantBindings:!0}},update:function(e,n,i,a,s){var r=p(n,"foreach");l(e,o,r.foreach),t.bindingHandlers.template.update(e,function(){return r},i,a,s)},connectClass:"ko_container",allowDrop:!0,afterMove:null,beforeMove:null,options:{}},t.bindingHandlers.draggable={init:function(n,i,o,a,c){var u=r(i())||{},h=u.options||{},d=t.utils.extend({},t.bindingHandlers.draggable.options),f=p(i,"data"),m=u.connectClass||t.bindingHandlers.draggable.connectClass,g=void 0!==u.isEnabled?u.isEnabled:t.bindingHandlers.draggable.isEnabled;return u="data"in u?u.data:u,l(n,s,u),t.utils.extend(d,h),d.connectToSortable=!!m&&"."+m,e(n).draggable(d),void 0!==g&&t.computed({read:function(){e(n).draggable(r(g)?"enable":"disable")},disposeWhenNodeIsRemoved:n}),t.bindingHandlers.template.init(n,function(){return f},o,a,c)},update:function(e,n,i,o,a){var s=p(n,"data");return t.bindingHandlers.template.update(e,function(){return s},i,o,a)},connectClass:t.bindingHandlers.sortable.connectClass,options:{helper:"clone"}}}),function(){var t=this,e=t._,n=Array.prototype,i=Object.prototype,o=Function.prototype,a=n.push,s=n.slice,r=n.concat,c=i.toString,l=i.hasOwnProperty,u=Array.isArray,h=Object.keys,d=o.bind,p=function(t){return t instanceof p?t:this instanceof p?void(this._wrapped=t):new p(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=p),exports._=p):t._=p,p.VERSION="1.7.0";var f=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)};case 4:return function(n,i,o,a){return t.call(e,n,i,o,a)}}return function(){return t.apply(e,arguments)}};p.iteratee=function(t,e,n){return null==t?p.identity:p.isFunction(t)?f(t,e,n):p.isObject(t)?p.matches(t):p.property(t)},p.each=p.forEach=function(t,e,n){if(null==t)return t;e=f(e,n);var i,o=t.length;if(o===+o)for(i=0;i=0)},p.invoke=function(t,e){var n=s.call(arguments,2),i=p.isFunction(e);return p.map(t,function(t){return(i?e:t[e]).apply(t,n)})},p.pluck=function(t,e){return p.map(t,p.property(e))},p.where=function(t,e){return p.filter(t,p.matches(e))},p.findWhere=function(t,e){return p.find(t,p.matches(e))},p.max=function(t,e,n){var i,o,a=-(1/0),s=-(1/0);if(null==e&&null!=t){t=t.length===+t.length?t:p.values(t);for(var r=0,c=t.length;ra&&(a=i)}else e=p.iteratee(e,n),p.each(t,function(t,n,i){o=e(t,n,i),(o>s||o===-(1/0)&&a===-(1/0))&&(a=t,s=o)});return a},p.min=function(t,e,n){var i,o,a=1/0,s=1/0;if(null==e&&null!=t){t=t.length===+t.length?t:p.values(t);for(var r=0,c=t.length;ri||void 0===n)return 1;if(n>>1;n(t[r])=0;)if(t[i]===e)return i;return-1},p.range=function(t,e,n){arguments.length<=1&&(e=t||0,t=0),n=n||1;for(var i=Math.max(Math.ceil((e-t)/n),0),o=Array(i),a=0;ae?(clearTimeout(s),s=null,r=l,a=t.apply(i,o),s||(i=o=null)):s||n.trailing===!1||(s=setTimeout(c,u)),a}},p.debounce=function(t,e,n){var i,o,a,s,r,c=function(){var l=p.now()-s;l0?i=setTimeout(c,e-l):(i=null,n||(r=t.apply(a,o),i||(a=o=null)))};return function(){a=this,o=arguments,s=p.now();var l=n&&!i;return i||(i=setTimeout(c,e)),l&&(r=t.apply(a,o),a=o=null),r}},p.wrap=function(t,e){return p.partial(e,t)},p.negate=function(t){return function(){return!t.apply(this,arguments)}},p.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,i=t[e].apply(this,arguments);n--;)i=t[n].call(this,i);return i}},p.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},p.before=function(t,e){var n;return function(){return--t>0?n=e.apply(this,arguments):e=null,n}},p.once=p.partial(p.before,2),p.keys=function(t){if(!p.isObject(t))return[];if(h)return h(t);var e=[];for(var n in t)p.has(t,n)&&e.push(n);return e},p.values=function(t){for(var e=p.keys(t),n=e.length,i=Array(n),o=0;o":">",'"':""","'":"'","`":"`"},A=p.invert(y),z=function(t){var e=function(e){return t[e]},n="(?:"+p.keys(t).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(t){return t=null==t?"":""+t,i.test(t)?t.replace(o,e):t}};p.escape=z(y),p.unescape=z(A),p.result=function(t,e){if(null!=t){var n=t[e];return p.isFunction(n)?t[e]():n}};var _=0;p.uniqueId=function(t){var e=++_+"";return t?t+e:e},p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var T=/(.)^/,w={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},C=/\\|'|\r|\n|\u2028|\u2029/g,O=function(t){return"\\"+w[t]};p.template=function(t,e,n){!e&&n&&(e=n),e=p.defaults({},e,p.templateSettings);var i=RegExp([(e.escape||T).source,(e.interpolate||T).source,(e.evaluate||T).source].join("|")+"|$","g"),o=0,a="__p+='";t.replace(i,function(e,n,i,s,r){return a+=t.slice(o,r).replace(C,O),o=r+e.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?a+="'+\n((__t=("+i+"))==null?'':__t)+\n'":s&&(a+="';\n"+s+"\n__p+='"),e}),a+="';\n",e.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{var s=new Function(e.variable||"obj","_",a)}catch(r){throw r.source=a,r}var c=function(t){return s.call(this,t,p)},l=e.variable||"obj";return c.source="function("+l+"){\n"+a+"}",c},p.chain=function(t){var e=p(t);return e._chain=!0,e};var N=function(t){return this._chain?p(t).chain():t};p.mixin=function(t){p.each(p.functions(t),function(e){var n=p[e]=t[e];p.prototype[e]=function(){var t=[this._wrapped];return a.apply(t,arguments),N.call(this,n.apply(p,t))}})},p.mixin(p),p.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=n[t];p.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],N.call(this,n)}}),p.each(["concat","join","slice"],function(t){var e=n[t];p.prototype[t]=function(){return N.call(this,e.apply(this._wrapped,arguments))}}),p.prototype.value=function(){return this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return p})}.call(this),function(t,e){function n(){return new Date(Date.UTC.apply(Date,arguments))}function i(){var t=new Date;return n(t.getFullYear(),t.getMonth(),t.getDate())}function o(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function a(t){return function(){return this[t].apply(this,arguments)}}function s(e,n){function i(t,e){return e.toLowerCase()}var o,a=t(e).data(),s={},r=new RegExp("^"+n.toLowerCase()+"([A-Z])");n=new RegExp("^"+n.toLowerCase());for(var c in a)n.test(c)&&(o=c.replace(r,i),s[o]=a[c]);return s}function r(e){var n={};if(m[e]||(e=e.split("-")[0],m[e])){var i=m[e];return t.each(f,function(t,e){e in i&&(n[e]=i[e])}),n}}var c=function(){var e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),n=0,i=this.length;no?(this.picker.addClass("datepicker-orient-right"),p=u.left+d-e):this.picker.addClass("datepicker-orient-left");var m,g,b=this.o.orientation.y;if("auto"===b&&(m=-s+f-n,g=s+a-(f+h+n),b=Math.max(m,g)===g?"top":"bottom"),this.picker.addClass("datepicker-orient-"+b),"top"===b?f+=h:f-=n+parseInt(this.picker.css("padding-top")),this.o.rtl){var v=o-(p+d);this.picker.css({top:f,right:v,zIndex:l})}else this.picker.css({top:f,left:p,zIndex:l});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),n=[],i=!1;return arguments.length?(t.each(arguments,t.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),n.push(e)},this)),i=!0):(n=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),n=n&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=t.map(n,t.proxy(function(t){return g.parseDate(t,this.o.format,this.o.language)},this)),n=t.grep(n,t.proxy(function(t){return tthis.o.endDate||!t},this),!0),this.dates.replace(n),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate&&(this.viewDate=new Date(this.o.endDate)),i?this.setValue():n.length&&String(e)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&e.length&&this._trigger("clearDate"),this.fill(),this},fillDow:function(){var t=this.o.weekStart,e="";if(this.o.calendarWeeks){this.picker.find(".datepicker-days thead tr:first-child .datepicker-switch").attr("colspan",function(t,e){return parseInt(e)+1});var n=' ';e+=n}for(;t'+m[this.o.language].daysMin[t++%7]+"";e+="",this.picker.find(".datepicker-days thead").append(e)},fillMonths:function(){for(var t="",e=0;e<12;)t+=''+m[this.o.language].monthsShort[e++]+"";this.picker.find(".datepicker-months td").html(t)},setRange:function(e){e&&e.length?this.range=t.map(e,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var n=[],i=this.viewDate.getUTCFullYear(),a=this.viewDate.getUTCMonth(),s=new Date;return e.getUTCFullYear()i||e.getUTCFullYear()===i&&e.getUTCMonth()>a)&&n.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&e.getUTCFullYear()===s.getFullYear()&&e.getUTCMonth()===s.getMonth()&&e.getUTCDate()===s.getDate()&&n.push("today"),this.dates.contains(e)!==-1&&n.push("active"),(e.valueOf()this.o.endDate||t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled)!==-1)&&n.push("disabled"),this.o.datesDisabled.length>0&&t.grep(this.o.datesDisabled,function(t){return o(e,t)}).length>0&&n.push("disabled","disabled-date"),this.range&&(e>this.range[0]&&e"),this.o.calendarWeeks)){var y=new Date(+p+(this.o.weekStart-p.getUTCDay()-7)%7*864e5),A=new Date(Number(y)+(11-y.getUTCDay())%7*864e5),z=new Date(Number(z=n(A.getUTCFullYear(),0,1))+(11-z.getUTCDay())%7*864e5),_=(A-z)/864e5/7+1;M.push(''+_+"")}if(v=this.getClassNames(p),v.push("day"),this.o.beforeShowDay!==t.noop){var T=this.o.beforeShowDay(this._utc_to_local(p));T===e?T={}:"boolean"==typeof T?T={enabled:T}:"string"==typeof T&&(T={classes:T}),T.enabled===!1&&v.push("disabled"),T.classes&&(v=v.concat(T.classes.split(/\s+/))),T.tooltip&&(i=T.tooltip)}v=t.unique(v),M.push('"+p.getUTCDate()+""),i=null,p.getUTCDay()===this.o.weekEnd&&M.push(""),p.setUTCDate(p.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(M.join(""));var w=this.picker.find(".datepicker-months").find("th:eq(1)").text(a).end().find("span").removeClass("active");if(t.each(this.dates,function(t,e){e.getUTCFullYear()===a&&w.eq(e.getUTCMonth()).addClass("active")}),(al)&&w.addClass("disabled"),a===r&&w.slice(0,c).addClass("disabled"),a===l&&w.slice(u+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var C=this;t.each(w,function(e,n){if(!t(n).hasClass("disabled")){var i=new Date(a,e,1),o=C.o.beforeShowMonth(i);o===!1&&t(n).addClass("disabled")}})}M="",a=10*parseInt(a/10,10);var O=this.picker.find(".datepicker-years").find("th:eq(1)").text(a+"-"+(a+9)).end().find("td");a-=1;for(var N,S=t.map(this.dates,function(t){return t.getUTCFullYear()}),x=-1;x<11;x++)N=["year"],x===-1?N.push("old"):10===x&&N.push("new"),t.inArray(a,S)!==-1&&N.push("active"),(al)&&N.push("disabled"),M+=''+a+"",a+=1;O.html(M)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),e=t.getUTCFullYear(),n=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-(1/0)&&e<=this.o.startDate.getUTCFullYear()&&n<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()&&n>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-(1/0)&&e<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(e){e.preventDefault();var i,o,a,s=t(e.target).closest("span, td, th");if(1===s.length)switch(s[0].nodeName.toLowerCase()){case"th":switch(s[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var r=g.modes[this.viewMode].navStep*("prev"===s[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,r),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,r),1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":var c=new Date;c=n(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0),this.showMode(-2);var l="linked"===this.o.todayBtn?null:"view";this._setDate(c,l);break;case"clear":this.clearDates()}break;case"span":s.hasClass("disabled")||(this.viewDate.setUTCDate(1),s.hasClass("month")?(a=1,o=s.parent().find("span").index(s),i=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(o),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(n(i,o,a))):(a=1,o=0,i=parseInt(s.text(),10)||0,this.viewDate.setUTCFullYear(i),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(n(i,o,a))),this.showMode(-1),this.fill());break;case"td":s.hasClass("day")&&!s.hasClass("disabled")&&(a=parseInt(s.text(),10)||1,i=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),s.hasClass("old")?0===o?(o=11,i-=1):o-=1:s.hasClass("new")&&(11===o?(o=0,i+=1):o+=1),this._setDate(n(i,o,a)))}this.picker.is(":visible")&&this._focused_from&&t(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),e!==-1?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):this.o.multidate===!1?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),e&&"view"!==e||(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate");var n;this.isInput?n=this.element:this.component&&(n=this.element.find("input")),n&&n.change(),!this.o.autoclose||e&&"date"!==e||this.hide()},moveMonth:function(t,n){if(!t)return e;if(!n)return t;var i,o,a=new Date(t.valueOf()),s=a.getUTCDate(),r=a.getUTCMonth(),c=Math.abs(n);if(n=n>0?1:-1,1===c)o=n===-1?function(){return a.getUTCMonth()===r}:function(){return a.getUTCMonth()!==i},i=r+n,a.setUTCMonth(i),(i<0||i>11)&&(i=(i+12)%12);else{for(var l=0;l=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(!this.picker.is(":visible"))return void(27===t.keyCode&&this.show());var e,n,o,a=!1,s=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;e=37===t.keyCode?-1:1,t.ctrlKey?(n=this.moveYear(this.dates.get(-1)||i(),e),o=this.moveYear(s,e),this._trigger("changeYear",this.viewDate)):t.shiftKey?(n=this.moveMonth(this.dates.get(-1)||i(),e),o=this.moveMonth(s,e),this._trigger("changeMonth",this.viewDate)):(n=new Date(this.dates.get(-1)||i()),n.setUTCDate(n.getUTCDate()+e),o=new Date(s),o.setUTCDate(s.getUTCDate()+e)),this.dateWithinRange(o)&&(this.focusDate=this.viewDate=o,this.setValue(),this.fill(),t.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;e=38===t.keyCode?-1:1,t.ctrlKey?(n=this.moveYear(this.dates.get(-1)||i(),e),o=this.moveYear(s,e),this._trigger("changeYear",this.viewDate)):t.shiftKey?(n=this.moveMonth(this.dates.get(-1)||i(),e),o=this.moveMonth(s,e),this._trigger("changeMonth",this.viewDate)):(n=new Date(this.dates.get(-1)||i()),n.setUTCDate(n.getUTCDate()+7*e),o=new Date(s),o.setUTCDate(s.getUTCDate()+7*e)),this.dateWithinRange(o)&&(this.focusDate=this.viewDate=o,this.setValue(),this.fill(),t.preventDefault());break;case 32:break;case 13:s=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(s),a=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),"function"==typeof t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}if(a){this.dates.length?this._trigger("changeDate"):this._trigger("clearDate");var r;this.isInput?r=this.element:this.component&&(r=this.element.find("input")),r&&r.change()}},showMode:function(t){t&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+t))),this.picker.children("div").hide().filter(".datepicker-"+g.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var u=function(e,n){this.element=t(e),this.inputs=t.map(n.inputs,function(t){return t.jquery?t[0]:t}),delete n.inputs,d.call(t(this.inputs),n).bind("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,function(e){return t(e).data("datepicker")}),this.updateDates()};u.prototype={updateDates:function(){this.dates=t.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,function(t){return t.valueOf()});t.each(this.pickers,function(t,n){n.setRange(e)})},dateUpdated:function(e){if(!this.updating){this.updating=!0;var n=t(e.target).data("datepicker"),i=n.getUTCDate(),o=t.inArray(e.target,this.inputs),a=o-1,s=o+1,r=this.inputs.length;if(o!==-1){if(t.each(this.pickers,function(t,e){e.getUTCDate()||e.setUTCDate(i)}),i=0&&ithis.dates[s])for(;sthis.dates[s];)this.pickers[s++].setUTCDate(i);this.updateDates(),delete this.updating}}},remove:function(){t.map(this.pickers,function(t){t.remove()}),delete this.element.data().datepicker}};var h=t.fn.datepicker,d=function(n){var i=Array.apply(null,arguments);i.shift();var o;return this.each(function(){var a=t(this),c=a.data("datepicker"),h="object"==typeof n&&n;if(!c){var d=s(this,"date"),f=t.extend({},p,d,h),m=r(f.language),g=t.extend({},p,m,d,h);if(a.hasClass("input-daterange")||g.inputs){var b={inputs:g.inputs||a.find("input").toArray()};a.data("datepicker",c=new u(this,t.extend(g,b)))}else a.data("datepicker",c=new l(this,g))}if("string"==typeof n&&"function"==typeof c[n]&&(o=c[n].apply(c,i),o!==e))return!1}),o!==e?o:this};t.fn.datepicker=d;var p=t.fn.datepicker.defaults={autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,container:"body"},f=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=l;var m=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},g={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4===0&&t%100!==0||t%400===0},getDaysInMonth:function(t,e){return[31,g.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(t){var e=t.replace(this.validParts,"\0").split("\0"),n=t.match(this.validParts);if(!e||!e.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:e,parts:n}},parseDate:function(i,o,a){function s(){var t=this.slice(0,d[u].length),e=d[u].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(!i)return e;if(i instanceof Date)return i;"string"==typeof o&&(o=g.parseFormat(o));var r,c,u,h=/([\-+]\d+)([dmwy])/,d=i.match(/([\-+]\d+)([dmwy])/g);if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(i)){for(i=new Date,u=0;u«»',contTemplate:'',footTemplate:''};g.template='
    '+g.headTemplate+""+g.footTemplate+'
    '+g.headTemplate+g.contTemplate+g.footTemplate+'
    '+g.headTemplate+g.contTemplate+g.footTemplate+"
    ",t.fn.datepicker.DPGlobal=g,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=h,this},t.fn.datepicker.version="1.4.0",t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(e){var n=t(this);n.data("datepicker")||(e.preventDefault(),d.call(n,"show"))}),t(function(){d.call(t('[data-provide="datepicker-inline"]'))})}(window.jQuery),!function(t){t.fn.datepicker.dates.de={days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],daysShort:["Son","Mon","Die","Mit","Don","Fre","Sam","Son"],daysMin:["So","Mo","Di","Mi","Do","Fr","Sa","So"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],today:"Heute",clear:"Löschen",weekStart:1,format:"dd.mm.yyyy"}}(jQuery),!function(t){t.fn.datepicker.dates.da={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør","Søn"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø","Sø"],months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],today:"I Dag",clear:"Nulstil"}}(jQuery),!function(t){t.fn.datepicker.dates["pt-BR"]={days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado","Domingo"],daysShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb","Dom"],daysMin:["Do","Se","Te","Qu","Qu","Se","Sa","Do"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],today:"Hoje",clear:"Limpar"}}(jQuery),!function(t){t.fn.datepicker.dates.nl={days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag","zondag"],daysShort:["zo","ma","di","wo","do","vr","za","zo"],daysMin:["zo","ma","di","wo","do","vr","za","zo"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthsShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],today:"Vandaag",clear:"Wissen",weekStart:1,format:"dd-mm-yyyy"}}(jQuery),!function(t){t.fn.datepicker.dates.fr={days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi","dimanche"],daysShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam.","dim."],daysMin:["d","l","ma","me","j","v","s","d"],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthsShort:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],today:"Aujourd'hui",clear:"Effacer",weekStart:1,format:"dd/mm/yyyy"}}(jQuery),!function(t){t.fn.datepicker.dates.it={days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato","Domenica"],daysShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab","Dom"],daysMin:["Do","Lu","Ma","Me","Gi","Ve","Sa","Do"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthsShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],today:"Oggi",clear:"Cancella",weekStart:1,format:"dd/mm/yyyy"}}(jQuery),!function(t){t.fn.datepicker.dates.lt={days:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis","Sekmadienis"],daysShort:["S","Pr","A","T","K","Pn","Š","S"],daysMin:["Sk","Pr","An","Tr","Ke","Pn","Št","Sk"],months:["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis"],monthsShort:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gru"],today:"Šiandien",weekStart:1}}(jQuery),!function(t){t.fn.datepicker.dates.no={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],today:"I dag",clear:"Nullstill",weekStart:1,format:"dd.mm.yyyy"}}(jQuery),!function(t){t.fn.datepicker.dates.es={days:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],daysShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb","Dom"],daysMin:["Do","Lu","Ma","Mi","Ju","Vi","Sa","Do"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthsShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],today:"Hoy",clear:"Borrar",weekStart:1,format:"dd/mm/yyyy"}}(jQuery),!function(t){t.fn.datepicker.dates.sv={days:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag","Söndag"],daysShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör","Sön"],daysMin:["Sö","Må","Ti","On","To","Fr","Lö","Sö"],months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],today:"Idag",format:"yyyy-mm-dd",weekStart:1,clear:"Rensa"}}(jQuery),function(){var t,e,n,i,o,a,s,r,c=[].slice,l={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var i in e)l.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s=function(){},e=function(){function t(){}return t.prototype.addEventListener=t.prototype.on,t.prototype.on=function(t,e){return this._callbacks=this._callbacks||{},this._callbacks[t]||(this._callbacks[t]=[]),this._callbacks[t].push(e),this},t.prototype.emit=function(){var t,e,n,i,o,a;if(i=arguments[0],t=2<=arguments.length?c.call(arguments,1):[],this._callbacks=this._callbacks||{},n=this._callbacks[i])for(o=0,a=n.length;o
    '),this.element.appendChild(e)),i=e.getElementsByTagName("span")[0],i&&(null!=i.textContent?i.textContent=this.options.dictFallbackMessage:null!=i.innerText&&(i.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(t){var e,n,i;return e={srcX:0,srcY:0,srcWidth:t.width,srcHeight:t.height},n=t.width/t.height,e.optWidth=this.options.thumbnailWidth,e.optHeight=this.options.thumbnailHeight,null==e.optWidth&&null==e.optHeight?(e.optWidth=e.srcWidth,e.optHeight=e.srcHeight):null==e.optWidth?e.optWidth=n*e.optHeight:null==e.optHeight&&(e.optHeight=1/n*e.optWidth),i=e.optWidth/e.optHeight,t.heighti?(e.srcHeight=t.height,e.srcWidth=e.srcHeight*i):(e.srcWidth=t.width,e.srcHeight=e.srcWidth/i),e.srcX=(t.width-e.srcWidth)/2,e.srcY=(t.height-e.srcHeight)/2,e},drop:function(t){return this.element.classList.remove("dz-drag-hover")},dragstart:s,dragend:function(t){return this.element.classList.remove("dz-drag-hover")},dragenter:function(t){return this.element.classList.add("dz-drag-hover")},dragover:function(t){return this.element.classList.add("dz-drag-hover")},dragleave:function(t){return this.element.classList.remove("dz-drag-hover")},paste:s,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var e,i,o,a,s,r,c,l,u,h,d,p,f;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(t.previewElement=n.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement),h=t.previewElement.querySelectorAll("[data-dz-name]"),a=0,c=h.length;a'+this.options.dictRemoveFile+""),t.previewElement.appendChild(t._removeLink)),i=function(e){return function(i){return i.preventDefault(),i.stopPropagation(),t.status===n.UPLOADING?n.confirm(e.options.dictCancelUploadConfirmation,function(){return e.removeFile(t)}):e.options.dictRemoveFileConfirmation?n.confirm(e.options.dictRemoveFileConfirmation,function(){return e.removeFile(t)}):e.removeFile(t)}}(this),p=t.previewElement.querySelectorAll("[data-dz-remove]"),f=[],r=0,u=p.length;r\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n Check\n \n \n \n \n \n
    \n
    \n \n Error\n \n \n \n \n \n \n \n
    \n'},i=function(){var t,e,n,i,o,a,s;for(i=arguments[0],n=2<=arguments.length?c.call(arguments,1):[],a=0,s=n.length;a'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(i=function(t){return function(){return t.hiddenFileInput&&t.hiddenFileInput.parentNode.removeChild(t.hiddenFileInput),t.hiddenFileInput=document.createElement("input"),t.hiddenFileInput.setAttribute("type","file"),(null==t.options.maxFiles||t.options.maxFiles>1)&&t.hiddenFileInput.setAttribute("multiple","multiple"),t.hiddenFileInput.className="dz-hidden-input",null!=t.options.acceptedFiles&&t.hiddenFileInput.setAttribute("accept",t.options.acceptedFiles),null!=t.options.capture&&t.hiddenFileInput.setAttribute("capture",t.options.capture),t.hiddenFileInput.style.visibility="hidden",t.hiddenFileInput.style.position="absolute",t.hiddenFileInput.style.top="0",t.hiddenFileInput.style.left="0",t.hiddenFileInput.style.height="0",t.hiddenFileInput.style.width="0",document.querySelector(t.options.hiddenInputContainer).appendChild(t.hiddenFileInput),t.hiddenFileInput.addEventListener("change",function(){var e,n,o,a;if(n=t.hiddenFileInput.files,n.length)for(o=0,a=n.length;o',this.options.dictFallbackText&&(i+="

    "+this.options.dictFallbackText+"

    "),i+='',e=n.createElement(i),"FORM"!==this.element.tagName?(o=n.createElement('
    '),o.appendChild(e)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=o?o:e)},n.prototype.getExistingFallback=function(){var t,e,n,i,o,a;for(e=function(t){var e,n,i;for(n=0,i=t.length;n0){for(s=["TB","GB","MB","KB","b"],n=r=0,c=s.length;r=e){i=t/Math.pow(this.options.filesizeBase,4-n),o=a;break}i=Math.round(10*i)/10}return""+i+" "+o},n.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},n.prototype.drop=function(t){var e,n;t.dataTransfer&&(this.emit("drop",t),e=t.dataTransfer.files,this.emit("addedfiles",e),e.length&&(n=t.dataTransfer.items,n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(e)))},n.prototype.paste=function(t){var e,n;if(null!=(null!=t&&null!=(n=t.clipboardData)?n.items:void 0))return this.emit("paste",t),e=t.clipboardData.items,e.length?this._addFilesFromItems(e):void 0},n.prototype.handleFiles=function(t){var e,n,i,o;for(o=[],n=0,i=t.length;n0){for(a=0,s=n.length;a1024*this.options.maxFilesize*1024?e(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):n.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(e(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,e):e(this.options.dictInvalidFileType)},n.prototype.addFile=function(t){return t.upload={progress:0,total:t.size,bytesSent:0},this.files.push(t),t.status=n.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,function(e){return function(n){return n?(t.accepted=!1,e._errorProcessing([t],n)):(t.accepted=!0,e.options.autoQueue&&e.enqueueFile(t)),e._updateMaxFilesReachedClass()}}(this))},n.prototype.enqueueFiles=function(t){var e,n,i;for(n=0,i=t.length;n=e)&&(i=this.getQueuedFiles(),i.length>0)){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,e-n));for(;t=B;u=0<=B?++L:--L)a.append(this._getParamName(u),t[u],this._renameFilename(t[u].name));return this.submitRequest(z,a,t)},n.prototype.submitRequest=function(t,e,n){return t.send(e)},n.prototype._finished=function(t,e,i){var o,a,s;for(a=0,s=t.length;au;)e=o[4*(c-1)+3],0===e?a=c:u=c,c=a+u>>1;return l=c/s,0===l?1:l},a=function(t,e,n,i,a,s,r,c,l,u){var h;return h=o(e),t.drawImage(e,n,i,a,s,r,c,l,u/h)},i=function(t,e){var n,i,o,a,s,r,c,l,u;if(o=!1,u=!0,i=t.document,l=i.documentElement,n=i.addEventListener?"addEventListener":"attachEvent",c=i.addEventListener?"removeEventListener":"detachEvent",r=i.addEventListener?"":"on",a=function(n){if("readystatechange"!==n.type||"complete"===i.readyState)return("load"===n.type?t:i)[c](r+n.type,a,!1),!o&&(o=!0)?e.call(t,n.type||n):void 0},s=function(){var t;try{l.doScroll("left")}catch(e){return t=e,void setTimeout(s,50)}return a("poll")},"complete"!==i.readyState){if(i.createEventObject&&l.doScroll){try{u=!t.frameElement}catch(h){}u&&s()}return i[n](r+"DOMContentLoaded",a,!1),i[n](r+"readystatechange",a,!1),t[n](r+"load",a,!1)}},t._autoDiscoverFunction=function(){if(t.autoDiscover)return t.discover()},i(window,t._autoDiscoverFunction)}.call(this),function(t,e){"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(this,function(t){var e=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return"undefined"==typeof t},isElement:function(t){return!(!t||1!==t.nodeType)},isJQuery:function(e){return e instanceof t},toStr:function(t){return e.isUndefined(t)||null===t?"":t+""},bind:t.proxy,each:function(e,n){function i(t,e){return n(e,t)}t.each(e,i)},map:t.map,filter:t.grep,every:function(e,n){var i=!0;return e?(t.each(e,function(t,o){if(!(i=n.call(null,o,t,e)))return!1}),!!i):i},some:function(e,n){var i=!1;return e?(t.each(e,function(t,o){if(i=n.call(null,o,t,e))return!1}),!!i):i},mixin:t.extend,identity:function(t){return t},clone:function(e){return t.extend(!0,{},e)},getIdGenerator:function(){var t=0;return function(){return t++}},templatify:function(e){function n(){return String(e)}return t.isFunction(e)?e:n},defer:function(t){setTimeout(t,0)},debounce:function(t,e,n){var i,o;return function(){var a,s,r=this,c=arguments;return a=function(){i=null,n||(o=t.apply(r,c))},s=n&&!i,clearTimeout(i),i=setTimeout(a,e),s&&(o=t.apply(r,c)),o}},throttle:function(t,e){var n,i,o,a,s,r;return s=0,r=function(){s=new Date,o=null,a=t.apply(n,i)},function(){var c=new Date,l=e-(c-s);return n=this,i=arguments,l<=0?(clearTimeout(o),o=null,s=c,a=t.apply(n,i)):o||(o=setTimeout(r,l)),a}},stringify:function(t){return e.isString(t)?t:JSON.stringify(t)},noop:function(){}}}(),n=function(){"use strict";function t(t){var s,r;return r=e.mixin({},a,t),s={css:o(),classes:r,html:n(r),selectors:i(r)},{css:s.css,html:s.html,classes:s.classes,selectors:s.selectors,mixin:function(t){e.mixin(t,s)}}}function n(t){return{wrapper:'',menu:'
    '}}function i(t){var n={};return e.each(t,function(t,e){n[e]="."+t}),n}function o(){var t={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return e.isMsie()&&e.mixin(t.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),t}var a={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return t}(),i=function(){"use strict";function n(e){e&&e.el||t.error("EventBus initialized without el"),this.$el=t(e.el)}var i,o;return i="typeahead:",o={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},e.mixin(n.prototype,{_trigger:function(e,n){var o;return o=t.Event(i+e),(n=n||[]).unshift(o),this.$el.trigger.apply(this.$el,n),o},before:function(t){var e,n;return e=[].slice.call(arguments,1),n=this._trigger("before"+t,e),n.isDefaultPrevented()},trigger:function(t){var e;this._trigger(t,[].slice.call(arguments,1)),(e=o[t])&&this._trigger(e,[].slice.call(arguments,1))}}),n}(),o=function(){"use strict";function t(t,e,n,i){var o;if(!n)return this;for(e=e.split(c),n=i?r(n,i):n,this._callbacks=this._callbacks||{};o=e.shift();)this._callbacks[o]=this._callbacks[o]||{sync:[],async:[]},this._callbacks[o][t].push(n);return this}function e(e,n,i){return t.call(this,"async",e,n,i)}function n(e,n,i){return t.call(this,"sync",e,n,i)}function i(t){var e;if(!this._callbacks)return this;for(t=t.split(c);e=t.shift();)delete this._callbacks[e];return this}function o(t){var e,n,i,o,s;if(!this._callbacks)return this;for(t=t.split(c),i=[].slice.call(arguments,1);(e=t.shift())&&(n=this._callbacks[e]);)o=a(n.sync,this,[e].concat(i)),s=a(n.async,this,[e].concat(i)),o()&&l(s);return this}function a(t,e,n){function i(){for(var i,o=0,a=t.length;!i&&o