mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Merge branch 'master' of https://github.com/hillelcoren/invoice-ninja into feature_email_pdf_attachment
This commit is contained in:
commit
40b689f19b
@ -99,7 +99,7 @@ class Account extends Eloquent
|
||||
public function getGatewayByType($type = PAYMENT_TYPE_ANY)
|
||||
{
|
||||
foreach ($this->account_gateways as $gateway) {
|
||||
if ($type == PAYMENT_TYPE_ANY) {
|
||||
if (!$type || $type == PAYMENT_TYPE_ANY) {
|
||||
return $gateway;
|
||||
} elseif ($gateway->isPayPal() && $type == PAYMENT_TYPE_PAYPAL) {
|
||||
return $gateway;
|
||||
@ -352,6 +352,10 @@ class Account extends Eloquent
|
||||
|
||||
public function showTokenCheckbox()
|
||||
{
|
||||
if (!$this->isGatewayConfigured(GATEWAY_STRIPE)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->token_billing_type_id == TOKEN_BILLING_OPT_IN
|
||||
|| $this->token_billing_type_id == TOKEN_BILLING_OPT_OUT;
|
||||
}
|
||||
|
@ -346,7 +346,7 @@ class InvoiceRepository
|
||||
|
||||
$invoiceItem = InvoiceItem::createNew();
|
||||
$invoiceItem->product_id = isset($product) ? $product->id : null;
|
||||
$invoiceItem->product_key = trim($invoice->is_recurring ? $item->product_key : Utils::processVariables($item['product_key']));
|
||||
$invoiceItem->product_key = trim($invoice->is_recurring ? $item['product_key'] : Utils::processVariables($item['product_key']));
|
||||
$invoiceItem->notes = trim($invoice->is_recurring ? $item['notes'] : Utils::processVariables($item['notes']));
|
||||
$invoiceItem->cost = Utils::parseFloat($item['cost']);
|
||||
$invoiceItem->qty = Utils::parseFloat($item['qty']);
|
||||
|
@ -301,7 +301,7 @@ define('NINJA_GATEWAY_ID', GATEWAY_AUTHORIZE_NET);
|
||||
define('NINJA_GATEWAY_CONFIG', '{"apiLoginId":"626vWcD5","transactionKey":"4bn26TgL9r4Br4qJ","testMode":"","developerMode":""}');
|
||||
define('NINJA_WEB_URL', 'https://www.invoiceninja.com');
|
||||
define('NINJA_APP_URL', 'https://app.invoiceninja.com');
|
||||
define('NINJA_VERSION', '1.6.1');
|
||||
define('NINJA_VERSION', '1.7.0');
|
||||
define('NINJA_DATE', '2000-01-01');
|
||||
define('NINJA_FROM_EMAIL', 'maildelivery@invoiceninja.com');
|
||||
define('RELEASES_URL', 'https://github.com/hillelcoren/invoice-ninja/releases/');
|
||||
|
@ -37,7 +37,7 @@
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a href="{{ URL::to('/') }}" class='navbar-brand'>
|
||||
<a href="{{ URL::to(NINJA_WEB_URL) }}" class='navbar-brand'>
|
||||
<img src="{{ asset('images/invoiceninja-logo.png') }}" style="height:18px;width:auto"/>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -673,10 +673,10 @@
|
||||
invoice.contact = _.findWhere(invoice.client.contacts, {send_invoice: true});
|
||||
|
||||
if (!invoice.terms) {
|
||||
invoice.terms = "{{ $account->invoice_terms }}";
|
||||
invoice.terms = "{{ str_replace(["\r\n","\r","\n"], '\n', addslashes($account->invoice_terms)) }}";
|
||||
}
|
||||
if (!invoice.invoice_footer) {
|
||||
invoice.invoice_footer = "{{ $account->invoice_footer }}";
|
||||
invoice.invoice_footer = "{{ str_replace(["\r\n","\r","\n"], '\n', addslashes($account->invoice_footer)) }}";
|
||||
}
|
||||
|
||||
@if (file_exists($account->getLogoPath()))
|
||||
|
@ -18,9 +18,9 @@
|
||||
<meta name="csrf-token" content="<?= csrf_token() ?>">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
||||
<link href='//fonts.googleapis.com/css?family=Roboto:400,700,900,100' rel='stylesheet' type='text/css'>
|
||||
<link href='//fonts.googleapis.com/css?family=Roboto+Slab:400,300,700' rel='stylesheet' type='text/css'>
|
||||
<link href="{{ asset('favicon.ico') }}" rel="icon" type="image/x-icon">
|
||||
<link href="//fonts.googleapis.com/css?family=Roboto:400,700,900,100" rel="stylesheet" type="text/css">
|
||||
<link href="//fonts.googleapis.com/css?family=Roboto+Slab:400,300,700" rel="stylesheet" type="text/css">
|
||||
<link href="{{ asset('favicon.png') }}" rel="shortcut icon">
|
||||
<link rel="canonical" href="{{ NINJA_APP_URL }}/{{ Request::path() }}"></link>
|
||||
|
||||
<script src="{{ asset('built.js') }}?no_cache={{ NINJA_VERSION }}" type="text/javascript"></script>
|
||||
@ -91,7 +91,7 @@
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', '{{ $_ENV['ANALYTICS_KEY'] }}');
|
||||
ga('create', '{{ $_ENV['ANALYTICS_KEY'] }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
function trackUrl(url) {
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 298 B |
Binary file not shown.
Before Width: | Height: | Size: 1.4 KiB |
BIN
public/favicon.png
Executable file
BIN
public/favicon.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in New Issue
Block a user