mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
commit
1441380c70
@ -1 +1 @@
|
|||||||
5.8.42
|
5.8.43
|
@ -43,6 +43,11 @@ class CreditService
|
|||||||
return (new CreateEDocument($this->credit))->handle();
|
return (new CreateEDocument($this->credit))->handle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getEDocument($contact = null)
|
||||||
|
{
|
||||||
|
return $this->getECredit($contact);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applies the invoice number.
|
* Applies the invoice number.
|
||||||
* @return $this InvoiceService object
|
* @return $this InvoiceService object
|
||||||
|
@ -320,8 +320,8 @@ class EmailDefaults
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/** E-Invoice xml file */
|
/** E-Invoice xml file */
|
||||||
if ($this->email->email_object->settings->enable_e_invoice && ! $this->email->email_object->entity instanceof PurchaseOrder) {
|
if ($this->email->email_object->settings->enable_e_invoice) {
|
||||||
$xml_string = $this->email->email_object->entity->service()->getEInvoice();
|
$xml_string = $this->email->email_object->entity->service()->getEDocument();
|
||||||
|
|
||||||
if($xml_string) {
|
if($xml_string) {
|
||||||
$this->email->email_object->attachments = array_merge($this->email->email_object->attachments, [['file' => base64_encode($xml_string), 'name' => explode(".", $this->email->email_object->entity->getFileName('xml'))[0]."-e_invoice.xml"]]);
|
$this->email->email_object->attachments = array_merge($this->email->email_object->attachments, [['file' => base64_encode($xml_string), 'name' => explode(".", $this->email->email_object->entity->getFileName('xml'))[0]."-e_invoice.xml"]]);
|
||||||
|
@ -204,6 +204,11 @@ class InvoiceService
|
|||||||
return (new CreateEDocument($this->invoice))->handle();
|
return (new CreateEDocument($this->invoice))->handle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getEDocument($contact = null)
|
||||||
|
{
|
||||||
|
return $this->getEInvoice($contact);
|
||||||
|
}
|
||||||
|
|
||||||
public function sendEmail($contact = null)
|
public function sendEmail($contact = null)
|
||||||
{
|
{
|
||||||
$send_email = new SendEmail($this->invoice, null, $contact);
|
$send_email = new SendEmail($this->invoice, null, $contact);
|
||||||
|
@ -82,6 +82,11 @@ class PurchaseOrderService
|
|||||||
{
|
{
|
||||||
return (new CreateEDocument($this->purchase_order))->handle();
|
return (new CreateEDocument($this->purchase_order))->handle();
|
||||||
}
|
}
|
||||||
|
public function getEDocument($contact = null)
|
||||||
|
{
|
||||||
|
return $this->getEPurchaseOrder($contact);
|
||||||
|
}
|
||||||
|
|
||||||
public function deleteEPurchaseOrder()
|
public function deleteEPurchaseOrder()
|
||||||
{
|
{
|
||||||
$this->purchase_order->load('invitations');
|
$this->purchase_order->load('invitations');
|
||||||
|
@ -78,6 +78,11 @@ class QuoteService
|
|||||||
return (new CreateEDocument($this->quote))->handle();
|
return (new CreateEDocument($this->quote))->handle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getEDocument($contact = null)
|
||||||
|
{
|
||||||
|
return $this->getEQuote($contact);
|
||||||
|
}
|
||||||
|
|
||||||
public function sendEmail($contact = null): self
|
public function sendEmail($contact = null): self
|
||||||
{
|
{
|
||||||
$send_email = new SendEmail($this->quote, null, $contact);
|
$send_email = new SendEmail($this->quote, null, $contact);
|
||||||
|
@ -17,8 +17,8 @@ return [
|
|||||||
'require_https' => env('REQUIRE_HTTPS', true),
|
'require_https' => env('REQUIRE_HTTPS', true),
|
||||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||||
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
||||||
'app_version' => env('APP_VERSION', '5.8.42'),
|
'app_version' => env('APP_VERSION', '5.8.43'),
|
||||||
'app_tag' => env('APP_TAG', '5.8.42'),
|
'app_tag' => env('APP_TAG', '5.8.43'),
|
||||||
'minimum_client_version' => '5.0.16',
|
'minimum_client_version' => '5.0.16',
|
||||||
'terms_version' => '1.0.1',
|
'terms_version' => '1.0.1',
|
||||||
'api_secret' => env('API_SECRET', false),
|
'api_secret' => env('API_SECRET', false),
|
||||||
@ -101,7 +101,6 @@ return [
|
|||||||
'wepay' => env('WEPAY_KEYS', ''),
|
'wepay' => env('WEPAY_KEYS', ''),
|
||||||
'braintree' => env('BRAINTREE_KEYS', ''),
|
'braintree' => env('BRAINTREE_KEYS', ''),
|
||||||
'mollie' => env('MOLLIE_KEYS', ''),
|
'mollie' => env('MOLLIE_KEYS', ''),
|
||||||
'square' => env('SQUARE_KEYS', ''),
|
|
||||||
],
|
],
|
||||||
'contact' => [
|
'contact' => [
|
||||||
'email' => env('MAIL_FROM_ADDRESS'),
|
'email' => env('MAIL_FROM_ADDRESS'),
|
||||||
|
@ -1 +1,31 @@
|
|||||||
<?php include public_path('react/index.html');
|
<!DOCTYPE html>
|
||||||
|
<html data-report-errors="{{ $report_errors }}" data-rc="{{ $rc }}" data-user-agent="{{ $user_agent }}" data-login="{{ $login }}">
|
||||||
|
<head>
|
||||||
|
<!-- Source: https://github.com/invoiceninja/invoiceninja -->
|
||||||
|
<!-- Version: {{ config('ninja.app_version') }} -->
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>{{ config('ninja.app_name') }}</title>
|
||||||
|
<meta name="google-signin-client_id" content="{{ config('services.google.client_id') }}">
|
||||||
|
|
||||||
|
@include('react.head')
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="h-full">
|
||||||
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||||
|
<div id="root"></div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
If you are reading this, there is a fair change that the react application has not loaded for you. There are a couple of solutions:
|
||||||
|
|
||||||
|
1. Download the release file from https://github.com/invoiceninja/invoiceninja and overwrite your current installation.
|
||||||
|
2. Switch back to the Flutter application by editing the database, you can do this with the following SQL
|
||||||
|
|
||||||
|
UPDATE accounts SET
|
||||||
|
set_react_as_default_ap = 0;
|
||||||
|
|
||||||
|
-->
|
||||||
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user